UILuaAPI.cpp 431 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699
  1. /*
  2. ** Lua binding: UI
  3. ** Generated automatically by tolua++-1.0.92 on 06/30/13 11:31:52.
  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,"PODVector<float>");
  92. tolua_usertype(tolua_S,"Color");
  93. tolua_usertype(tolua_S,"Window");
  94. tolua_usertype(tolua_S,"Cursor");
  95. tolua_usertype(tolua_S,"PODVector<UIBatch>");
  96. tolua_usertype(tolua_S,"Variant");
  97. tolua_usertype(tolua_S,"Image");
  98. tolua_usertype(tolua_S,"Drawable");
  99. tolua_usertype(tolua_S,"ShortStringHash");
  100. tolua_usertype(tolua_S,"Button");
  101. tolua_usertype(tolua_S,"Material");
  102. tolua_usertype(tolua_S,"XMLElement");
  103. tolua_usertype(tolua_S,"ScrollView");
  104. tolua_usertype(tolua_S,"Slider");
  105. tolua_usertype(tolua_S,"UIElement");
  106. tolua_usertype(tolua_S,"Serializer");
  107. tolua_usertype(tolua_S,"UI");
  108. tolua_usertype(tolua_S,"PODVector<int>");
  109. tolua_usertype(tolua_S,"Text");
  110. tolua_usertype(tolua_S,"XMLFile");
  111. tolua_usertype(tolua_S,"Text3D");
  112. tolua_usertype(tolua_S,"ResourceRef");
  113. tolua_usertype(tolua_S,"Font");
  114. tolua_usertype(tolua_S,"Vector2");
  115. tolua_usertype(tolua_S,"DropDownList");
  116. tolua_usertype(tolua_S,"LineEdit");
  117. tolua_usertype(tolua_S,"Serializable");
  118. tolua_usertype(tolua_S,"Menu");
  119. tolua_usertype(tolua_S,"BorderImage");
  120. }
  121. /* method: SetTexture of class BorderImage */
  122. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_SetTexture00
  123. static int tolua_UI_BorderImage_SetTexture00(lua_State* tolua_S)
  124. {
  125. #ifndef TOLUA_RELEASE
  126. tolua_Error tolua_err;
  127. if (
  128. !tolua_isusertype(tolua_S,1,"BorderImage",0,&tolua_err) ||
  129. !tolua_isusertype(tolua_S,2,"Texture",0,&tolua_err) ||
  130. !tolua_isnoobj(tolua_S,3,&tolua_err)
  131. )
  132. goto tolua_lerror;
  133. else
  134. #endif
  135. {
  136. BorderImage* self = (BorderImage*) tolua_tousertype(tolua_S,1,0);
  137. Texture* texture = ((Texture*) tolua_tousertype(tolua_S,2,0));
  138. #ifndef TOLUA_RELEASE
  139. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTexture'", NULL);
  140. #endif
  141. {
  142. self->SetTexture(texture);
  143. }
  144. }
  145. return 0;
  146. #ifndef TOLUA_RELEASE
  147. tolua_lerror:
  148. tolua_error(tolua_S,"#ferror in function 'SetTexture'.",&tolua_err);
  149. return 0;
  150. #endif
  151. }
  152. #endif //#ifndef TOLUA_DISABLE
  153. /* method: SetImageRect of class BorderImage */
  154. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_SetImageRect00
  155. static int tolua_UI_BorderImage_SetImageRect00(lua_State* tolua_S)
  156. {
  157. #ifndef TOLUA_RELEASE
  158. tolua_Error tolua_err;
  159. if (
  160. !tolua_isusertype(tolua_S,1,"BorderImage",0,&tolua_err) ||
  161. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntRect",0,&tolua_err)) ||
  162. !tolua_isnoobj(tolua_S,3,&tolua_err)
  163. )
  164. goto tolua_lerror;
  165. else
  166. #endif
  167. {
  168. BorderImage* self = (BorderImage*) tolua_tousertype(tolua_S,1,0);
  169. const IntRect* rect = ((const IntRect*) tolua_tousertype(tolua_S,2,0));
  170. #ifndef TOLUA_RELEASE
  171. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetImageRect'", NULL);
  172. #endif
  173. {
  174. self->SetImageRect(*rect);
  175. }
  176. }
  177. return 0;
  178. #ifndef TOLUA_RELEASE
  179. tolua_lerror:
  180. tolua_error(tolua_S,"#ferror in function 'SetImageRect'.",&tolua_err);
  181. return 0;
  182. #endif
  183. }
  184. #endif //#ifndef TOLUA_DISABLE
  185. /* method: SetFullImageRect of class BorderImage */
  186. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_SetFullImageRect00
  187. static int tolua_UI_BorderImage_SetFullImageRect00(lua_State* tolua_S)
  188. {
  189. #ifndef TOLUA_RELEASE
  190. tolua_Error tolua_err;
  191. if (
  192. !tolua_isusertype(tolua_S,1,"BorderImage",0,&tolua_err) ||
  193. !tolua_isnoobj(tolua_S,2,&tolua_err)
  194. )
  195. goto tolua_lerror;
  196. else
  197. #endif
  198. {
  199. BorderImage* self = (BorderImage*) tolua_tousertype(tolua_S,1,0);
  200. #ifndef TOLUA_RELEASE
  201. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFullImageRect'", NULL);
  202. #endif
  203. {
  204. self->SetFullImageRect();
  205. }
  206. }
  207. return 0;
  208. #ifndef TOLUA_RELEASE
  209. tolua_lerror:
  210. tolua_error(tolua_S,"#ferror in function 'SetFullImageRect'.",&tolua_err);
  211. return 0;
  212. #endif
  213. }
  214. #endif //#ifndef TOLUA_DISABLE
  215. /* method: SetBorder of class BorderImage */
  216. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_SetBorder00
  217. static int tolua_UI_BorderImage_SetBorder00(lua_State* tolua_S)
  218. {
  219. #ifndef TOLUA_RELEASE
  220. tolua_Error tolua_err;
  221. if (
  222. !tolua_isusertype(tolua_S,1,"BorderImage",0,&tolua_err) ||
  223. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntRect",0,&tolua_err)) ||
  224. !tolua_isnoobj(tolua_S,3,&tolua_err)
  225. )
  226. goto tolua_lerror;
  227. else
  228. #endif
  229. {
  230. BorderImage* self = (BorderImage*) tolua_tousertype(tolua_S,1,0);
  231. const IntRect* rect = ((const IntRect*) tolua_tousertype(tolua_S,2,0));
  232. #ifndef TOLUA_RELEASE
  233. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBorder'", NULL);
  234. #endif
  235. {
  236. self->SetBorder(*rect);
  237. }
  238. }
  239. return 0;
  240. #ifndef TOLUA_RELEASE
  241. tolua_lerror:
  242. tolua_error(tolua_S,"#ferror in function 'SetBorder'.",&tolua_err);
  243. return 0;
  244. #endif
  245. }
  246. #endif //#ifndef TOLUA_DISABLE
  247. /* method: SetHoverOffset of class BorderImage */
  248. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_SetHoverOffset00
  249. static int tolua_UI_BorderImage_SetHoverOffset00(lua_State* tolua_S)
  250. {
  251. #ifndef TOLUA_RELEASE
  252. tolua_Error tolua_err;
  253. if (
  254. !tolua_isusertype(tolua_S,1,"BorderImage",0,&tolua_err) ||
  255. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  256. !tolua_isnoobj(tolua_S,3,&tolua_err)
  257. )
  258. goto tolua_lerror;
  259. else
  260. #endif
  261. {
  262. BorderImage* self = (BorderImage*) tolua_tousertype(tolua_S,1,0);
  263. const IntVector2* offset = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  264. #ifndef TOLUA_RELEASE
  265. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHoverOffset'", NULL);
  266. #endif
  267. {
  268. self->SetHoverOffset(*offset);
  269. }
  270. }
  271. return 0;
  272. #ifndef TOLUA_RELEASE
  273. tolua_lerror:
  274. tolua_error(tolua_S,"#ferror in function 'SetHoverOffset'.",&tolua_err);
  275. return 0;
  276. #endif
  277. }
  278. #endif //#ifndef TOLUA_DISABLE
  279. /* method: SetHoverOffset of class BorderImage */
  280. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_SetHoverOffset01
  281. static int tolua_UI_BorderImage_SetHoverOffset01(lua_State* tolua_S)
  282. {
  283. tolua_Error tolua_err;
  284. if (
  285. !tolua_isusertype(tolua_S,1,"BorderImage",0,&tolua_err) ||
  286. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  287. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  288. !tolua_isnoobj(tolua_S,4,&tolua_err)
  289. )
  290. goto tolua_lerror;
  291. else
  292. {
  293. BorderImage* self = (BorderImage*) tolua_tousertype(tolua_S,1,0);
  294. int x = ((int) tolua_tonumber(tolua_S,2,0));
  295. int y = ((int) tolua_tonumber(tolua_S,3,0));
  296. #ifndef TOLUA_RELEASE
  297. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHoverOffset'", NULL);
  298. #endif
  299. {
  300. self->SetHoverOffset(x,y);
  301. }
  302. }
  303. return 0;
  304. tolua_lerror:
  305. return tolua_UI_BorderImage_SetHoverOffset00(tolua_S);
  306. }
  307. #endif //#ifndef TOLUA_DISABLE
  308. /* method: SetBlendMode of class BorderImage */
  309. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_SetBlendMode00
  310. static int tolua_UI_BorderImage_SetBlendMode00(lua_State* tolua_S)
  311. {
  312. #ifndef TOLUA_RELEASE
  313. tolua_Error tolua_err;
  314. if (
  315. !tolua_isusertype(tolua_S,1,"BorderImage",0,&tolua_err) ||
  316. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  317. !tolua_isnoobj(tolua_S,3,&tolua_err)
  318. )
  319. goto tolua_lerror;
  320. else
  321. #endif
  322. {
  323. BorderImage* self = (BorderImage*) tolua_tousertype(tolua_S,1,0);
  324. BlendMode mode = ((BlendMode) (int) tolua_tonumber(tolua_S,2,0));
  325. #ifndef TOLUA_RELEASE
  326. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBlendMode'", NULL);
  327. #endif
  328. {
  329. self->SetBlendMode(mode);
  330. }
  331. }
  332. return 0;
  333. #ifndef TOLUA_RELEASE
  334. tolua_lerror:
  335. tolua_error(tolua_S,"#ferror in function 'SetBlendMode'.",&tolua_err);
  336. return 0;
  337. #endif
  338. }
  339. #endif //#ifndef TOLUA_DISABLE
  340. /* method: SetTiled of class BorderImage */
  341. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_SetTiled00
  342. static int tolua_UI_BorderImage_SetTiled00(lua_State* tolua_S)
  343. {
  344. #ifndef TOLUA_RELEASE
  345. tolua_Error tolua_err;
  346. if (
  347. !tolua_isusertype(tolua_S,1,"BorderImage",0,&tolua_err) ||
  348. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  349. !tolua_isnoobj(tolua_S,3,&tolua_err)
  350. )
  351. goto tolua_lerror;
  352. else
  353. #endif
  354. {
  355. BorderImage* self = (BorderImage*) tolua_tousertype(tolua_S,1,0);
  356. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  357. #ifndef TOLUA_RELEASE
  358. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTiled'", NULL);
  359. #endif
  360. {
  361. self->SetTiled(enable);
  362. }
  363. }
  364. return 0;
  365. #ifndef TOLUA_RELEASE
  366. tolua_lerror:
  367. tolua_error(tolua_S,"#ferror in function 'SetTiled'.",&tolua_err);
  368. return 0;
  369. #endif
  370. }
  371. #endif //#ifndef TOLUA_DISABLE
  372. /* method: GetTexture of class BorderImage */
  373. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_GetTexture00
  374. static int tolua_UI_BorderImage_GetTexture00(lua_State* tolua_S)
  375. {
  376. #ifndef TOLUA_RELEASE
  377. tolua_Error tolua_err;
  378. if (
  379. !tolua_isusertype(tolua_S,1,"const BorderImage",0,&tolua_err) ||
  380. !tolua_isnoobj(tolua_S,2,&tolua_err)
  381. )
  382. goto tolua_lerror;
  383. else
  384. #endif
  385. {
  386. const BorderImage* self = (const BorderImage*) tolua_tousertype(tolua_S,1,0);
  387. #ifndef TOLUA_RELEASE
  388. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTexture'", NULL);
  389. #endif
  390. {
  391. Texture* tolua_ret = (Texture*) self->GetTexture();
  392. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture");
  393. }
  394. }
  395. return 1;
  396. #ifndef TOLUA_RELEASE
  397. tolua_lerror:
  398. tolua_error(tolua_S,"#ferror in function 'GetTexture'.",&tolua_err);
  399. return 0;
  400. #endif
  401. }
  402. #endif //#ifndef TOLUA_DISABLE
  403. /* method: GetImageRect of class BorderImage */
  404. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_GetImageRect00
  405. static int tolua_UI_BorderImage_GetImageRect00(lua_State* tolua_S)
  406. {
  407. #ifndef TOLUA_RELEASE
  408. tolua_Error tolua_err;
  409. if (
  410. !tolua_isusertype(tolua_S,1,"const BorderImage",0,&tolua_err) ||
  411. !tolua_isnoobj(tolua_S,2,&tolua_err)
  412. )
  413. goto tolua_lerror;
  414. else
  415. #endif
  416. {
  417. const BorderImage* self = (const BorderImage*) tolua_tousertype(tolua_S,1,0);
  418. #ifndef TOLUA_RELEASE
  419. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetImageRect'", NULL);
  420. #endif
  421. {
  422. const IntRect& tolua_ret = (const IntRect&) self->GetImageRect();
  423. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntRect");
  424. }
  425. }
  426. return 1;
  427. #ifndef TOLUA_RELEASE
  428. tolua_lerror:
  429. tolua_error(tolua_S,"#ferror in function 'GetImageRect'.",&tolua_err);
  430. return 0;
  431. #endif
  432. }
  433. #endif //#ifndef TOLUA_DISABLE
  434. /* method: GetBorder of class BorderImage */
  435. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_GetBorder00
  436. static int tolua_UI_BorderImage_GetBorder00(lua_State* tolua_S)
  437. {
  438. #ifndef TOLUA_RELEASE
  439. tolua_Error tolua_err;
  440. if (
  441. !tolua_isusertype(tolua_S,1,"const BorderImage",0,&tolua_err) ||
  442. !tolua_isnoobj(tolua_S,2,&tolua_err)
  443. )
  444. goto tolua_lerror;
  445. else
  446. #endif
  447. {
  448. const BorderImage* self = (const BorderImage*) tolua_tousertype(tolua_S,1,0);
  449. #ifndef TOLUA_RELEASE
  450. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBorder'", NULL);
  451. #endif
  452. {
  453. const IntRect& tolua_ret = (const IntRect&) self->GetBorder();
  454. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntRect");
  455. }
  456. }
  457. return 1;
  458. #ifndef TOLUA_RELEASE
  459. tolua_lerror:
  460. tolua_error(tolua_S,"#ferror in function 'GetBorder'.",&tolua_err);
  461. return 0;
  462. #endif
  463. }
  464. #endif //#ifndef TOLUA_DISABLE
  465. /* method: GetHoverOffset of class BorderImage */
  466. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_GetHoverOffset00
  467. static int tolua_UI_BorderImage_GetHoverOffset00(lua_State* tolua_S)
  468. {
  469. #ifndef TOLUA_RELEASE
  470. tolua_Error tolua_err;
  471. if (
  472. !tolua_isusertype(tolua_S,1,"const BorderImage",0,&tolua_err) ||
  473. !tolua_isnoobj(tolua_S,2,&tolua_err)
  474. )
  475. goto tolua_lerror;
  476. else
  477. #endif
  478. {
  479. const BorderImage* self = (const BorderImage*) tolua_tousertype(tolua_S,1,0);
  480. #ifndef TOLUA_RELEASE
  481. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHoverOffset'", NULL);
  482. #endif
  483. {
  484. const IntVector2& tolua_ret = (const IntVector2&) self->GetHoverOffset();
  485. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  486. }
  487. }
  488. return 1;
  489. #ifndef TOLUA_RELEASE
  490. tolua_lerror:
  491. tolua_error(tolua_S,"#ferror in function 'GetHoverOffset'.",&tolua_err);
  492. return 0;
  493. #endif
  494. }
  495. #endif //#ifndef TOLUA_DISABLE
  496. /* method: GetBlendMode of class BorderImage */
  497. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_GetBlendMode00
  498. static int tolua_UI_BorderImage_GetBlendMode00(lua_State* tolua_S)
  499. {
  500. #ifndef TOLUA_RELEASE
  501. tolua_Error tolua_err;
  502. if (
  503. !tolua_isusertype(tolua_S,1,"const BorderImage",0,&tolua_err) ||
  504. !tolua_isnoobj(tolua_S,2,&tolua_err)
  505. )
  506. goto tolua_lerror;
  507. else
  508. #endif
  509. {
  510. const BorderImage* self = (const BorderImage*) tolua_tousertype(tolua_S,1,0);
  511. #ifndef TOLUA_RELEASE
  512. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBlendMode'", NULL);
  513. #endif
  514. {
  515. BlendMode tolua_ret = (BlendMode) self->GetBlendMode();
  516. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  517. }
  518. }
  519. return 1;
  520. #ifndef TOLUA_RELEASE
  521. tolua_lerror:
  522. tolua_error(tolua_S,"#ferror in function 'GetBlendMode'.",&tolua_err);
  523. return 0;
  524. #endif
  525. }
  526. #endif //#ifndef TOLUA_DISABLE
  527. /* method: IsTiled of class BorderImage */
  528. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_IsTiled00
  529. static int tolua_UI_BorderImage_IsTiled00(lua_State* tolua_S)
  530. {
  531. #ifndef TOLUA_RELEASE
  532. tolua_Error tolua_err;
  533. if (
  534. !tolua_isusertype(tolua_S,1,"const BorderImage",0,&tolua_err) ||
  535. !tolua_isnoobj(tolua_S,2,&tolua_err)
  536. )
  537. goto tolua_lerror;
  538. else
  539. #endif
  540. {
  541. const BorderImage* self = (const BorderImage*) tolua_tousertype(tolua_S,1,0);
  542. #ifndef TOLUA_RELEASE
  543. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsTiled'", NULL);
  544. #endif
  545. {
  546. bool tolua_ret = (bool) self->IsTiled();
  547. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  548. }
  549. }
  550. return 1;
  551. #ifndef TOLUA_RELEASE
  552. tolua_lerror:
  553. tolua_error(tolua_S,"#ferror in function 'IsTiled'.",&tolua_err);
  554. return 0;
  555. #endif
  556. }
  557. #endif //#ifndef TOLUA_DISABLE
  558. /* method: SetPressedOffset of class Button */
  559. #ifndef TOLUA_DISABLE_tolua_UI_Button_SetPressedOffset00
  560. static int tolua_UI_Button_SetPressedOffset00(lua_State* tolua_S)
  561. {
  562. #ifndef TOLUA_RELEASE
  563. tolua_Error tolua_err;
  564. if (
  565. !tolua_isusertype(tolua_S,1,"Button",0,&tolua_err) ||
  566. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  567. !tolua_isnoobj(tolua_S,3,&tolua_err)
  568. )
  569. goto tolua_lerror;
  570. else
  571. #endif
  572. {
  573. Button* self = (Button*) tolua_tousertype(tolua_S,1,0);
  574. const IntVector2* offset = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  575. #ifndef TOLUA_RELEASE
  576. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPressedOffset'", NULL);
  577. #endif
  578. {
  579. self->SetPressedOffset(*offset);
  580. }
  581. }
  582. return 0;
  583. #ifndef TOLUA_RELEASE
  584. tolua_lerror:
  585. tolua_error(tolua_S,"#ferror in function 'SetPressedOffset'.",&tolua_err);
  586. return 0;
  587. #endif
  588. }
  589. #endif //#ifndef TOLUA_DISABLE
  590. /* method: SetPressedOffset of class Button */
  591. #ifndef TOLUA_DISABLE_tolua_UI_Button_SetPressedOffset01
  592. static int tolua_UI_Button_SetPressedOffset01(lua_State* tolua_S)
  593. {
  594. tolua_Error tolua_err;
  595. if (
  596. !tolua_isusertype(tolua_S,1,"Button",0,&tolua_err) ||
  597. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  598. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  599. !tolua_isnoobj(tolua_S,4,&tolua_err)
  600. )
  601. goto tolua_lerror;
  602. else
  603. {
  604. Button* self = (Button*) tolua_tousertype(tolua_S,1,0);
  605. int x = ((int) tolua_tonumber(tolua_S,2,0));
  606. int y = ((int) tolua_tonumber(tolua_S,3,0));
  607. #ifndef TOLUA_RELEASE
  608. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPressedOffset'", NULL);
  609. #endif
  610. {
  611. self->SetPressedOffset(x,y);
  612. }
  613. }
  614. return 0;
  615. tolua_lerror:
  616. return tolua_UI_Button_SetPressedOffset00(tolua_S);
  617. }
  618. #endif //#ifndef TOLUA_DISABLE
  619. /* method: SetLabelOffset of class Button */
  620. #ifndef TOLUA_DISABLE_tolua_UI_Button_SetLabelOffset00
  621. static int tolua_UI_Button_SetLabelOffset00(lua_State* tolua_S)
  622. {
  623. #ifndef TOLUA_RELEASE
  624. tolua_Error tolua_err;
  625. if (
  626. !tolua_isusertype(tolua_S,1,"Button",0,&tolua_err) ||
  627. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  628. !tolua_isnoobj(tolua_S,3,&tolua_err)
  629. )
  630. goto tolua_lerror;
  631. else
  632. #endif
  633. {
  634. Button* self = (Button*) tolua_tousertype(tolua_S,1,0);
  635. const IntVector2* offset = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  636. #ifndef TOLUA_RELEASE
  637. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLabelOffset'", NULL);
  638. #endif
  639. {
  640. self->SetLabelOffset(*offset);
  641. }
  642. }
  643. return 0;
  644. #ifndef TOLUA_RELEASE
  645. tolua_lerror:
  646. tolua_error(tolua_S,"#ferror in function 'SetLabelOffset'.",&tolua_err);
  647. return 0;
  648. #endif
  649. }
  650. #endif //#ifndef TOLUA_DISABLE
  651. /* method: SetLabelOffset of class Button */
  652. #ifndef TOLUA_DISABLE_tolua_UI_Button_SetLabelOffset01
  653. static int tolua_UI_Button_SetLabelOffset01(lua_State* tolua_S)
  654. {
  655. tolua_Error tolua_err;
  656. if (
  657. !tolua_isusertype(tolua_S,1,"Button",0,&tolua_err) ||
  658. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  659. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  660. !tolua_isnoobj(tolua_S,4,&tolua_err)
  661. )
  662. goto tolua_lerror;
  663. else
  664. {
  665. Button* self = (Button*) tolua_tousertype(tolua_S,1,0);
  666. int x = ((int) tolua_tonumber(tolua_S,2,0));
  667. int y = ((int) tolua_tonumber(tolua_S,3,0));
  668. #ifndef TOLUA_RELEASE
  669. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLabelOffset'", NULL);
  670. #endif
  671. {
  672. self->SetLabelOffset(x,y);
  673. }
  674. }
  675. return 0;
  676. tolua_lerror:
  677. return tolua_UI_Button_SetLabelOffset00(tolua_S);
  678. }
  679. #endif //#ifndef TOLUA_DISABLE
  680. /* method: SetRepeat of class Button */
  681. #ifndef TOLUA_DISABLE_tolua_UI_Button_SetRepeat00
  682. static int tolua_UI_Button_SetRepeat00(lua_State* tolua_S)
  683. {
  684. #ifndef TOLUA_RELEASE
  685. tolua_Error tolua_err;
  686. if (
  687. !tolua_isusertype(tolua_S,1,"Button",0,&tolua_err) ||
  688. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  689. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  690. !tolua_isnoobj(tolua_S,4,&tolua_err)
  691. )
  692. goto tolua_lerror;
  693. else
  694. #endif
  695. {
  696. Button* self = (Button*) tolua_tousertype(tolua_S,1,0);
  697. float delay = ((float) tolua_tonumber(tolua_S,2,0));
  698. float rate = ((float) tolua_tonumber(tolua_S,3,0));
  699. #ifndef TOLUA_RELEASE
  700. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRepeat'", NULL);
  701. #endif
  702. {
  703. self->SetRepeat(delay,rate);
  704. }
  705. }
  706. return 0;
  707. #ifndef TOLUA_RELEASE
  708. tolua_lerror:
  709. tolua_error(tolua_S,"#ferror in function 'SetRepeat'.",&tolua_err);
  710. return 0;
  711. #endif
  712. }
  713. #endif //#ifndef TOLUA_DISABLE
  714. /* method: SetRepeatDelay of class Button */
  715. #ifndef TOLUA_DISABLE_tolua_UI_Button_SetRepeatDelay00
  716. static int tolua_UI_Button_SetRepeatDelay00(lua_State* tolua_S)
  717. {
  718. #ifndef TOLUA_RELEASE
  719. tolua_Error tolua_err;
  720. if (
  721. !tolua_isusertype(tolua_S,1,"Button",0,&tolua_err) ||
  722. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  723. !tolua_isnoobj(tolua_S,3,&tolua_err)
  724. )
  725. goto tolua_lerror;
  726. else
  727. #endif
  728. {
  729. Button* self = (Button*) tolua_tousertype(tolua_S,1,0);
  730. float delay = ((float) tolua_tonumber(tolua_S,2,0));
  731. #ifndef TOLUA_RELEASE
  732. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRepeatDelay'", NULL);
  733. #endif
  734. {
  735. self->SetRepeatDelay(delay);
  736. }
  737. }
  738. return 0;
  739. #ifndef TOLUA_RELEASE
  740. tolua_lerror:
  741. tolua_error(tolua_S,"#ferror in function 'SetRepeatDelay'.",&tolua_err);
  742. return 0;
  743. #endif
  744. }
  745. #endif //#ifndef TOLUA_DISABLE
  746. /* method: SetRepeatRate of class Button */
  747. #ifndef TOLUA_DISABLE_tolua_UI_Button_SetRepeatRate00
  748. static int tolua_UI_Button_SetRepeatRate00(lua_State* tolua_S)
  749. {
  750. #ifndef TOLUA_RELEASE
  751. tolua_Error tolua_err;
  752. if (
  753. !tolua_isusertype(tolua_S,1,"Button",0,&tolua_err) ||
  754. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  755. !tolua_isnoobj(tolua_S,3,&tolua_err)
  756. )
  757. goto tolua_lerror;
  758. else
  759. #endif
  760. {
  761. Button* self = (Button*) tolua_tousertype(tolua_S,1,0);
  762. float rate = ((float) tolua_tonumber(tolua_S,2,0));
  763. #ifndef TOLUA_RELEASE
  764. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRepeatRate'", NULL);
  765. #endif
  766. {
  767. self->SetRepeatRate(rate);
  768. }
  769. }
  770. return 0;
  771. #ifndef TOLUA_RELEASE
  772. tolua_lerror:
  773. tolua_error(tolua_S,"#ferror in function 'SetRepeatRate'.",&tolua_err);
  774. return 0;
  775. #endif
  776. }
  777. #endif //#ifndef TOLUA_DISABLE
  778. /* method: GetPressedOffset of class Button */
  779. #ifndef TOLUA_DISABLE_tolua_UI_Button_GetPressedOffset00
  780. static int tolua_UI_Button_GetPressedOffset00(lua_State* tolua_S)
  781. {
  782. #ifndef TOLUA_RELEASE
  783. tolua_Error tolua_err;
  784. if (
  785. !tolua_isusertype(tolua_S,1,"const Button",0,&tolua_err) ||
  786. !tolua_isnoobj(tolua_S,2,&tolua_err)
  787. )
  788. goto tolua_lerror;
  789. else
  790. #endif
  791. {
  792. const Button* self = (const Button*) tolua_tousertype(tolua_S,1,0);
  793. #ifndef TOLUA_RELEASE
  794. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPressedOffset'", NULL);
  795. #endif
  796. {
  797. const IntVector2& tolua_ret = (const IntVector2&) self->GetPressedOffset();
  798. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  799. }
  800. }
  801. return 1;
  802. #ifndef TOLUA_RELEASE
  803. tolua_lerror:
  804. tolua_error(tolua_S,"#ferror in function 'GetPressedOffset'.",&tolua_err);
  805. return 0;
  806. #endif
  807. }
  808. #endif //#ifndef TOLUA_DISABLE
  809. /* method: GetLabelOffset of class Button */
  810. #ifndef TOLUA_DISABLE_tolua_UI_Button_GetLabelOffset00
  811. static int tolua_UI_Button_GetLabelOffset00(lua_State* tolua_S)
  812. {
  813. #ifndef TOLUA_RELEASE
  814. tolua_Error tolua_err;
  815. if (
  816. !tolua_isusertype(tolua_S,1,"const Button",0,&tolua_err) ||
  817. !tolua_isnoobj(tolua_S,2,&tolua_err)
  818. )
  819. goto tolua_lerror;
  820. else
  821. #endif
  822. {
  823. const Button* self = (const Button*) tolua_tousertype(tolua_S,1,0);
  824. #ifndef TOLUA_RELEASE
  825. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLabelOffset'", NULL);
  826. #endif
  827. {
  828. const IntVector2& tolua_ret = (const IntVector2&) self->GetLabelOffset();
  829. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  830. }
  831. }
  832. return 1;
  833. #ifndef TOLUA_RELEASE
  834. tolua_lerror:
  835. tolua_error(tolua_S,"#ferror in function 'GetLabelOffset'.",&tolua_err);
  836. return 0;
  837. #endif
  838. }
  839. #endif //#ifndef TOLUA_DISABLE
  840. /* method: GetRepeatDelay of class Button */
  841. #ifndef TOLUA_DISABLE_tolua_UI_Button_GetRepeatDelay00
  842. static int tolua_UI_Button_GetRepeatDelay00(lua_State* tolua_S)
  843. {
  844. #ifndef TOLUA_RELEASE
  845. tolua_Error tolua_err;
  846. if (
  847. !tolua_isusertype(tolua_S,1,"const Button",0,&tolua_err) ||
  848. !tolua_isnoobj(tolua_S,2,&tolua_err)
  849. )
  850. goto tolua_lerror;
  851. else
  852. #endif
  853. {
  854. const Button* self = (const Button*) tolua_tousertype(tolua_S,1,0);
  855. #ifndef TOLUA_RELEASE
  856. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRepeatDelay'", NULL);
  857. #endif
  858. {
  859. float tolua_ret = (float) self->GetRepeatDelay();
  860. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  861. }
  862. }
  863. return 1;
  864. #ifndef TOLUA_RELEASE
  865. tolua_lerror:
  866. tolua_error(tolua_S,"#ferror in function 'GetRepeatDelay'.",&tolua_err);
  867. return 0;
  868. #endif
  869. }
  870. #endif //#ifndef TOLUA_DISABLE
  871. /* method: GetRepeatRate of class Button */
  872. #ifndef TOLUA_DISABLE_tolua_UI_Button_GetRepeatRate00
  873. static int tolua_UI_Button_GetRepeatRate00(lua_State* tolua_S)
  874. {
  875. #ifndef TOLUA_RELEASE
  876. tolua_Error tolua_err;
  877. if (
  878. !tolua_isusertype(tolua_S,1,"const Button",0,&tolua_err) ||
  879. !tolua_isnoobj(tolua_S,2,&tolua_err)
  880. )
  881. goto tolua_lerror;
  882. else
  883. #endif
  884. {
  885. const Button* self = (const Button*) tolua_tousertype(tolua_S,1,0);
  886. #ifndef TOLUA_RELEASE
  887. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRepeatRate'", NULL);
  888. #endif
  889. {
  890. float tolua_ret = (float) self->GetRepeatRate();
  891. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  892. }
  893. }
  894. return 1;
  895. #ifndef TOLUA_RELEASE
  896. tolua_lerror:
  897. tolua_error(tolua_S,"#ferror in function 'GetRepeatRate'.",&tolua_err);
  898. return 0;
  899. #endif
  900. }
  901. #endif //#ifndef TOLUA_DISABLE
  902. /* method: SetChecked of class CheckBox */
  903. #ifndef TOLUA_DISABLE_tolua_UI_CheckBox_SetChecked00
  904. static int tolua_UI_CheckBox_SetChecked00(lua_State* tolua_S)
  905. {
  906. #ifndef TOLUA_RELEASE
  907. tolua_Error tolua_err;
  908. if (
  909. !tolua_isusertype(tolua_S,1,"CheckBox",0,&tolua_err) ||
  910. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  911. !tolua_isnoobj(tolua_S,3,&tolua_err)
  912. )
  913. goto tolua_lerror;
  914. else
  915. #endif
  916. {
  917. CheckBox* self = (CheckBox*) tolua_tousertype(tolua_S,1,0);
  918. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  919. #ifndef TOLUA_RELEASE
  920. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetChecked'", NULL);
  921. #endif
  922. {
  923. self->SetChecked(enable);
  924. }
  925. }
  926. return 0;
  927. #ifndef TOLUA_RELEASE
  928. tolua_lerror:
  929. tolua_error(tolua_S,"#ferror in function 'SetChecked'.",&tolua_err);
  930. return 0;
  931. #endif
  932. }
  933. #endif //#ifndef TOLUA_DISABLE
  934. /* method: SetCheckedOffset of class CheckBox */
  935. #ifndef TOLUA_DISABLE_tolua_UI_CheckBox_SetCheckedOffset00
  936. static int tolua_UI_CheckBox_SetCheckedOffset00(lua_State* tolua_S)
  937. {
  938. #ifndef TOLUA_RELEASE
  939. tolua_Error tolua_err;
  940. if (
  941. !tolua_isusertype(tolua_S,1,"CheckBox",0,&tolua_err) ||
  942. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  943. !tolua_isnoobj(tolua_S,3,&tolua_err)
  944. )
  945. goto tolua_lerror;
  946. else
  947. #endif
  948. {
  949. CheckBox* self = (CheckBox*) tolua_tousertype(tolua_S,1,0);
  950. const IntVector2* rect = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  951. #ifndef TOLUA_RELEASE
  952. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCheckedOffset'", NULL);
  953. #endif
  954. {
  955. self->SetCheckedOffset(*rect);
  956. }
  957. }
  958. return 0;
  959. #ifndef TOLUA_RELEASE
  960. tolua_lerror:
  961. tolua_error(tolua_S,"#ferror in function 'SetCheckedOffset'.",&tolua_err);
  962. return 0;
  963. #endif
  964. }
  965. #endif //#ifndef TOLUA_DISABLE
  966. /* method: SetCheckedOffset of class CheckBox */
  967. #ifndef TOLUA_DISABLE_tolua_UI_CheckBox_SetCheckedOffset01
  968. static int tolua_UI_CheckBox_SetCheckedOffset01(lua_State* tolua_S)
  969. {
  970. tolua_Error tolua_err;
  971. if (
  972. !tolua_isusertype(tolua_S,1,"CheckBox",0,&tolua_err) ||
  973. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  974. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  975. !tolua_isnoobj(tolua_S,4,&tolua_err)
  976. )
  977. goto tolua_lerror;
  978. else
  979. {
  980. CheckBox* self = (CheckBox*) tolua_tousertype(tolua_S,1,0);
  981. int x = ((int) tolua_tonumber(tolua_S,2,0));
  982. int y = ((int) tolua_tonumber(tolua_S,3,0));
  983. #ifndef TOLUA_RELEASE
  984. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCheckedOffset'", NULL);
  985. #endif
  986. {
  987. self->SetCheckedOffset(x,y);
  988. }
  989. }
  990. return 0;
  991. tolua_lerror:
  992. return tolua_UI_CheckBox_SetCheckedOffset00(tolua_S);
  993. }
  994. #endif //#ifndef TOLUA_DISABLE
  995. /* method: IsChecked of class CheckBox */
  996. #ifndef TOLUA_DISABLE_tolua_UI_CheckBox_IsChecked00
  997. static int tolua_UI_CheckBox_IsChecked00(lua_State* tolua_S)
  998. {
  999. #ifndef TOLUA_RELEASE
  1000. tolua_Error tolua_err;
  1001. if (
  1002. !tolua_isusertype(tolua_S,1,"const CheckBox",0,&tolua_err) ||
  1003. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1004. )
  1005. goto tolua_lerror;
  1006. else
  1007. #endif
  1008. {
  1009. const CheckBox* self = (const CheckBox*) tolua_tousertype(tolua_S,1,0);
  1010. #ifndef TOLUA_RELEASE
  1011. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsChecked'", NULL);
  1012. #endif
  1013. {
  1014. bool tolua_ret = (bool) self->IsChecked();
  1015. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1016. }
  1017. }
  1018. return 1;
  1019. #ifndef TOLUA_RELEASE
  1020. tolua_lerror:
  1021. tolua_error(tolua_S,"#ferror in function 'IsChecked'.",&tolua_err);
  1022. return 0;
  1023. #endif
  1024. }
  1025. #endif //#ifndef TOLUA_DISABLE
  1026. /* method: GetCheckedOffset of class CheckBox */
  1027. #ifndef TOLUA_DISABLE_tolua_UI_CheckBox_GetCheckedOffset00
  1028. static int tolua_UI_CheckBox_GetCheckedOffset00(lua_State* tolua_S)
  1029. {
  1030. #ifndef TOLUA_RELEASE
  1031. tolua_Error tolua_err;
  1032. if (
  1033. !tolua_isusertype(tolua_S,1,"const CheckBox",0,&tolua_err) ||
  1034. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1035. )
  1036. goto tolua_lerror;
  1037. else
  1038. #endif
  1039. {
  1040. const CheckBox* self = (const CheckBox*) tolua_tousertype(tolua_S,1,0);
  1041. #ifndef TOLUA_RELEASE
  1042. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCheckedOffset'", NULL);
  1043. #endif
  1044. {
  1045. const IntVector2& tolua_ret = (const IntVector2&) self->GetCheckedOffset();
  1046. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  1047. }
  1048. }
  1049. return 1;
  1050. #ifndef TOLUA_RELEASE
  1051. tolua_lerror:
  1052. tolua_error(tolua_S,"#ferror in function 'GetCheckedOffset'.",&tolua_err);
  1053. return 0;
  1054. #endif
  1055. }
  1056. #endif //#ifndef TOLUA_DISABLE
  1057. /* method: DefineShape of class Cursor */
  1058. #ifndef TOLUA_DISABLE_tolua_UI_Cursor_DefineShape00
  1059. static int tolua_UI_Cursor_DefineShape00(lua_State* tolua_S)
  1060. {
  1061. #ifndef TOLUA_RELEASE
  1062. tolua_Error tolua_err;
  1063. if (
  1064. !tolua_isusertype(tolua_S,1,"Cursor",0,&tolua_err) ||
  1065. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1066. !tolua_isusertype(tolua_S,3,"Image",0,&tolua_err) ||
  1067. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const IntRect",0,&tolua_err)) ||
  1068. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"const IntVector2",0,&tolua_err)) ||
  1069. !tolua_isboolean(tolua_S,6,1,&tolua_err) ||
  1070. !tolua_isnoobj(tolua_S,7,&tolua_err)
  1071. )
  1072. goto tolua_lerror;
  1073. else
  1074. #endif
  1075. {
  1076. Cursor* self = (Cursor*) tolua_tousertype(tolua_S,1,0);
  1077. CursorShape shape = ((CursorShape) (int) tolua_tonumber(tolua_S,2,0));
  1078. Image* image = ((Image*) tolua_tousertype(tolua_S,3,0));
  1079. const IntRect* imageRect = ((const IntRect*) tolua_tousertype(tolua_S,4,0));
  1080. const IntVector2* hotSpot = ((const IntVector2*) tolua_tousertype(tolua_S,5,0));
  1081. bool osMouseVisible = ((bool) tolua_toboolean(tolua_S,6,false));
  1082. #ifndef TOLUA_RELEASE
  1083. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'DefineShape'", NULL);
  1084. #endif
  1085. {
  1086. self->DefineShape(shape,image,*imageRect,*hotSpot,osMouseVisible);
  1087. }
  1088. }
  1089. return 0;
  1090. #ifndef TOLUA_RELEASE
  1091. tolua_lerror:
  1092. tolua_error(tolua_S,"#ferror in function 'DefineShape'.",&tolua_err);
  1093. return 0;
  1094. #endif
  1095. }
  1096. #endif //#ifndef TOLUA_DISABLE
  1097. /* method: SetShape of class Cursor */
  1098. #ifndef TOLUA_DISABLE_tolua_UI_Cursor_SetShape00
  1099. static int tolua_UI_Cursor_SetShape00(lua_State* tolua_S)
  1100. {
  1101. #ifndef TOLUA_RELEASE
  1102. tolua_Error tolua_err;
  1103. if (
  1104. !tolua_isusertype(tolua_S,1,"Cursor",0,&tolua_err) ||
  1105. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1106. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1107. )
  1108. goto tolua_lerror;
  1109. else
  1110. #endif
  1111. {
  1112. Cursor* self = (Cursor*) tolua_tousertype(tolua_S,1,0);
  1113. CursorShape shape = ((CursorShape) (int) tolua_tonumber(tolua_S,2,0));
  1114. #ifndef TOLUA_RELEASE
  1115. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShape'", NULL);
  1116. #endif
  1117. {
  1118. self->SetShape(shape);
  1119. }
  1120. }
  1121. return 0;
  1122. #ifndef TOLUA_RELEASE
  1123. tolua_lerror:
  1124. tolua_error(tolua_S,"#ferror in function 'SetShape'.",&tolua_err);
  1125. return 0;
  1126. #endif
  1127. }
  1128. #endif //#ifndef TOLUA_DISABLE
  1129. /* method: GetShape of class Cursor */
  1130. #ifndef TOLUA_DISABLE_tolua_UI_Cursor_GetShape00
  1131. static int tolua_UI_Cursor_GetShape00(lua_State* tolua_S)
  1132. {
  1133. #ifndef TOLUA_RELEASE
  1134. tolua_Error tolua_err;
  1135. if (
  1136. !tolua_isusertype(tolua_S,1,"const Cursor",0,&tolua_err) ||
  1137. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1138. )
  1139. goto tolua_lerror;
  1140. else
  1141. #endif
  1142. {
  1143. const Cursor* self = (const Cursor*) tolua_tousertype(tolua_S,1,0);
  1144. #ifndef TOLUA_RELEASE
  1145. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShape'", NULL);
  1146. #endif
  1147. {
  1148. CursorShape tolua_ret = (CursorShape) self->GetShape();
  1149. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1150. }
  1151. }
  1152. return 1;
  1153. #ifndef TOLUA_RELEASE
  1154. tolua_lerror:
  1155. tolua_error(tolua_S,"#ferror in function 'GetShape'.",&tolua_err);
  1156. return 0;
  1157. #endif
  1158. }
  1159. #endif //#ifndef TOLUA_DISABLE
  1160. /* function: NewCursor */
  1161. #ifndef TOLUA_DISABLE_tolua_UI_Cursor00
  1162. static int tolua_UI_Cursor00(lua_State* tolua_S)
  1163. {
  1164. #ifndef TOLUA_RELEASE
  1165. tolua_Error tolua_err;
  1166. if (
  1167. !tolua_isnoobj(tolua_S,1,&tolua_err)
  1168. )
  1169. goto tolua_lerror;
  1170. else
  1171. #endif
  1172. {
  1173. {
  1174. Cursor* tolua_ret = (Cursor*) NewCursor();
  1175. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Cursor");
  1176. }
  1177. }
  1178. return 1;
  1179. #ifndef TOLUA_RELEASE
  1180. tolua_lerror:
  1181. tolua_error(tolua_S,"#ferror in function 'Cursor'.",&tolua_err);
  1182. return 0;
  1183. #endif
  1184. }
  1185. #endif //#ifndef TOLUA_DISABLE
  1186. /* method: AddItem of class DropDownList */
  1187. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_AddItem00
  1188. static int tolua_UI_DropDownList_AddItem00(lua_State* tolua_S)
  1189. {
  1190. #ifndef TOLUA_RELEASE
  1191. tolua_Error tolua_err;
  1192. if (
  1193. !tolua_isusertype(tolua_S,1,"DropDownList",0,&tolua_err) ||
  1194. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  1195. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1196. )
  1197. goto tolua_lerror;
  1198. else
  1199. #endif
  1200. {
  1201. DropDownList* self = (DropDownList*) tolua_tousertype(tolua_S,1,0);
  1202. UIElement* item = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  1203. #ifndef TOLUA_RELEASE
  1204. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddItem'", NULL);
  1205. #endif
  1206. {
  1207. self->AddItem(item);
  1208. }
  1209. }
  1210. return 0;
  1211. #ifndef TOLUA_RELEASE
  1212. tolua_lerror:
  1213. tolua_error(tolua_S,"#ferror in function 'AddItem'.",&tolua_err);
  1214. return 0;
  1215. #endif
  1216. }
  1217. #endif //#ifndef TOLUA_DISABLE
  1218. /* method: InsertItem of class DropDownList */
  1219. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_InsertItem00
  1220. static int tolua_UI_DropDownList_InsertItem00(lua_State* tolua_S)
  1221. {
  1222. #ifndef TOLUA_RELEASE
  1223. tolua_Error tolua_err;
  1224. if (
  1225. !tolua_isusertype(tolua_S,1,"DropDownList",0,&tolua_err) ||
  1226. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1227. !tolua_isusertype(tolua_S,3,"UIElement",0,&tolua_err) ||
  1228. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1229. )
  1230. goto tolua_lerror;
  1231. else
  1232. #endif
  1233. {
  1234. DropDownList* self = (DropDownList*) tolua_tousertype(tolua_S,1,0);
  1235. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  1236. UIElement* item = ((UIElement*) tolua_tousertype(tolua_S,3,0));
  1237. #ifndef TOLUA_RELEASE
  1238. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'InsertItem'", NULL);
  1239. #endif
  1240. {
  1241. self->InsertItem(index,item);
  1242. }
  1243. }
  1244. return 0;
  1245. #ifndef TOLUA_RELEASE
  1246. tolua_lerror:
  1247. tolua_error(tolua_S,"#ferror in function 'InsertItem'.",&tolua_err);
  1248. return 0;
  1249. #endif
  1250. }
  1251. #endif //#ifndef TOLUA_DISABLE
  1252. /* method: RemoveItem of class DropDownList */
  1253. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_RemoveItem00
  1254. static int tolua_UI_DropDownList_RemoveItem00(lua_State* tolua_S)
  1255. {
  1256. #ifndef TOLUA_RELEASE
  1257. tolua_Error tolua_err;
  1258. if (
  1259. !tolua_isusertype(tolua_S,1,"DropDownList",0,&tolua_err) ||
  1260. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  1261. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1262. )
  1263. goto tolua_lerror;
  1264. else
  1265. #endif
  1266. {
  1267. DropDownList* self = (DropDownList*) tolua_tousertype(tolua_S,1,0);
  1268. UIElement* item = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  1269. #ifndef TOLUA_RELEASE
  1270. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveItem'", NULL);
  1271. #endif
  1272. {
  1273. self->RemoveItem(item);
  1274. }
  1275. }
  1276. return 0;
  1277. #ifndef TOLUA_RELEASE
  1278. tolua_lerror:
  1279. tolua_error(tolua_S,"#ferror in function 'RemoveItem'.",&tolua_err);
  1280. return 0;
  1281. #endif
  1282. }
  1283. #endif //#ifndef TOLUA_DISABLE
  1284. /* method: RemoveItem of class DropDownList */
  1285. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_RemoveItem01
  1286. static int tolua_UI_DropDownList_RemoveItem01(lua_State* tolua_S)
  1287. {
  1288. tolua_Error tolua_err;
  1289. if (
  1290. !tolua_isusertype(tolua_S,1,"DropDownList",0,&tolua_err) ||
  1291. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1292. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1293. )
  1294. goto tolua_lerror;
  1295. else
  1296. {
  1297. DropDownList* self = (DropDownList*) tolua_tousertype(tolua_S,1,0);
  1298. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  1299. #ifndef TOLUA_RELEASE
  1300. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveItem'", NULL);
  1301. #endif
  1302. {
  1303. self->RemoveItem(index);
  1304. }
  1305. }
  1306. return 0;
  1307. tolua_lerror:
  1308. return tolua_UI_DropDownList_RemoveItem00(tolua_S);
  1309. }
  1310. #endif //#ifndef TOLUA_DISABLE
  1311. /* method: RemoveAllItems of class DropDownList */
  1312. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_RemoveAllItems00
  1313. static int tolua_UI_DropDownList_RemoveAllItems00(lua_State* tolua_S)
  1314. {
  1315. #ifndef TOLUA_RELEASE
  1316. tolua_Error tolua_err;
  1317. if (
  1318. !tolua_isusertype(tolua_S,1,"DropDownList",0,&tolua_err) ||
  1319. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1320. )
  1321. goto tolua_lerror;
  1322. else
  1323. #endif
  1324. {
  1325. DropDownList* self = (DropDownList*) tolua_tousertype(tolua_S,1,0);
  1326. #ifndef TOLUA_RELEASE
  1327. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAllItems'", NULL);
  1328. #endif
  1329. {
  1330. self->RemoveAllItems();
  1331. }
  1332. }
  1333. return 0;
  1334. #ifndef TOLUA_RELEASE
  1335. tolua_lerror:
  1336. tolua_error(tolua_S,"#ferror in function 'RemoveAllItems'.",&tolua_err);
  1337. return 0;
  1338. #endif
  1339. }
  1340. #endif //#ifndef TOLUA_DISABLE
  1341. /* method: SetSelection of class DropDownList */
  1342. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_SetSelection00
  1343. static int tolua_UI_DropDownList_SetSelection00(lua_State* tolua_S)
  1344. {
  1345. #ifndef TOLUA_RELEASE
  1346. tolua_Error tolua_err;
  1347. if (
  1348. !tolua_isusertype(tolua_S,1,"DropDownList",0,&tolua_err) ||
  1349. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1350. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1351. )
  1352. goto tolua_lerror;
  1353. else
  1354. #endif
  1355. {
  1356. DropDownList* self = (DropDownList*) tolua_tousertype(tolua_S,1,0);
  1357. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  1358. #ifndef TOLUA_RELEASE
  1359. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSelection'", NULL);
  1360. #endif
  1361. {
  1362. self->SetSelection(index);
  1363. }
  1364. }
  1365. return 0;
  1366. #ifndef TOLUA_RELEASE
  1367. tolua_lerror:
  1368. tolua_error(tolua_S,"#ferror in function 'SetSelection'.",&tolua_err);
  1369. return 0;
  1370. #endif
  1371. }
  1372. #endif //#ifndef TOLUA_DISABLE
  1373. /* method: SetPlaceholderText of class DropDownList */
  1374. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_SetPlaceholderText00
  1375. static int tolua_UI_DropDownList_SetPlaceholderText00(lua_State* tolua_S)
  1376. {
  1377. #ifndef TOLUA_RELEASE
  1378. tolua_Error tolua_err;
  1379. if (
  1380. !tolua_isusertype(tolua_S,1,"DropDownList",0,&tolua_err) ||
  1381. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1382. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1383. )
  1384. goto tolua_lerror;
  1385. else
  1386. #endif
  1387. {
  1388. DropDownList* self = (DropDownList*) tolua_tousertype(tolua_S,1,0);
  1389. const String* text = ((const String*) tolua_tousertype(tolua_S,2,0));
  1390. #ifndef TOLUA_RELEASE
  1391. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPlaceholderText'", NULL);
  1392. #endif
  1393. {
  1394. self->SetPlaceholderText(*text);
  1395. }
  1396. }
  1397. return 0;
  1398. #ifndef TOLUA_RELEASE
  1399. tolua_lerror:
  1400. tolua_error(tolua_S,"#ferror in function 'SetPlaceholderText'.",&tolua_err);
  1401. return 0;
  1402. #endif
  1403. }
  1404. #endif //#ifndef TOLUA_DISABLE
  1405. /* method: SetResizePopup of class DropDownList */
  1406. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_SetResizePopup00
  1407. static int tolua_UI_DropDownList_SetResizePopup00(lua_State* tolua_S)
  1408. {
  1409. #ifndef TOLUA_RELEASE
  1410. tolua_Error tolua_err;
  1411. if (
  1412. !tolua_isusertype(tolua_S,1,"DropDownList",0,&tolua_err) ||
  1413. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  1414. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1415. )
  1416. goto tolua_lerror;
  1417. else
  1418. #endif
  1419. {
  1420. DropDownList* self = (DropDownList*) tolua_tousertype(tolua_S,1,0);
  1421. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  1422. #ifndef TOLUA_RELEASE
  1423. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetResizePopup'", NULL);
  1424. #endif
  1425. {
  1426. self->SetResizePopup(enable);
  1427. }
  1428. }
  1429. return 0;
  1430. #ifndef TOLUA_RELEASE
  1431. tolua_lerror:
  1432. tolua_error(tolua_S,"#ferror in function 'SetResizePopup'.",&tolua_err);
  1433. return 0;
  1434. #endif
  1435. }
  1436. #endif //#ifndef TOLUA_DISABLE
  1437. /* method: GetNumItems of class DropDownList */
  1438. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_GetNumItems00
  1439. static int tolua_UI_DropDownList_GetNumItems00(lua_State* tolua_S)
  1440. {
  1441. #ifndef TOLUA_RELEASE
  1442. tolua_Error tolua_err;
  1443. if (
  1444. !tolua_isusertype(tolua_S,1,"const DropDownList",0,&tolua_err) ||
  1445. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1446. )
  1447. goto tolua_lerror;
  1448. else
  1449. #endif
  1450. {
  1451. const DropDownList* self = (const DropDownList*) tolua_tousertype(tolua_S,1,0);
  1452. #ifndef TOLUA_RELEASE
  1453. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumItems'", NULL);
  1454. #endif
  1455. {
  1456. unsigned tolua_ret = (unsigned) self->GetNumItems();
  1457. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1458. }
  1459. }
  1460. return 1;
  1461. #ifndef TOLUA_RELEASE
  1462. tolua_lerror:
  1463. tolua_error(tolua_S,"#ferror in function 'GetNumItems'.",&tolua_err);
  1464. return 0;
  1465. #endif
  1466. }
  1467. #endif //#ifndef TOLUA_DISABLE
  1468. /* method: GetItem of class DropDownList */
  1469. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_GetItem00
  1470. static int tolua_UI_DropDownList_GetItem00(lua_State* tolua_S)
  1471. {
  1472. #ifndef TOLUA_RELEASE
  1473. tolua_Error tolua_err;
  1474. if (
  1475. !tolua_isusertype(tolua_S,1,"const DropDownList",0,&tolua_err) ||
  1476. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1477. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1478. )
  1479. goto tolua_lerror;
  1480. else
  1481. #endif
  1482. {
  1483. const DropDownList* self = (const DropDownList*) tolua_tousertype(tolua_S,1,0);
  1484. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  1485. #ifndef TOLUA_RELEASE
  1486. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetItem'", NULL);
  1487. #endif
  1488. {
  1489. UIElement* tolua_ret = (UIElement*) self->GetItem(index);
  1490. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  1491. }
  1492. }
  1493. return 1;
  1494. #ifndef TOLUA_RELEASE
  1495. tolua_lerror:
  1496. tolua_error(tolua_S,"#ferror in function 'GetItem'.",&tolua_err);
  1497. return 0;
  1498. #endif
  1499. }
  1500. #endif //#ifndef TOLUA_DISABLE
  1501. /* method: GetSelection of class DropDownList */
  1502. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_GetSelection00
  1503. static int tolua_UI_DropDownList_GetSelection00(lua_State* tolua_S)
  1504. {
  1505. #ifndef TOLUA_RELEASE
  1506. tolua_Error tolua_err;
  1507. if (
  1508. !tolua_isusertype(tolua_S,1,"const DropDownList",0,&tolua_err) ||
  1509. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1510. )
  1511. goto tolua_lerror;
  1512. else
  1513. #endif
  1514. {
  1515. const DropDownList* self = (const DropDownList*) tolua_tousertype(tolua_S,1,0);
  1516. #ifndef TOLUA_RELEASE
  1517. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSelection'", NULL);
  1518. #endif
  1519. {
  1520. unsigned tolua_ret = (unsigned) self->GetSelection();
  1521. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1522. }
  1523. }
  1524. return 1;
  1525. #ifndef TOLUA_RELEASE
  1526. tolua_lerror:
  1527. tolua_error(tolua_S,"#ferror in function 'GetSelection'.",&tolua_err);
  1528. return 0;
  1529. #endif
  1530. }
  1531. #endif //#ifndef TOLUA_DISABLE
  1532. /* method: GetSelectedItem of class DropDownList */
  1533. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_GetSelectedItem00
  1534. static int tolua_UI_DropDownList_GetSelectedItem00(lua_State* tolua_S)
  1535. {
  1536. #ifndef TOLUA_RELEASE
  1537. tolua_Error tolua_err;
  1538. if (
  1539. !tolua_isusertype(tolua_S,1,"const DropDownList",0,&tolua_err) ||
  1540. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1541. )
  1542. goto tolua_lerror;
  1543. else
  1544. #endif
  1545. {
  1546. const DropDownList* self = (const DropDownList*) tolua_tousertype(tolua_S,1,0);
  1547. #ifndef TOLUA_RELEASE
  1548. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSelectedItem'", NULL);
  1549. #endif
  1550. {
  1551. UIElement* tolua_ret = (UIElement*) self->GetSelectedItem();
  1552. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  1553. }
  1554. }
  1555. return 1;
  1556. #ifndef TOLUA_RELEASE
  1557. tolua_lerror:
  1558. tolua_error(tolua_S,"#ferror in function 'GetSelectedItem'.",&tolua_err);
  1559. return 0;
  1560. #endif
  1561. }
  1562. #endif //#ifndef TOLUA_DISABLE
  1563. /* method: GetListView of class DropDownList */
  1564. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_GetListView00
  1565. static int tolua_UI_DropDownList_GetListView00(lua_State* tolua_S)
  1566. {
  1567. #ifndef TOLUA_RELEASE
  1568. tolua_Error tolua_err;
  1569. if (
  1570. !tolua_isusertype(tolua_S,1,"const DropDownList",0,&tolua_err) ||
  1571. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1572. )
  1573. goto tolua_lerror;
  1574. else
  1575. #endif
  1576. {
  1577. const DropDownList* self = (const DropDownList*) tolua_tousertype(tolua_S,1,0);
  1578. #ifndef TOLUA_RELEASE
  1579. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetListView'", NULL);
  1580. #endif
  1581. {
  1582. ListView* tolua_ret = (ListView*) self->GetListView();
  1583. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ListView");
  1584. }
  1585. }
  1586. return 1;
  1587. #ifndef TOLUA_RELEASE
  1588. tolua_lerror:
  1589. tolua_error(tolua_S,"#ferror in function 'GetListView'.",&tolua_err);
  1590. return 0;
  1591. #endif
  1592. }
  1593. #endif //#ifndef TOLUA_DISABLE
  1594. /* method: GetPlaceholder of class DropDownList */
  1595. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_GetPlaceholder00
  1596. static int tolua_UI_DropDownList_GetPlaceholder00(lua_State* tolua_S)
  1597. {
  1598. #ifndef TOLUA_RELEASE
  1599. tolua_Error tolua_err;
  1600. if (
  1601. !tolua_isusertype(tolua_S,1,"const DropDownList",0,&tolua_err) ||
  1602. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1603. )
  1604. goto tolua_lerror;
  1605. else
  1606. #endif
  1607. {
  1608. const DropDownList* self = (const DropDownList*) tolua_tousertype(tolua_S,1,0);
  1609. #ifndef TOLUA_RELEASE
  1610. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPlaceholder'", NULL);
  1611. #endif
  1612. {
  1613. UIElement* tolua_ret = (UIElement*) self->GetPlaceholder();
  1614. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  1615. }
  1616. }
  1617. return 1;
  1618. #ifndef TOLUA_RELEASE
  1619. tolua_lerror:
  1620. tolua_error(tolua_S,"#ferror in function 'GetPlaceholder'.",&tolua_err);
  1621. return 0;
  1622. #endif
  1623. }
  1624. #endif //#ifndef TOLUA_DISABLE
  1625. /* method: GetPlaceholderText of class DropDownList */
  1626. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_GetPlaceholderText00
  1627. static int tolua_UI_DropDownList_GetPlaceholderText00(lua_State* tolua_S)
  1628. {
  1629. #ifndef TOLUA_RELEASE
  1630. tolua_Error tolua_err;
  1631. if (
  1632. !tolua_isusertype(tolua_S,1,"const DropDownList",0,&tolua_err) ||
  1633. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1634. )
  1635. goto tolua_lerror;
  1636. else
  1637. #endif
  1638. {
  1639. const DropDownList* self = (const DropDownList*) tolua_tousertype(tolua_S,1,0);
  1640. #ifndef TOLUA_RELEASE
  1641. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPlaceholderText'", NULL);
  1642. #endif
  1643. {
  1644. const String& tolua_ret = (const String&) self->GetPlaceholderText();
  1645. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  1646. }
  1647. }
  1648. return 1;
  1649. #ifndef TOLUA_RELEASE
  1650. tolua_lerror:
  1651. tolua_error(tolua_S,"#ferror in function 'GetPlaceholderText'.",&tolua_err);
  1652. return 0;
  1653. #endif
  1654. }
  1655. #endif //#ifndef TOLUA_DISABLE
  1656. /* method: GetResizePopup of class DropDownList */
  1657. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_GetResizePopup00
  1658. static int tolua_UI_DropDownList_GetResizePopup00(lua_State* tolua_S)
  1659. {
  1660. #ifndef TOLUA_RELEASE
  1661. tolua_Error tolua_err;
  1662. if (
  1663. !tolua_isusertype(tolua_S,1,"const DropDownList",0,&tolua_err) ||
  1664. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1665. )
  1666. goto tolua_lerror;
  1667. else
  1668. #endif
  1669. {
  1670. const DropDownList* self = (const DropDownList*) tolua_tousertype(tolua_S,1,0);
  1671. #ifndef TOLUA_RELEASE
  1672. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetResizePopup'", NULL);
  1673. #endif
  1674. {
  1675. bool tolua_ret = (bool) self->GetResizePopup();
  1676. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1677. }
  1678. }
  1679. return 1;
  1680. #ifndef TOLUA_RELEASE
  1681. tolua_lerror:
  1682. tolua_error(tolua_S,"#ferror in function 'GetResizePopup'.",&tolua_err);
  1683. return 0;
  1684. #endif
  1685. }
  1686. #endif //#ifndef TOLUA_DISABLE
  1687. /* get function: name_ of class FileSelectorEntry */
  1688. #ifndef TOLUA_DISABLE_tolua_get_FileSelectorEntry_name_
  1689. static int tolua_get_FileSelectorEntry_name_(lua_State* tolua_S)
  1690. {
  1691. FileSelectorEntry* self = (FileSelectorEntry*) tolua_tousertype(tolua_S,1,0);
  1692. #ifndef TOLUA_RELEASE
  1693. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name_'",NULL);
  1694. #endif
  1695. tolua_pushusertype(tolua_S,(void*)&self->name_,"String");
  1696. return 1;
  1697. }
  1698. #endif //#ifndef TOLUA_DISABLE
  1699. /* set function: name_ of class FileSelectorEntry */
  1700. #ifndef TOLUA_DISABLE_tolua_set_FileSelectorEntry_name_
  1701. static int tolua_set_FileSelectorEntry_name_(lua_State* tolua_S)
  1702. {
  1703. FileSelectorEntry* self = (FileSelectorEntry*) tolua_tousertype(tolua_S,1,0);
  1704. #ifndef TOLUA_RELEASE
  1705. tolua_Error tolua_err;
  1706. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name_'",NULL);
  1707. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"String",0,&tolua_err)))
  1708. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1709. #endif
  1710. self->name_ = *((String*) tolua_tousertype(tolua_S,2,0))
  1711. ;
  1712. return 0;
  1713. }
  1714. #endif //#ifndef TOLUA_DISABLE
  1715. /* get function: directory_ of class FileSelectorEntry */
  1716. #ifndef TOLUA_DISABLE_tolua_get_FileSelectorEntry_directory_
  1717. static int tolua_get_FileSelectorEntry_directory_(lua_State* tolua_S)
  1718. {
  1719. FileSelectorEntry* self = (FileSelectorEntry*) tolua_tousertype(tolua_S,1,0);
  1720. #ifndef TOLUA_RELEASE
  1721. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'directory_'",NULL);
  1722. #endif
  1723. tolua_pushboolean(tolua_S,(bool)self->directory_);
  1724. return 1;
  1725. }
  1726. #endif //#ifndef TOLUA_DISABLE
  1727. /* set function: directory_ of class FileSelectorEntry */
  1728. #ifndef TOLUA_DISABLE_tolua_set_FileSelectorEntry_directory_
  1729. static int tolua_set_FileSelectorEntry_directory_(lua_State* tolua_S)
  1730. {
  1731. FileSelectorEntry* self = (FileSelectorEntry*) tolua_tousertype(tolua_S,1,0);
  1732. #ifndef TOLUA_RELEASE
  1733. tolua_Error tolua_err;
  1734. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'directory_'",NULL);
  1735. if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
  1736. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1737. #endif
  1738. self->directory_ = ((bool) tolua_toboolean(tolua_S,2,0))
  1739. ;
  1740. return 0;
  1741. }
  1742. #endif //#ifndef TOLUA_DISABLE
  1743. /* method: SetDefaultStyle of class FileSelector */
  1744. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_SetDefaultStyle00
  1745. static int tolua_UI_FileSelector_SetDefaultStyle00(lua_State* tolua_S)
  1746. {
  1747. #ifndef TOLUA_RELEASE
  1748. tolua_Error tolua_err;
  1749. if (
  1750. !tolua_isusertype(tolua_S,1,"FileSelector",0,&tolua_err) ||
  1751. !tolua_isusertype(tolua_S,2,"XMLFile",0,&tolua_err) ||
  1752. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1753. )
  1754. goto tolua_lerror;
  1755. else
  1756. #endif
  1757. {
  1758. FileSelector* self = (FileSelector*) tolua_tousertype(tolua_S,1,0);
  1759. XMLFile* style = ((XMLFile*) tolua_tousertype(tolua_S,2,0));
  1760. #ifndef TOLUA_RELEASE
  1761. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDefaultStyle'", NULL);
  1762. #endif
  1763. {
  1764. self->SetDefaultStyle(style);
  1765. }
  1766. }
  1767. return 0;
  1768. #ifndef TOLUA_RELEASE
  1769. tolua_lerror:
  1770. tolua_error(tolua_S,"#ferror in function 'SetDefaultStyle'.",&tolua_err);
  1771. return 0;
  1772. #endif
  1773. }
  1774. #endif //#ifndef TOLUA_DISABLE
  1775. /* method: SetTitle of class FileSelector */
  1776. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_SetTitle00
  1777. static int tolua_UI_FileSelector_SetTitle00(lua_State* tolua_S)
  1778. {
  1779. #ifndef TOLUA_RELEASE
  1780. tolua_Error tolua_err;
  1781. if (
  1782. !tolua_isusertype(tolua_S,1,"FileSelector",0,&tolua_err) ||
  1783. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1784. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1785. )
  1786. goto tolua_lerror;
  1787. else
  1788. #endif
  1789. {
  1790. FileSelector* self = (FileSelector*) tolua_tousertype(tolua_S,1,0);
  1791. const String* text = ((const String*) tolua_tousertype(tolua_S,2,0));
  1792. #ifndef TOLUA_RELEASE
  1793. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTitle'", NULL);
  1794. #endif
  1795. {
  1796. self->SetTitle(*text);
  1797. }
  1798. }
  1799. return 0;
  1800. #ifndef TOLUA_RELEASE
  1801. tolua_lerror:
  1802. tolua_error(tolua_S,"#ferror in function 'SetTitle'.",&tolua_err);
  1803. return 0;
  1804. #endif
  1805. }
  1806. #endif //#ifndef TOLUA_DISABLE
  1807. /* method: SetButtonTexts of class FileSelector */
  1808. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_SetButtonTexts00
  1809. static int tolua_UI_FileSelector_SetButtonTexts00(lua_State* tolua_S)
  1810. {
  1811. #ifndef TOLUA_RELEASE
  1812. tolua_Error tolua_err;
  1813. if (
  1814. !tolua_isusertype(tolua_S,1,"FileSelector",0,&tolua_err) ||
  1815. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1816. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const String",0,&tolua_err)) ||
  1817. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1818. )
  1819. goto tolua_lerror;
  1820. else
  1821. #endif
  1822. {
  1823. FileSelector* self = (FileSelector*) tolua_tousertype(tolua_S,1,0);
  1824. const String* okText = ((const String*) tolua_tousertype(tolua_S,2,0));
  1825. const String* cancelText = ((const String*) tolua_tousertype(tolua_S,3,0));
  1826. #ifndef TOLUA_RELEASE
  1827. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetButtonTexts'", NULL);
  1828. #endif
  1829. {
  1830. self->SetButtonTexts(*okText,*cancelText);
  1831. }
  1832. }
  1833. return 0;
  1834. #ifndef TOLUA_RELEASE
  1835. tolua_lerror:
  1836. tolua_error(tolua_S,"#ferror in function 'SetButtonTexts'.",&tolua_err);
  1837. return 0;
  1838. #endif
  1839. }
  1840. #endif //#ifndef TOLUA_DISABLE
  1841. /* method: SetPath of class FileSelector */
  1842. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_SetPath00
  1843. static int tolua_UI_FileSelector_SetPath00(lua_State* tolua_S)
  1844. {
  1845. #ifndef TOLUA_RELEASE
  1846. tolua_Error tolua_err;
  1847. if (
  1848. !tolua_isusertype(tolua_S,1,"FileSelector",0,&tolua_err) ||
  1849. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1850. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1851. )
  1852. goto tolua_lerror;
  1853. else
  1854. #endif
  1855. {
  1856. FileSelector* self = (FileSelector*) tolua_tousertype(tolua_S,1,0);
  1857. const String* path = ((const String*) tolua_tousertype(tolua_S,2,0));
  1858. #ifndef TOLUA_RELEASE
  1859. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPath'", NULL);
  1860. #endif
  1861. {
  1862. self->SetPath(*path);
  1863. }
  1864. }
  1865. return 0;
  1866. #ifndef TOLUA_RELEASE
  1867. tolua_lerror:
  1868. tolua_error(tolua_S,"#ferror in function 'SetPath'.",&tolua_err);
  1869. return 0;
  1870. #endif
  1871. }
  1872. #endif //#ifndef TOLUA_DISABLE
  1873. /* method: SetFileName of class FileSelector */
  1874. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_SetFileName00
  1875. static int tolua_UI_FileSelector_SetFileName00(lua_State* tolua_S)
  1876. {
  1877. #ifndef TOLUA_RELEASE
  1878. tolua_Error tolua_err;
  1879. if (
  1880. !tolua_isusertype(tolua_S,1,"FileSelector",0,&tolua_err) ||
  1881. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1882. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1883. )
  1884. goto tolua_lerror;
  1885. else
  1886. #endif
  1887. {
  1888. FileSelector* self = (FileSelector*) tolua_tousertype(tolua_S,1,0);
  1889. const String* fileName = ((const String*) tolua_tousertype(tolua_S,2,0));
  1890. #ifndef TOLUA_RELEASE
  1891. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFileName'", NULL);
  1892. #endif
  1893. {
  1894. self->SetFileName(*fileName);
  1895. }
  1896. }
  1897. return 0;
  1898. #ifndef TOLUA_RELEASE
  1899. tolua_lerror:
  1900. tolua_error(tolua_S,"#ferror in function 'SetFileName'.",&tolua_err);
  1901. return 0;
  1902. #endif
  1903. }
  1904. #endif //#ifndef TOLUA_DISABLE
  1905. /* method: SetFilters of class FileSelector */
  1906. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_SetFilters00
  1907. static int tolua_UI_FileSelector_SetFilters00(lua_State* tolua_S)
  1908. {
  1909. #ifndef TOLUA_RELEASE
  1910. tolua_Error tolua_err;
  1911. if (
  1912. !tolua_isusertype(tolua_S,1,"FileSelector",0,&tolua_err) ||
  1913. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector<String>",0,&tolua_err)) ||
  1914. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1915. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1916. )
  1917. goto tolua_lerror;
  1918. else
  1919. #endif
  1920. {
  1921. FileSelector* self = (FileSelector*) tolua_tousertype(tolua_S,1,0);
  1922. const Vector<String>* filters = ((const Vector<String>*) tolua_tousertype(tolua_S,2,0));
  1923. unsigned defaultIndex = ((unsigned) tolua_tonumber(tolua_S,3,0));
  1924. #ifndef TOLUA_RELEASE
  1925. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFilters'", NULL);
  1926. #endif
  1927. {
  1928. self->SetFilters(*filters,defaultIndex);
  1929. }
  1930. }
  1931. return 0;
  1932. #ifndef TOLUA_RELEASE
  1933. tolua_lerror:
  1934. tolua_error(tolua_S,"#ferror in function 'SetFilters'.",&tolua_err);
  1935. return 0;
  1936. #endif
  1937. }
  1938. #endif //#ifndef TOLUA_DISABLE
  1939. /* method: SetDirectoryMode of class FileSelector */
  1940. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_SetDirectoryMode00
  1941. static int tolua_UI_FileSelector_SetDirectoryMode00(lua_State* tolua_S)
  1942. {
  1943. #ifndef TOLUA_RELEASE
  1944. tolua_Error tolua_err;
  1945. if (
  1946. !tolua_isusertype(tolua_S,1,"FileSelector",0,&tolua_err) ||
  1947. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  1948. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1949. )
  1950. goto tolua_lerror;
  1951. else
  1952. #endif
  1953. {
  1954. FileSelector* self = (FileSelector*) tolua_tousertype(tolua_S,1,0);
  1955. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  1956. #ifndef TOLUA_RELEASE
  1957. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDirectoryMode'", NULL);
  1958. #endif
  1959. {
  1960. self->SetDirectoryMode(enable);
  1961. }
  1962. }
  1963. return 0;
  1964. #ifndef TOLUA_RELEASE
  1965. tolua_lerror:
  1966. tolua_error(tolua_S,"#ferror in function 'SetDirectoryMode'.",&tolua_err);
  1967. return 0;
  1968. #endif
  1969. }
  1970. #endif //#ifndef TOLUA_DISABLE
  1971. /* method: UpdateElements of class FileSelector */
  1972. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_UpdateElements00
  1973. static int tolua_UI_FileSelector_UpdateElements00(lua_State* tolua_S)
  1974. {
  1975. #ifndef TOLUA_RELEASE
  1976. tolua_Error tolua_err;
  1977. if (
  1978. !tolua_isusertype(tolua_S,1,"FileSelector",0,&tolua_err) ||
  1979. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1980. )
  1981. goto tolua_lerror;
  1982. else
  1983. #endif
  1984. {
  1985. FileSelector* self = (FileSelector*) tolua_tousertype(tolua_S,1,0);
  1986. #ifndef TOLUA_RELEASE
  1987. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'UpdateElements'", NULL);
  1988. #endif
  1989. {
  1990. self->UpdateElements();
  1991. }
  1992. }
  1993. return 0;
  1994. #ifndef TOLUA_RELEASE
  1995. tolua_lerror:
  1996. tolua_error(tolua_S,"#ferror in function 'UpdateElements'.",&tolua_err);
  1997. return 0;
  1998. #endif
  1999. }
  2000. #endif //#ifndef TOLUA_DISABLE
  2001. /* method: GetDefaultStyle of class FileSelector */
  2002. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetDefaultStyle00
  2003. static int tolua_UI_FileSelector_GetDefaultStyle00(lua_State* tolua_S)
  2004. {
  2005. #ifndef TOLUA_RELEASE
  2006. tolua_Error tolua_err;
  2007. if (
  2008. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2009. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2010. )
  2011. goto tolua_lerror;
  2012. else
  2013. #endif
  2014. {
  2015. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2016. #ifndef TOLUA_RELEASE
  2017. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDefaultStyle'", NULL);
  2018. #endif
  2019. {
  2020. XMLFile* tolua_ret = (XMLFile*) self->GetDefaultStyle();
  2021. tolua_pushusertype(tolua_S,(void*)tolua_ret,"XMLFile");
  2022. }
  2023. }
  2024. return 1;
  2025. #ifndef TOLUA_RELEASE
  2026. tolua_lerror:
  2027. tolua_error(tolua_S,"#ferror in function 'GetDefaultStyle'.",&tolua_err);
  2028. return 0;
  2029. #endif
  2030. }
  2031. #endif //#ifndef TOLUA_DISABLE
  2032. /* method: GetWindow of class FileSelector */
  2033. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetWindow00
  2034. static int tolua_UI_FileSelector_GetWindow00(lua_State* tolua_S)
  2035. {
  2036. #ifndef TOLUA_RELEASE
  2037. tolua_Error tolua_err;
  2038. if (
  2039. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2040. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2041. )
  2042. goto tolua_lerror;
  2043. else
  2044. #endif
  2045. {
  2046. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2047. #ifndef TOLUA_RELEASE
  2048. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWindow'", NULL);
  2049. #endif
  2050. {
  2051. Window* tolua_ret = (Window*) self->GetWindow();
  2052. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Window");
  2053. }
  2054. }
  2055. return 1;
  2056. #ifndef TOLUA_RELEASE
  2057. tolua_lerror:
  2058. tolua_error(tolua_S,"#ferror in function 'GetWindow'.",&tolua_err);
  2059. return 0;
  2060. #endif
  2061. }
  2062. #endif //#ifndef TOLUA_DISABLE
  2063. /* method: GetTitleText of class FileSelector */
  2064. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetTitleText00
  2065. static int tolua_UI_FileSelector_GetTitleText00(lua_State* tolua_S)
  2066. {
  2067. #ifndef TOLUA_RELEASE
  2068. tolua_Error tolua_err;
  2069. if (
  2070. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2071. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2072. )
  2073. goto tolua_lerror;
  2074. else
  2075. #endif
  2076. {
  2077. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2078. #ifndef TOLUA_RELEASE
  2079. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTitleText'", NULL);
  2080. #endif
  2081. {
  2082. Text* tolua_ret = (Text*) self->GetTitleText();
  2083. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Text");
  2084. }
  2085. }
  2086. return 1;
  2087. #ifndef TOLUA_RELEASE
  2088. tolua_lerror:
  2089. tolua_error(tolua_S,"#ferror in function 'GetTitleText'.",&tolua_err);
  2090. return 0;
  2091. #endif
  2092. }
  2093. #endif //#ifndef TOLUA_DISABLE
  2094. /* method: GetFileList of class FileSelector */
  2095. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetFileList00
  2096. static int tolua_UI_FileSelector_GetFileList00(lua_State* tolua_S)
  2097. {
  2098. #ifndef TOLUA_RELEASE
  2099. tolua_Error tolua_err;
  2100. if (
  2101. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2102. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2103. )
  2104. goto tolua_lerror;
  2105. else
  2106. #endif
  2107. {
  2108. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2109. #ifndef TOLUA_RELEASE
  2110. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFileList'", NULL);
  2111. #endif
  2112. {
  2113. ListView* tolua_ret = (ListView*) self->GetFileList();
  2114. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ListView");
  2115. }
  2116. }
  2117. return 1;
  2118. #ifndef TOLUA_RELEASE
  2119. tolua_lerror:
  2120. tolua_error(tolua_S,"#ferror in function 'GetFileList'.",&tolua_err);
  2121. return 0;
  2122. #endif
  2123. }
  2124. #endif //#ifndef TOLUA_DISABLE
  2125. /* method: GetPathEdit of class FileSelector */
  2126. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetPathEdit00
  2127. static int tolua_UI_FileSelector_GetPathEdit00(lua_State* tolua_S)
  2128. {
  2129. #ifndef TOLUA_RELEASE
  2130. tolua_Error tolua_err;
  2131. if (
  2132. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2133. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2134. )
  2135. goto tolua_lerror;
  2136. else
  2137. #endif
  2138. {
  2139. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2140. #ifndef TOLUA_RELEASE
  2141. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPathEdit'", NULL);
  2142. #endif
  2143. {
  2144. LineEdit* tolua_ret = (LineEdit*) self->GetPathEdit();
  2145. tolua_pushusertype(tolua_S,(void*)tolua_ret,"LineEdit");
  2146. }
  2147. }
  2148. return 1;
  2149. #ifndef TOLUA_RELEASE
  2150. tolua_lerror:
  2151. tolua_error(tolua_S,"#ferror in function 'GetPathEdit'.",&tolua_err);
  2152. return 0;
  2153. #endif
  2154. }
  2155. #endif //#ifndef TOLUA_DISABLE
  2156. /* method: GetFileNameEdit of class FileSelector */
  2157. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetFileNameEdit00
  2158. static int tolua_UI_FileSelector_GetFileNameEdit00(lua_State* tolua_S)
  2159. {
  2160. #ifndef TOLUA_RELEASE
  2161. tolua_Error tolua_err;
  2162. if (
  2163. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2164. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2165. )
  2166. goto tolua_lerror;
  2167. else
  2168. #endif
  2169. {
  2170. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2171. #ifndef TOLUA_RELEASE
  2172. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFileNameEdit'", NULL);
  2173. #endif
  2174. {
  2175. LineEdit* tolua_ret = (LineEdit*) self->GetFileNameEdit();
  2176. tolua_pushusertype(tolua_S,(void*)tolua_ret,"LineEdit");
  2177. }
  2178. }
  2179. return 1;
  2180. #ifndef TOLUA_RELEASE
  2181. tolua_lerror:
  2182. tolua_error(tolua_S,"#ferror in function 'GetFileNameEdit'.",&tolua_err);
  2183. return 0;
  2184. #endif
  2185. }
  2186. #endif //#ifndef TOLUA_DISABLE
  2187. /* method: GetFilterList of class FileSelector */
  2188. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetFilterList00
  2189. static int tolua_UI_FileSelector_GetFilterList00(lua_State* tolua_S)
  2190. {
  2191. #ifndef TOLUA_RELEASE
  2192. tolua_Error tolua_err;
  2193. if (
  2194. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2195. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2196. )
  2197. goto tolua_lerror;
  2198. else
  2199. #endif
  2200. {
  2201. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2202. #ifndef TOLUA_RELEASE
  2203. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFilterList'", NULL);
  2204. #endif
  2205. {
  2206. DropDownList* tolua_ret = (DropDownList*) self->GetFilterList();
  2207. tolua_pushusertype(tolua_S,(void*)tolua_ret,"DropDownList");
  2208. }
  2209. }
  2210. return 1;
  2211. #ifndef TOLUA_RELEASE
  2212. tolua_lerror:
  2213. tolua_error(tolua_S,"#ferror in function 'GetFilterList'.",&tolua_err);
  2214. return 0;
  2215. #endif
  2216. }
  2217. #endif //#ifndef TOLUA_DISABLE
  2218. /* method: GetOKButton of class FileSelector */
  2219. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetOKButton00
  2220. static int tolua_UI_FileSelector_GetOKButton00(lua_State* tolua_S)
  2221. {
  2222. #ifndef TOLUA_RELEASE
  2223. tolua_Error tolua_err;
  2224. if (
  2225. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2226. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2227. )
  2228. goto tolua_lerror;
  2229. else
  2230. #endif
  2231. {
  2232. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2233. #ifndef TOLUA_RELEASE
  2234. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOKButton'", NULL);
  2235. #endif
  2236. {
  2237. Button* tolua_ret = (Button*) self->GetOKButton();
  2238. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Button");
  2239. }
  2240. }
  2241. return 1;
  2242. #ifndef TOLUA_RELEASE
  2243. tolua_lerror:
  2244. tolua_error(tolua_S,"#ferror in function 'GetOKButton'.",&tolua_err);
  2245. return 0;
  2246. #endif
  2247. }
  2248. #endif //#ifndef TOLUA_DISABLE
  2249. /* method: GetCancelButton of class FileSelector */
  2250. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetCancelButton00
  2251. static int tolua_UI_FileSelector_GetCancelButton00(lua_State* tolua_S)
  2252. {
  2253. #ifndef TOLUA_RELEASE
  2254. tolua_Error tolua_err;
  2255. if (
  2256. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2257. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2258. )
  2259. goto tolua_lerror;
  2260. else
  2261. #endif
  2262. {
  2263. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2264. #ifndef TOLUA_RELEASE
  2265. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCancelButton'", NULL);
  2266. #endif
  2267. {
  2268. Button* tolua_ret = (Button*) self->GetCancelButton();
  2269. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Button");
  2270. }
  2271. }
  2272. return 1;
  2273. #ifndef TOLUA_RELEASE
  2274. tolua_lerror:
  2275. tolua_error(tolua_S,"#ferror in function 'GetCancelButton'.",&tolua_err);
  2276. return 0;
  2277. #endif
  2278. }
  2279. #endif //#ifndef TOLUA_DISABLE
  2280. /* method: GetCloseButton of class FileSelector */
  2281. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetCloseButton00
  2282. static int tolua_UI_FileSelector_GetCloseButton00(lua_State* tolua_S)
  2283. {
  2284. #ifndef TOLUA_RELEASE
  2285. tolua_Error tolua_err;
  2286. if (
  2287. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2288. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2289. )
  2290. goto tolua_lerror;
  2291. else
  2292. #endif
  2293. {
  2294. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2295. #ifndef TOLUA_RELEASE
  2296. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCloseButton'", NULL);
  2297. #endif
  2298. {
  2299. Button* tolua_ret = (Button*) self->GetCloseButton();
  2300. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Button");
  2301. }
  2302. }
  2303. return 1;
  2304. #ifndef TOLUA_RELEASE
  2305. tolua_lerror:
  2306. tolua_error(tolua_S,"#ferror in function 'GetCloseButton'.",&tolua_err);
  2307. return 0;
  2308. #endif
  2309. }
  2310. #endif //#ifndef TOLUA_DISABLE
  2311. /* method: GetTitle of class FileSelector */
  2312. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetTitle00
  2313. static int tolua_UI_FileSelector_GetTitle00(lua_State* tolua_S)
  2314. {
  2315. #ifndef TOLUA_RELEASE
  2316. tolua_Error tolua_err;
  2317. if (
  2318. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2319. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2320. )
  2321. goto tolua_lerror;
  2322. else
  2323. #endif
  2324. {
  2325. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2326. #ifndef TOLUA_RELEASE
  2327. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTitle'", NULL);
  2328. #endif
  2329. {
  2330. const String& tolua_ret = (const String&) self->GetTitle();
  2331. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  2332. }
  2333. }
  2334. return 1;
  2335. #ifndef TOLUA_RELEASE
  2336. tolua_lerror:
  2337. tolua_error(tolua_S,"#ferror in function 'GetTitle'.",&tolua_err);
  2338. return 0;
  2339. #endif
  2340. }
  2341. #endif //#ifndef TOLUA_DISABLE
  2342. /* method: GetPath of class FileSelector */
  2343. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetPath00
  2344. static int tolua_UI_FileSelector_GetPath00(lua_State* tolua_S)
  2345. {
  2346. #ifndef TOLUA_RELEASE
  2347. tolua_Error tolua_err;
  2348. if (
  2349. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2350. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2351. )
  2352. goto tolua_lerror;
  2353. else
  2354. #endif
  2355. {
  2356. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2357. #ifndef TOLUA_RELEASE
  2358. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPath'", NULL);
  2359. #endif
  2360. {
  2361. const String& tolua_ret = (const String&) self->GetPath();
  2362. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  2363. }
  2364. }
  2365. return 1;
  2366. #ifndef TOLUA_RELEASE
  2367. tolua_lerror:
  2368. tolua_error(tolua_S,"#ferror in function 'GetPath'.",&tolua_err);
  2369. return 0;
  2370. #endif
  2371. }
  2372. #endif //#ifndef TOLUA_DISABLE
  2373. /* method: GetFileName of class FileSelector */
  2374. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetFileName00
  2375. static int tolua_UI_FileSelector_GetFileName00(lua_State* tolua_S)
  2376. {
  2377. #ifndef TOLUA_RELEASE
  2378. tolua_Error tolua_err;
  2379. if (
  2380. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2381. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2382. )
  2383. goto tolua_lerror;
  2384. else
  2385. #endif
  2386. {
  2387. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2388. #ifndef TOLUA_RELEASE
  2389. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFileName'", NULL);
  2390. #endif
  2391. {
  2392. const String& tolua_ret = (const String&) self->GetFileName();
  2393. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  2394. }
  2395. }
  2396. return 1;
  2397. #ifndef TOLUA_RELEASE
  2398. tolua_lerror:
  2399. tolua_error(tolua_S,"#ferror in function 'GetFileName'.",&tolua_err);
  2400. return 0;
  2401. #endif
  2402. }
  2403. #endif //#ifndef TOLUA_DISABLE
  2404. /* method: GetFilter of class FileSelector */
  2405. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetFilter00
  2406. static int tolua_UI_FileSelector_GetFilter00(lua_State* tolua_S)
  2407. {
  2408. #ifndef TOLUA_RELEASE
  2409. tolua_Error tolua_err;
  2410. if (
  2411. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2412. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2413. )
  2414. goto tolua_lerror;
  2415. else
  2416. #endif
  2417. {
  2418. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2419. #ifndef TOLUA_RELEASE
  2420. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFilter'", NULL);
  2421. #endif
  2422. {
  2423. const String& tolua_ret = (const String&) self->GetFilter();
  2424. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  2425. }
  2426. }
  2427. return 1;
  2428. #ifndef TOLUA_RELEASE
  2429. tolua_lerror:
  2430. tolua_error(tolua_S,"#ferror in function 'GetFilter'.",&tolua_err);
  2431. return 0;
  2432. #endif
  2433. }
  2434. #endif //#ifndef TOLUA_DISABLE
  2435. /* method: GetFilterIndex of class FileSelector */
  2436. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetFilterIndex00
  2437. static int tolua_UI_FileSelector_GetFilterIndex00(lua_State* tolua_S)
  2438. {
  2439. #ifndef TOLUA_RELEASE
  2440. tolua_Error tolua_err;
  2441. if (
  2442. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2443. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2444. )
  2445. goto tolua_lerror;
  2446. else
  2447. #endif
  2448. {
  2449. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2450. #ifndef TOLUA_RELEASE
  2451. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFilterIndex'", NULL);
  2452. #endif
  2453. {
  2454. unsigned tolua_ret = (unsigned) self->GetFilterIndex();
  2455. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2456. }
  2457. }
  2458. return 1;
  2459. #ifndef TOLUA_RELEASE
  2460. tolua_lerror:
  2461. tolua_error(tolua_S,"#ferror in function 'GetFilterIndex'.",&tolua_err);
  2462. return 0;
  2463. #endif
  2464. }
  2465. #endif //#ifndef TOLUA_DISABLE
  2466. /* method: GetDirectoryMode of class FileSelector */
  2467. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetDirectoryMode00
  2468. static int tolua_UI_FileSelector_GetDirectoryMode00(lua_State* tolua_S)
  2469. {
  2470. #ifndef TOLUA_RELEASE
  2471. tolua_Error tolua_err;
  2472. if (
  2473. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2474. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2475. )
  2476. goto tolua_lerror;
  2477. else
  2478. #endif
  2479. {
  2480. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2481. #ifndef TOLUA_RELEASE
  2482. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDirectoryMode'", NULL);
  2483. #endif
  2484. {
  2485. bool tolua_ret = (bool) self->GetDirectoryMode();
  2486. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  2487. }
  2488. }
  2489. return 1;
  2490. #ifndef TOLUA_RELEASE
  2491. tolua_lerror:
  2492. tolua_error(tolua_S,"#ferror in function 'GetDirectoryMode'.",&tolua_err);
  2493. return 0;
  2494. #endif
  2495. }
  2496. #endif //#ifndef TOLUA_DISABLE
  2497. /* method: SetText of class LineEdit */
  2498. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_SetText00
  2499. static int tolua_UI_LineEdit_SetText00(lua_State* tolua_S)
  2500. {
  2501. #ifndef TOLUA_RELEASE
  2502. tolua_Error tolua_err;
  2503. if (
  2504. !tolua_isusertype(tolua_S,1,"LineEdit",0,&tolua_err) ||
  2505. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2506. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2507. )
  2508. goto tolua_lerror;
  2509. else
  2510. #endif
  2511. {
  2512. LineEdit* self = (LineEdit*) tolua_tousertype(tolua_S,1,0);
  2513. const String* text = ((const String*) tolua_tousertype(tolua_S,2,0));
  2514. #ifndef TOLUA_RELEASE
  2515. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetText'", NULL);
  2516. #endif
  2517. {
  2518. self->SetText(*text);
  2519. }
  2520. }
  2521. return 0;
  2522. #ifndef TOLUA_RELEASE
  2523. tolua_lerror:
  2524. tolua_error(tolua_S,"#ferror in function 'SetText'.",&tolua_err);
  2525. return 0;
  2526. #endif
  2527. }
  2528. #endif //#ifndef TOLUA_DISABLE
  2529. /* method: SetCursorPosition of class LineEdit */
  2530. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_SetCursorPosition00
  2531. static int tolua_UI_LineEdit_SetCursorPosition00(lua_State* tolua_S)
  2532. {
  2533. #ifndef TOLUA_RELEASE
  2534. tolua_Error tolua_err;
  2535. if (
  2536. !tolua_isusertype(tolua_S,1,"LineEdit",0,&tolua_err) ||
  2537. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2538. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2539. )
  2540. goto tolua_lerror;
  2541. else
  2542. #endif
  2543. {
  2544. LineEdit* self = (LineEdit*) tolua_tousertype(tolua_S,1,0);
  2545. unsigned position = ((unsigned) tolua_tonumber(tolua_S,2,0));
  2546. #ifndef TOLUA_RELEASE
  2547. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCursorPosition'", NULL);
  2548. #endif
  2549. {
  2550. self->SetCursorPosition(position);
  2551. }
  2552. }
  2553. return 0;
  2554. #ifndef TOLUA_RELEASE
  2555. tolua_lerror:
  2556. tolua_error(tolua_S,"#ferror in function 'SetCursorPosition'.",&tolua_err);
  2557. return 0;
  2558. #endif
  2559. }
  2560. #endif //#ifndef TOLUA_DISABLE
  2561. /* method: SetCursorBlinkRate of class LineEdit */
  2562. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_SetCursorBlinkRate00
  2563. static int tolua_UI_LineEdit_SetCursorBlinkRate00(lua_State* tolua_S)
  2564. {
  2565. #ifndef TOLUA_RELEASE
  2566. tolua_Error tolua_err;
  2567. if (
  2568. !tolua_isusertype(tolua_S,1,"LineEdit",0,&tolua_err) ||
  2569. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2570. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2571. )
  2572. goto tolua_lerror;
  2573. else
  2574. #endif
  2575. {
  2576. LineEdit* self = (LineEdit*) tolua_tousertype(tolua_S,1,0);
  2577. float rate = ((float) tolua_tonumber(tolua_S,2,0));
  2578. #ifndef TOLUA_RELEASE
  2579. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCursorBlinkRate'", NULL);
  2580. #endif
  2581. {
  2582. self->SetCursorBlinkRate(rate);
  2583. }
  2584. }
  2585. return 0;
  2586. #ifndef TOLUA_RELEASE
  2587. tolua_lerror:
  2588. tolua_error(tolua_S,"#ferror in function 'SetCursorBlinkRate'.",&tolua_err);
  2589. return 0;
  2590. #endif
  2591. }
  2592. #endif //#ifndef TOLUA_DISABLE
  2593. /* method: SetMaxLength of class LineEdit */
  2594. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_SetMaxLength00
  2595. static int tolua_UI_LineEdit_SetMaxLength00(lua_State* tolua_S)
  2596. {
  2597. #ifndef TOLUA_RELEASE
  2598. tolua_Error tolua_err;
  2599. if (
  2600. !tolua_isusertype(tolua_S,1,"LineEdit",0,&tolua_err) ||
  2601. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2602. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2603. )
  2604. goto tolua_lerror;
  2605. else
  2606. #endif
  2607. {
  2608. LineEdit* self = (LineEdit*) tolua_tousertype(tolua_S,1,0);
  2609. unsigned length = ((unsigned) tolua_tonumber(tolua_S,2,0));
  2610. #ifndef TOLUA_RELEASE
  2611. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxLength'", NULL);
  2612. #endif
  2613. {
  2614. self->SetMaxLength(length);
  2615. }
  2616. }
  2617. return 0;
  2618. #ifndef TOLUA_RELEASE
  2619. tolua_lerror:
  2620. tolua_error(tolua_S,"#ferror in function 'SetMaxLength'.",&tolua_err);
  2621. return 0;
  2622. #endif
  2623. }
  2624. #endif //#ifndef TOLUA_DISABLE
  2625. /* method: SetEchoCharacter of class LineEdit */
  2626. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_SetEchoCharacter00
  2627. static int tolua_UI_LineEdit_SetEchoCharacter00(lua_State* tolua_S)
  2628. {
  2629. #ifndef TOLUA_RELEASE
  2630. tolua_Error tolua_err;
  2631. if (
  2632. !tolua_isusertype(tolua_S,1,"LineEdit",0,&tolua_err) ||
  2633. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2634. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2635. )
  2636. goto tolua_lerror;
  2637. else
  2638. #endif
  2639. {
  2640. LineEdit* self = (LineEdit*) tolua_tousertype(tolua_S,1,0);
  2641. unsigned c = ((unsigned) tolua_tonumber(tolua_S,2,0));
  2642. #ifndef TOLUA_RELEASE
  2643. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEchoCharacter'", NULL);
  2644. #endif
  2645. {
  2646. self->SetEchoCharacter(c);
  2647. }
  2648. }
  2649. return 0;
  2650. #ifndef TOLUA_RELEASE
  2651. tolua_lerror:
  2652. tolua_error(tolua_S,"#ferror in function 'SetEchoCharacter'.",&tolua_err);
  2653. return 0;
  2654. #endif
  2655. }
  2656. #endif //#ifndef TOLUA_DISABLE
  2657. /* method: SetCursorMovable of class LineEdit */
  2658. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_SetCursorMovable00
  2659. static int tolua_UI_LineEdit_SetCursorMovable00(lua_State* tolua_S)
  2660. {
  2661. #ifndef TOLUA_RELEASE
  2662. tolua_Error tolua_err;
  2663. if (
  2664. !tolua_isusertype(tolua_S,1,"LineEdit",0,&tolua_err) ||
  2665. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  2666. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2667. )
  2668. goto tolua_lerror;
  2669. else
  2670. #endif
  2671. {
  2672. LineEdit* self = (LineEdit*) tolua_tousertype(tolua_S,1,0);
  2673. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  2674. #ifndef TOLUA_RELEASE
  2675. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCursorMovable'", NULL);
  2676. #endif
  2677. {
  2678. self->SetCursorMovable(enable);
  2679. }
  2680. }
  2681. return 0;
  2682. #ifndef TOLUA_RELEASE
  2683. tolua_lerror:
  2684. tolua_error(tolua_S,"#ferror in function 'SetCursorMovable'.",&tolua_err);
  2685. return 0;
  2686. #endif
  2687. }
  2688. #endif //#ifndef TOLUA_DISABLE
  2689. /* method: SetTextSelectable of class LineEdit */
  2690. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_SetTextSelectable00
  2691. static int tolua_UI_LineEdit_SetTextSelectable00(lua_State* tolua_S)
  2692. {
  2693. #ifndef TOLUA_RELEASE
  2694. tolua_Error tolua_err;
  2695. if (
  2696. !tolua_isusertype(tolua_S,1,"LineEdit",0,&tolua_err) ||
  2697. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  2698. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2699. )
  2700. goto tolua_lerror;
  2701. else
  2702. #endif
  2703. {
  2704. LineEdit* self = (LineEdit*) tolua_tousertype(tolua_S,1,0);
  2705. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  2706. #ifndef TOLUA_RELEASE
  2707. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTextSelectable'", NULL);
  2708. #endif
  2709. {
  2710. self->SetTextSelectable(enable);
  2711. }
  2712. }
  2713. return 0;
  2714. #ifndef TOLUA_RELEASE
  2715. tolua_lerror:
  2716. tolua_error(tolua_S,"#ferror in function 'SetTextSelectable'.",&tolua_err);
  2717. return 0;
  2718. #endif
  2719. }
  2720. #endif //#ifndef TOLUA_DISABLE
  2721. /* method: SetTextCopyable of class LineEdit */
  2722. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_SetTextCopyable00
  2723. static int tolua_UI_LineEdit_SetTextCopyable00(lua_State* tolua_S)
  2724. {
  2725. #ifndef TOLUA_RELEASE
  2726. tolua_Error tolua_err;
  2727. if (
  2728. !tolua_isusertype(tolua_S,1,"LineEdit",0,&tolua_err) ||
  2729. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  2730. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2731. )
  2732. goto tolua_lerror;
  2733. else
  2734. #endif
  2735. {
  2736. LineEdit* self = (LineEdit*) tolua_tousertype(tolua_S,1,0);
  2737. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  2738. #ifndef TOLUA_RELEASE
  2739. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTextCopyable'", NULL);
  2740. #endif
  2741. {
  2742. self->SetTextCopyable(enable);
  2743. }
  2744. }
  2745. return 0;
  2746. #ifndef TOLUA_RELEASE
  2747. tolua_lerror:
  2748. tolua_error(tolua_S,"#ferror in function 'SetTextCopyable'.",&tolua_err);
  2749. return 0;
  2750. #endif
  2751. }
  2752. #endif //#ifndef TOLUA_DISABLE
  2753. /* method: SetDoubleClickInterval of class LineEdit */
  2754. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_SetDoubleClickInterval00
  2755. static int tolua_UI_LineEdit_SetDoubleClickInterval00(lua_State* tolua_S)
  2756. {
  2757. #ifndef TOLUA_RELEASE
  2758. tolua_Error tolua_err;
  2759. if (
  2760. !tolua_isusertype(tolua_S,1,"LineEdit",0,&tolua_err) ||
  2761. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2762. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2763. )
  2764. goto tolua_lerror;
  2765. else
  2766. #endif
  2767. {
  2768. LineEdit* self = (LineEdit*) tolua_tousertype(tolua_S,1,0);
  2769. float interval = ((float) tolua_tonumber(tolua_S,2,0));
  2770. #ifndef TOLUA_RELEASE
  2771. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDoubleClickInterval'", NULL);
  2772. #endif
  2773. {
  2774. self->SetDoubleClickInterval(interval);
  2775. }
  2776. }
  2777. return 0;
  2778. #ifndef TOLUA_RELEASE
  2779. tolua_lerror:
  2780. tolua_error(tolua_S,"#ferror in function 'SetDoubleClickInterval'.",&tolua_err);
  2781. return 0;
  2782. #endif
  2783. }
  2784. #endif //#ifndef TOLUA_DISABLE
  2785. /* method: GetText of class LineEdit */
  2786. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_GetText00
  2787. static int tolua_UI_LineEdit_GetText00(lua_State* tolua_S)
  2788. {
  2789. #ifndef TOLUA_RELEASE
  2790. tolua_Error tolua_err;
  2791. if (
  2792. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  2793. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2794. )
  2795. goto tolua_lerror;
  2796. else
  2797. #endif
  2798. {
  2799. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  2800. #ifndef TOLUA_RELEASE
  2801. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetText'", NULL);
  2802. #endif
  2803. {
  2804. const String& tolua_ret = (const String&) self->GetText();
  2805. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  2806. }
  2807. }
  2808. return 1;
  2809. #ifndef TOLUA_RELEASE
  2810. tolua_lerror:
  2811. tolua_error(tolua_S,"#ferror in function 'GetText'.",&tolua_err);
  2812. return 0;
  2813. #endif
  2814. }
  2815. #endif //#ifndef TOLUA_DISABLE
  2816. /* method: GetCursorPosition of class LineEdit */
  2817. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_GetCursorPosition00
  2818. static int tolua_UI_LineEdit_GetCursorPosition00(lua_State* tolua_S)
  2819. {
  2820. #ifndef TOLUA_RELEASE
  2821. tolua_Error tolua_err;
  2822. if (
  2823. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  2824. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2825. )
  2826. goto tolua_lerror;
  2827. else
  2828. #endif
  2829. {
  2830. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  2831. #ifndef TOLUA_RELEASE
  2832. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCursorPosition'", NULL);
  2833. #endif
  2834. {
  2835. unsigned tolua_ret = (unsigned) self->GetCursorPosition();
  2836. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2837. }
  2838. }
  2839. return 1;
  2840. #ifndef TOLUA_RELEASE
  2841. tolua_lerror:
  2842. tolua_error(tolua_S,"#ferror in function 'GetCursorPosition'.",&tolua_err);
  2843. return 0;
  2844. #endif
  2845. }
  2846. #endif //#ifndef TOLUA_DISABLE
  2847. /* method: GetCursorBlinkRate of class LineEdit */
  2848. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_GetCursorBlinkRate00
  2849. static int tolua_UI_LineEdit_GetCursorBlinkRate00(lua_State* tolua_S)
  2850. {
  2851. #ifndef TOLUA_RELEASE
  2852. tolua_Error tolua_err;
  2853. if (
  2854. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  2855. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2856. )
  2857. goto tolua_lerror;
  2858. else
  2859. #endif
  2860. {
  2861. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  2862. #ifndef TOLUA_RELEASE
  2863. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCursorBlinkRate'", NULL);
  2864. #endif
  2865. {
  2866. float tolua_ret = (float) self->GetCursorBlinkRate();
  2867. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2868. }
  2869. }
  2870. return 1;
  2871. #ifndef TOLUA_RELEASE
  2872. tolua_lerror:
  2873. tolua_error(tolua_S,"#ferror in function 'GetCursorBlinkRate'.",&tolua_err);
  2874. return 0;
  2875. #endif
  2876. }
  2877. #endif //#ifndef TOLUA_DISABLE
  2878. /* method: GetMaxLength of class LineEdit */
  2879. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_GetMaxLength00
  2880. static int tolua_UI_LineEdit_GetMaxLength00(lua_State* tolua_S)
  2881. {
  2882. #ifndef TOLUA_RELEASE
  2883. tolua_Error tolua_err;
  2884. if (
  2885. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  2886. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2887. )
  2888. goto tolua_lerror;
  2889. else
  2890. #endif
  2891. {
  2892. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  2893. #ifndef TOLUA_RELEASE
  2894. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxLength'", NULL);
  2895. #endif
  2896. {
  2897. unsigned tolua_ret = (unsigned) self->GetMaxLength();
  2898. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2899. }
  2900. }
  2901. return 1;
  2902. #ifndef TOLUA_RELEASE
  2903. tolua_lerror:
  2904. tolua_error(tolua_S,"#ferror in function 'GetMaxLength'.",&tolua_err);
  2905. return 0;
  2906. #endif
  2907. }
  2908. #endif //#ifndef TOLUA_DISABLE
  2909. /* method: GetEchoCharacter of class LineEdit */
  2910. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_GetEchoCharacter00
  2911. static int tolua_UI_LineEdit_GetEchoCharacter00(lua_State* tolua_S)
  2912. {
  2913. #ifndef TOLUA_RELEASE
  2914. tolua_Error tolua_err;
  2915. if (
  2916. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  2917. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2918. )
  2919. goto tolua_lerror;
  2920. else
  2921. #endif
  2922. {
  2923. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  2924. #ifndef TOLUA_RELEASE
  2925. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetEchoCharacter'", NULL);
  2926. #endif
  2927. {
  2928. unsigned tolua_ret = (unsigned) self->GetEchoCharacter();
  2929. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2930. }
  2931. }
  2932. return 1;
  2933. #ifndef TOLUA_RELEASE
  2934. tolua_lerror:
  2935. tolua_error(tolua_S,"#ferror in function 'GetEchoCharacter'.",&tolua_err);
  2936. return 0;
  2937. #endif
  2938. }
  2939. #endif //#ifndef TOLUA_DISABLE
  2940. /* method: IsCursorMovable of class LineEdit */
  2941. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_IsCursorMovable00
  2942. static int tolua_UI_LineEdit_IsCursorMovable00(lua_State* tolua_S)
  2943. {
  2944. #ifndef TOLUA_RELEASE
  2945. tolua_Error tolua_err;
  2946. if (
  2947. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  2948. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2949. )
  2950. goto tolua_lerror;
  2951. else
  2952. #endif
  2953. {
  2954. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  2955. #ifndef TOLUA_RELEASE
  2956. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsCursorMovable'", NULL);
  2957. #endif
  2958. {
  2959. bool tolua_ret = (bool) self->IsCursorMovable();
  2960. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  2961. }
  2962. }
  2963. return 1;
  2964. #ifndef TOLUA_RELEASE
  2965. tolua_lerror:
  2966. tolua_error(tolua_S,"#ferror in function 'IsCursorMovable'.",&tolua_err);
  2967. return 0;
  2968. #endif
  2969. }
  2970. #endif //#ifndef TOLUA_DISABLE
  2971. /* method: IsTextSelectable of class LineEdit */
  2972. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_IsTextSelectable00
  2973. static int tolua_UI_LineEdit_IsTextSelectable00(lua_State* tolua_S)
  2974. {
  2975. #ifndef TOLUA_RELEASE
  2976. tolua_Error tolua_err;
  2977. if (
  2978. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  2979. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2980. )
  2981. goto tolua_lerror;
  2982. else
  2983. #endif
  2984. {
  2985. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  2986. #ifndef TOLUA_RELEASE
  2987. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsTextSelectable'", NULL);
  2988. #endif
  2989. {
  2990. bool tolua_ret = (bool) self->IsTextSelectable();
  2991. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  2992. }
  2993. }
  2994. return 1;
  2995. #ifndef TOLUA_RELEASE
  2996. tolua_lerror:
  2997. tolua_error(tolua_S,"#ferror in function 'IsTextSelectable'.",&tolua_err);
  2998. return 0;
  2999. #endif
  3000. }
  3001. #endif //#ifndef TOLUA_DISABLE
  3002. /* method: IsTextCopyable of class LineEdit */
  3003. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_IsTextCopyable00
  3004. static int tolua_UI_LineEdit_IsTextCopyable00(lua_State* tolua_S)
  3005. {
  3006. #ifndef TOLUA_RELEASE
  3007. tolua_Error tolua_err;
  3008. if (
  3009. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  3010. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3011. )
  3012. goto tolua_lerror;
  3013. else
  3014. #endif
  3015. {
  3016. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  3017. #ifndef TOLUA_RELEASE
  3018. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsTextCopyable'", NULL);
  3019. #endif
  3020. {
  3021. bool tolua_ret = (bool) self->IsTextCopyable();
  3022. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3023. }
  3024. }
  3025. return 1;
  3026. #ifndef TOLUA_RELEASE
  3027. tolua_lerror:
  3028. tolua_error(tolua_S,"#ferror in function 'IsTextCopyable'.",&tolua_err);
  3029. return 0;
  3030. #endif
  3031. }
  3032. #endif //#ifndef TOLUA_DISABLE
  3033. /* method: GetTextElement of class LineEdit */
  3034. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_GetTextElement00
  3035. static int tolua_UI_LineEdit_GetTextElement00(lua_State* tolua_S)
  3036. {
  3037. #ifndef TOLUA_RELEASE
  3038. tolua_Error tolua_err;
  3039. if (
  3040. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  3041. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3042. )
  3043. goto tolua_lerror;
  3044. else
  3045. #endif
  3046. {
  3047. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  3048. #ifndef TOLUA_RELEASE
  3049. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTextElement'", NULL);
  3050. #endif
  3051. {
  3052. Text* tolua_ret = (Text*) self->GetTextElement();
  3053. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Text");
  3054. }
  3055. }
  3056. return 1;
  3057. #ifndef TOLUA_RELEASE
  3058. tolua_lerror:
  3059. tolua_error(tolua_S,"#ferror in function 'GetTextElement'.",&tolua_err);
  3060. return 0;
  3061. #endif
  3062. }
  3063. #endif //#ifndef TOLUA_DISABLE
  3064. /* method: GetCursor of class LineEdit */
  3065. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_GetCursor00
  3066. static int tolua_UI_LineEdit_GetCursor00(lua_State* tolua_S)
  3067. {
  3068. #ifndef TOLUA_RELEASE
  3069. tolua_Error tolua_err;
  3070. if (
  3071. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  3072. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3073. )
  3074. goto tolua_lerror;
  3075. else
  3076. #endif
  3077. {
  3078. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  3079. #ifndef TOLUA_RELEASE
  3080. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCursor'", NULL);
  3081. #endif
  3082. {
  3083. BorderImage* tolua_ret = (BorderImage*) self->GetCursor();
  3084. tolua_pushusertype(tolua_S,(void*)tolua_ret,"BorderImage");
  3085. }
  3086. }
  3087. return 1;
  3088. #ifndef TOLUA_RELEASE
  3089. tolua_lerror:
  3090. tolua_error(tolua_S,"#ferror in function 'GetCursor'.",&tolua_err);
  3091. return 0;
  3092. #endif
  3093. }
  3094. #endif //#ifndef TOLUA_DISABLE
  3095. /* method: GetDoubleClickInterval of class LineEdit */
  3096. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_GetDoubleClickInterval00
  3097. static int tolua_UI_LineEdit_GetDoubleClickInterval00(lua_State* tolua_S)
  3098. {
  3099. #ifndef TOLUA_RELEASE
  3100. tolua_Error tolua_err;
  3101. if (
  3102. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  3103. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3104. )
  3105. goto tolua_lerror;
  3106. else
  3107. #endif
  3108. {
  3109. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  3110. #ifndef TOLUA_RELEASE
  3111. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDoubleClickInterval'", NULL);
  3112. #endif
  3113. {
  3114. float tolua_ret = (float) self->GetDoubleClickInterval();
  3115. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3116. }
  3117. }
  3118. return 1;
  3119. #ifndef TOLUA_RELEASE
  3120. tolua_lerror:
  3121. tolua_error(tolua_S,"#ferror in function 'GetDoubleClickInterval'.",&tolua_err);
  3122. return 0;
  3123. #endif
  3124. }
  3125. #endif //#ifndef TOLUA_DISABLE
  3126. /* method: AddItem of class ListView */
  3127. #ifndef TOLUA_DISABLE_tolua_UI_ListView_AddItem00
  3128. static int tolua_UI_ListView_AddItem00(lua_State* tolua_S)
  3129. {
  3130. #ifndef TOLUA_RELEASE
  3131. tolua_Error tolua_err;
  3132. if (
  3133. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3134. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  3135. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3136. )
  3137. goto tolua_lerror;
  3138. else
  3139. #endif
  3140. {
  3141. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3142. UIElement* item = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  3143. #ifndef TOLUA_RELEASE
  3144. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddItem'", NULL);
  3145. #endif
  3146. {
  3147. self->AddItem(item);
  3148. }
  3149. }
  3150. return 0;
  3151. #ifndef TOLUA_RELEASE
  3152. tolua_lerror:
  3153. tolua_error(tolua_S,"#ferror in function 'AddItem'.",&tolua_err);
  3154. return 0;
  3155. #endif
  3156. }
  3157. #endif //#ifndef TOLUA_DISABLE
  3158. /* method: InsertItem of class ListView */
  3159. #ifndef TOLUA_DISABLE_tolua_UI_ListView_InsertItem00
  3160. static int tolua_UI_ListView_InsertItem00(lua_State* tolua_S)
  3161. {
  3162. #ifndef TOLUA_RELEASE
  3163. tolua_Error tolua_err;
  3164. if (
  3165. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3166. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3167. !tolua_isusertype(tolua_S,3,"UIElement",0,&tolua_err) ||
  3168. !tolua_isusertype(tolua_S,4,"UIElement",1,&tolua_err) ||
  3169. !tolua_isnoobj(tolua_S,5,&tolua_err)
  3170. )
  3171. goto tolua_lerror;
  3172. else
  3173. #endif
  3174. {
  3175. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3176. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3177. UIElement* item = ((UIElement*) tolua_tousertype(tolua_S,3,0));
  3178. UIElement* parentItem = ((UIElement*) tolua_tousertype(tolua_S,4,0));
  3179. #ifndef TOLUA_RELEASE
  3180. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'InsertItem'", NULL);
  3181. #endif
  3182. {
  3183. self->InsertItem(index,item,parentItem);
  3184. }
  3185. }
  3186. return 0;
  3187. #ifndef TOLUA_RELEASE
  3188. tolua_lerror:
  3189. tolua_error(tolua_S,"#ferror in function 'InsertItem'.",&tolua_err);
  3190. return 0;
  3191. #endif
  3192. }
  3193. #endif //#ifndef TOLUA_DISABLE
  3194. /* method: RemoveItem of class ListView */
  3195. #ifndef TOLUA_DISABLE_tolua_UI_ListView_RemoveItem00
  3196. static int tolua_UI_ListView_RemoveItem00(lua_State* tolua_S)
  3197. {
  3198. #ifndef TOLUA_RELEASE
  3199. tolua_Error tolua_err;
  3200. if (
  3201. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3202. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  3203. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  3204. !tolua_isnoobj(tolua_S,4,&tolua_err)
  3205. )
  3206. goto tolua_lerror;
  3207. else
  3208. #endif
  3209. {
  3210. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3211. UIElement* item = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  3212. unsigned index = ((unsigned) tolua_tonumber(tolua_S,3,0));
  3213. #ifndef TOLUA_RELEASE
  3214. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveItem'", NULL);
  3215. #endif
  3216. {
  3217. self->RemoveItem(item,index);
  3218. }
  3219. }
  3220. return 0;
  3221. #ifndef TOLUA_RELEASE
  3222. tolua_lerror:
  3223. tolua_error(tolua_S,"#ferror in function 'RemoveItem'.",&tolua_err);
  3224. return 0;
  3225. #endif
  3226. }
  3227. #endif //#ifndef TOLUA_DISABLE
  3228. /* method: RemoveItem of class ListView */
  3229. #ifndef TOLUA_DISABLE_tolua_UI_ListView_RemoveItem01
  3230. static int tolua_UI_ListView_RemoveItem01(lua_State* tolua_S)
  3231. {
  3232. tolua_Error tolua_err;
  3233. if (
  3234. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3235. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3236. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3237. )
  3238. goto tolua_lerror;
  3239. else
  3240. {
  3241. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3242. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3243. #ifndef TOLUA_RELEASE
  3244. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveItem'", NULL);
  3245. #endif
  3246. {
  3247. self->RemoveItem(index);
  3248. }
  3249. }
  3250. return 0;
  3251. tolua_lerror:
  3252. return tolua_UI_ListView_RemoveItem00(tolua_S);
  3253. }
  3254. #endif //#ifndef TOLUA_DISABLE
  3255. /* method: RemoveAllItems of class ListView */
  3256. #ifndef TOLUA_DISABLE_tolua_UI_ListView_RemoveAllItems00
  3257. static int tolua_UI_ListView_RemoveAllItems00(lua_State* tolua_S)
  3258. {
  3259. #ifndef TOLUA_RELEASE
  3260. tolua_Error tolua_err;
  3261. if (
  3262. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3263. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3264. )
  3265. goto tolua_lerror;
  3266. else
  3267. #endif
  3268. {
  3269. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3270. #ifndef TOLUA_RELEASE
  3271. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAllItems'", NULL);
  3272. #endif
  3273. {
  3274. self->RemoveAllItems();
  3275. }
  3276. }
  3277. return 0;
  3278. #ifndef TOLUA_RELEASE
  3279. tolua_lerror:
  3280. tolua_error(tolua_S,"#ferror in function 'RemoveAllItems'.",&tolua_err);
  3281. return 0;
  3282. #endif
  3283. }
  3284. #endif //#ifndef TOLUA_DISABLE
  3285. /* method: SetSelection of class ListView */
  3286. #ifndef TOLUA_DISABLE_tolua_UI_ListView_SetSelection00
  3287. static int tolua_UI_ListView_SetSelection00(lua_State* tolua_S)
  3288. {
  3289. #ifndef TOLUA_RELEASE
  3290. tolua_Error tolua_err;
  3291. if (
  3292. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3293. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3294. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3295. )
  3296. goto tolua_lerror;
  3297. else
  3298. #endif
  3299. {
  3300. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3301. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3302. #ifndef TOLUA_RELEASE
  3303. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSelection'", NULL);
  3304. #endif
  3305. {
  3306. self->SetSelection(index);
  3307. }
  3308. }
  3309. return 0;
  3310. #ifndef TOLUA_RELEASE
  3311. tolua_lerror:
  3312. tolua_error(tolua_S,"#ferror in function 'SetSelection'.",&tolua_err);
  3313. return 0;
  3314. #endif
  3315. }
  3316. #endif //#ifndef TOLUA_DISABLE
  3317. /* method: AddSelection of class ListView */
  3318. #ifndef TOLUA_DISABLE_tolua_UI_ListView_AddSelection00
  3319. static int tolua_UI_ListView_AddSelection00(lua_State* tolua_S)
  3320. {
  3321. #ifndef TOLUA_RELEASE
  3322. tolua_Error tolua_err;
  3323. if (
  3324. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3325. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3326. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3327. )
  3328. goto tolua_lerror;
  3329. else
  3330. #endif
  3331. {
  3332. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3333. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3334. #ifndef TOLUA_RELEASE
  3335. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddSelection'", NULL);
  3336. #endif
  3337. {
  3338. self->AddSelection(index);
  3339. }
  3340. }
  3341. return 0;
  3342. #ifndef TOLUA_RELEASE
  3343. tolua_lerror:
  3344. tolua_error(tolua_S,"#ferror in function 'AddSelection'.",&tolua_err);
  3345. return 0;
  3346. #endif
  3347. }
  3348. #endif //#ifndef TOLUA_DISABLE
  3349. /* method: RemoveSelection of class ListView */
  3350. #ifndef TOLUA_DISABLE_tolua_UI_ListView_RemoveSelection00
  3351. static int tolua_UI_ListView_RemoveSelection00(lua_State* tolua_S)
  3352. {
  3353. #ifndef TOLUA_RELEASE
  3354. tolua_Error tolua_err;
  3355. if (
  3356. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3357. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3358. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3359. )
  3360. goto tolua_lerror;
  3361. else
  3362. #endif
  3363. {
  3364. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3365. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3366. #ifndef TOLUA_RELEASE
  3367. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveSelection'", NULL);
  3368. #endif
  3369. {
  3370. self->RemoveSelection(index);
  3371. }
  3372. }
  3373. return 0;
  3374. #ifndef TOLUA_RELEASE
  3375. tolua_lerror:
  3376. tolua_error(tolua_S,"#ferror in function 'RemoveSelection'.",&tolua_err);
  3377. return 0;
  3378. #endif
  3379. }
  3380. #endif //#ifndef TOLUA_DISABLE
  3381. /* method: ToggleSelection of class ListView */
  3382. #ifndef TOLUA_DISABLE_tolua_UI_ListView_ToggleSelection00
  3383. static int tolua_UI_ListView_ToggleSelection00(lua_State* tolua_S)
  3384. {
  3385. #ifndef TOLUA_RELEASE
  3386. tolua_Error tolua_err;
  3387. if (
  3388. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3389. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3390. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3391. )
  3392. goto tolua_lerror;
  3393. else
  3394. #endif
  3395. {
  3396. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3397. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3398. #ifndef TOLUA_RELEASE
  3399. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ToggleSelection'", NULL);
  3400. #endif
  3401. {
  3402. self->ToggleSelection(index);
  3403. }
  3404. }
  3405. return 0;
  3406. #ifndef TOLUA_RELEASE
  3407. tolua_lerror:
  3408. tolua_error(tolua_S,"#ferror in function 'ToggleSelection'.",&tolua_err);
  3409. return 0;
  3410. #endif
  3411. }
  3412. #endif //#ifndef TOLUA_DISABLE
  3413. /* method: ChangeSelection of class ListView */
  3414. #ifndef TOLUA_DISABLE_tolua_UI_ListView_ChangeSelection00
  3415. static int tolua_UI_ListView_ChangeSelection00(lua_State* tolua_S)
  3416. {
  3417. #ifndef TOLUA_RELEASE
  3418. tolua_Error tolua_err;
  3419. if (
  3420. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3421. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3422. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  3423. !tolua_isnoobj(tolua_S,4,&tolua_err)
  3424. )
  3425. goto tolua_lerror;
  3426. else
  3427. #endif
  3428. {
  3429. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3430. int delta = ((int) tolua_tonumber(tolua_S,2,0));
  3431. bool additive = ((bool) tolua_toboolean(tolua_S,3,false));
  3432. #ifndef TOLUA_RELEASE
  3433. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ChangeSelection'", NULL);
  3434. #endif
  3435. {
  3436. self->ChangeSelection(delta,additive);
  3437. }
  3438. }
  3439. return 0;
  3440. #ifndef TOLUA_RELEASE
  3441. tolua_lerror:
  3442. tolua_error(tolua_S,"#ferror in function 'ChangeSelection'.",&tolua_err);
  3443. return 0;
  3444. #endif
  3445. }
  3446. #endif //#ifndef TOLUA_DISABLE
  3447. /* method: ClearSelection of class ListView */
  3448. #ifndef TOLUA_DISABLE_tolua_UI_ListView_ClearSelection00
  3449. static int tolua_UI_ListView_ClearSelection00(lua_State* tolua_S)
  3450. {
  3451. #ifndef TOLUA_RELEASE
  3452. tolua_Error tolua_err;
  3453. if (
  3454. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3455. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3456. )
  3457. goto tolua_lerror;
  3458. else
  3459. #endif
  3460. {
  3461. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3462. #ifndef TOLUA_RELEASE
  3463. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ClearSelection'", NULL);
  3464. #endif
  3465. {
  3466. self->ClearSelection();
  3467. }
  3468. }
  3469. return 0;
  3470. #ifndef TOLUA_RELEASE
  3471. tolua_lerror:
  3472. tolua_error(tolua_S,"#ferror in function 'ClearSelection'.",&tolua_err);
  3473. return 0;
  3474. #endif
  3475. }
  3476. #endif //#ifndef TOLUA_DISABLE
  3477. /* method: SetHighlightMode of class ListView */
  3478. #ifndef TOLUA_DISABLE_tolua_UI_ListView_SetHighlightMode00
  3479. static int tolua_UI_ListView_SetHighlightMode00(lua_State* tolua_S)
  3480. {
  3481. #ifndef TOLUA_RELEASE
  3482. tolua_Error tolua_err;
  3483. if (
  3484. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3485. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3486. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3487. )
  3488. goto tolua_lerror;
  3489. else
  3490. #endif
  3491. {
  3492. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3493. HighlightMode mode = ((HighlightMode) (int) tolua_tonumber(tolua_S,2,0));
  3494. #ifndef TOLUA_RELEASE
  3495. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHighlightMode'", NULL);
  3496. #endif
  3497. {
  3498. self->SetHighlightMode(mode);
  3499. }
  3500. }
  3501. return 0;
  3502. #ifndef TOLUA_RELEASE
  3503. tolua_lerror:
  3504. tolua_error(tolua_S,"#ferror in function 'SetHighlightMode'.",&tolua_err);
  3505. return 0;
  3506. #endif
  3507. }
  3508. #endif //#ifndef TOLUA_DISABLE
  3509. /* method: SetMultiselect of class ListView */
  3510. #ifndef TOLUA_DISABLE_tolua_UI_ListView_SetMultiselect00
  3511. static int tolua_UI_ListView_SetMultiselect00(lua_State* tolua_S)
  3512. {
  3513. #ifndef TOLUA_RELEASE
  3514. tolua_Error tolua_err;
  3515. if (
  3516. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3517. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  3518. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3519. )
  3520. goto tolua_lerror;
  3521. else
  3522. #endif
  3523. {
  3524. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3525. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  3526. #ifndef TOLUA_RELEASE
  3527. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMultiselect'", NULL);
  3528. #endif
  3529. {
  3530. self->SetMultiselect(enable);
  3531. }
  3532. }
  3533. return 0;
  3534. #ifndef TOLUA_RELEASE
  3535. tolua_lerror:
  3536. tolua_error(tolua_S,"#ferror in function 'SetMultiselect'.",&tolua_err);
  3537. return 0;
  3538. #endif
  3539. }
  3540. #endif //#ifndef TOLUA_DISABLE
  3541. /* method: SetHierarchyMode of class ListView */
  3542. #ifndef TOLUA_DISABLE_tolua_UI_ListView_SetHierarchyMode00
  3543. static int tolua_UI_ListView_SetHierarchyMode00(lua_State* tolua_S)
  3544. {
  3545. #ifndef TOLUA_RELEASE
  3546. tolua_Error tolua_err;
  3547. if (
  3548. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3549. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  3550. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3551. )
  3552. goto tolua_lerror;
  3553. else
  3554. #endif
  3555. {
  3556. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3557. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  3558. #ifndef TOLUA_RELEASE
  3559. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHierarchyMode'", NULL);
  3560. #endif
  3561. {
  3562. self->SetHierarchyMode(enable);
  3563. }
  3564. }
  3565. return 0;
  3566. #ifndef TOLUA_RELEASE
  3567. tolua_lerror:
  3568. tolua_error(tolua_S,"#ferror in function 'SetHierarchyMode'.",&tolua_err);
  3569. return 0;
  3570. #endif
  3571. }
  3572. #endif //#ifndef TOLUA_DISABLE
  3573. /* method: SetBaseIndent of class ListView */
  3574. #ifndef TOLUA_DISABLE_tolua_UI_ListView_SetBaseIndent00
  3575. static int tolua_UI_ListView_SetBaseIndent00(lua_State* tolua_S)
  3576. {
  3577. #ifndef TOLUA_RELEASE
  3578. tolua_Error tolua_err;
  3579. if (
  3580. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3581. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3582. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3583. )
  3584. goto tolua_lerror;
  3585. else
  3586. #endif
  3587. {
  3588. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3589. int baseIndent = ((int) tolua_tonumber(tolua_S,2,0));
  3590. #ifndef TOLUA_RELEASE
  3591. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBaseIndent'", NULL);
  3592. #endif
  3593. {
  3594. self->SetBaseIndent(baseIndent);
  3595. }
  3596. }
  3597. return 0;
  3598. #ifndef TOLUA_RELEASE
  3599. tolua_lerror:
  3600. tolua_error(tolua_S,"#ferror in function 'SetBaseIndent'.",&tolua_err);
  3601. return 0;
  3602. #endif
  3603. }
  3604. #endif //#ifndef TOLUA_DISABLE
  3605. /* method: SetClearSelectionOnDefocus of class ListView */
  3606. #ifndef TOLUA_DISABLE_tolua_UI_ListView_SetClearSelectionOnDefocus00
  3607. static int tolua_UI_ListView_SetClearSelectionOnDefocus00(lua_State* tolua_S)
  3608. {
  3609. #ifndef TOLUA_RELEASE
  3610. tolua_Error tolua_err;
  3611. if (
  3612. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3613. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  3614. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3615. )
  3616. goto tolua_lerror;
  3617. else
  3618. #endif
  3619. {
  3620. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3621. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  3622. #ifndef TOLUA_RELEASE
  3623. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetClearSelectionOnDefocus'", NULL);
  3624. #endif
  3625. {
  3626. self->SetClearSelectionOnDefocus(enable);
  3627. }
  3628. }
  3629. return 0;
  3630. #ifndef TOLUA_RELEASE
  3631. tolua_lerror:
  3632. tolua_error(tolua_S,"#ferror in function 'SetClearSelectionOnDefocus'.",&tolua_err);
  3633. return 0;
  3634. #endif
  3635. }
  3636. #endif //#ifndef TOLUA_DISABLE
  3637. /* method: SetDoubleClickInterval of class ListView */
  3638. #ifndef TOLUA_DISABLE_tolua_UI_ListView_SetDoubleClickInterval00
  3639. static int tolua_UI_ListView_SetDoubleClickInterval00(lua_State* tolua_S)
  3640. {
  3641. #ifndef TOLUA_RELEASE
  3642. tolua_Error tolua_err;
  3643. if (
  3644. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3645. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3646. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3647. )
  3648. goto tolua_lerror;
  3649. else
  3650. #endif
  3651. {
  3652. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3653. float interval = ((float) tolua_tonumber(tolua_S,2,0));
  3654. #ifndef TOLUA_RELEASE
  3655. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDoubleClickInterval'", NULL);
  3656. #endif
  3657. {
  3658. self->SetDoubleClickInterval(interval);
  3659. }
  3660. }
  3661. return 0;
  3662. #ifndef TOLUA_RELEASE
  3663. tolua_lerror:
  3664. tolua_error(tolua_S,"#ferror in function 'SetDoubleClickInterval'.",&tolua_err);
  3665. return 0;
  3666. #endif
  3667. }
  3668. #endif //#ifndef TOLUA_DISABLE
  3669. /* method: Expand of class ListView */
  3670. #ifndef TOLUA_DISABLE_tolua_UI_ListView_Expand00
  3671. static int tolua_UI_ListView_Expand00(lua_State* tolua_S)
  3672. {
  3673. #ifndef TOLUA_RELEASE
  3674. tolua_Error tolua_err;
  3675. if (
  3676. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3677. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3678. !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
  3679. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  3680. !tolua_isnoobj(tolua_S,5,&tolua_err)
  3681. )
  3682. goto tolua_lerror;
  3683. else
  3684. #endif
  3685. {
  3686. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3687. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3688. bool enable = ((bool) tolua_toboolean(tolua_S,3,0));
  3689. bool recursive = ((bool) tolua_toboolean(tolua_S,4,false));
  3690. #ifndef TOLUA_RELEASE
  3691. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Expand'", NULL);
  3692. #endif
  3693. {
  3694. self->Expand(index,enable,recursive);
  3695. }
  3696. }
  3697. return 0;
  3698. #ifndef TOLUA_RELEASE
  3699. tolua_lerror:
  3700. tolua_error(tolua_S,"#ferror in function 'Expand'.",&tolua_err);
  3701. return 0;
  3702. #endif
  3703. }
  3704. #endif //#ifndef TOLUA_DISABLE
  3705. /* method: ToggleExpand of class ListView */
  3706. #ifndef TOLUA_DISABLE_tolua_UI_ListView_ToggleExpand00
  3707. static int tolua_UI_ListView_ToggleExpand00(lua_State* tolua_S)
  3708. {
  3709. #ifndef TOLUA_RELEASE
  3710. tolua_Error tolua_err;
  3711. if (
  3712. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3713. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3714. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  3715. !tolua_isnoobj(tolua_S,4,&tolua_err)
  3716. )
  3717. goto tolua_lerror;
  3718. else
  3719. #endif
  3720. {
  3721. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3722. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3723. bool recursive = ((bool) tolua_toboolean(tolua_S,3,false));
  3724. #ifndef TOLUA_RELEASE
  3725. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ToggleExpand'", NULL);
  3726. #endif
  3727. {
  3728. self->ToggleExpand(index,recursive);
  3729. }
  3730. }
  3731. return 0;
  3732. #ifndef TOLUA_RELEASE
  3733. tolua_lerror:
  3734. tolua_error(tolua_S,"#ferror in function 'ToggleExpand'.",&tolua_err);
  3735. return 0;
  3736. #endif
  3737. }
  3738. #endif //#ifndef TOLUA_DISABLE
  3739. /* method: GetNumItems of class ListView */
  3740. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetNumItems00
  3741. static int tolua_UI_ListView_GetNumItems00(lua_State* tolua_S)
  3742. {
  3743. #ifndef TOLUA_RELEASE
  3744. tolua_Error tolua_err;
  3745. if (
  3746. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  3747. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3748. )
  3749. goto tolua_lerror;
  3750. else
  3751. #endif
  3752. {
  3753. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  3754. #ifndef TOLUA_RELEASE
  3755. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumItems'", NULL);
  3756. #endif
  3757. {
  3758. unsigned tolua_ret = (unsigned) self->GetNumItems();
  3759. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3760. }
  3761. }
  3762. return 1;
  3763. #ifndef TOLUA_RELEASE
  3764. tolua_lerror:
  3765. tolua_error(tolua_S,"#ferror in function 'GetNumItems'.",&tolua_err);
  3766. return 0;
  3767. #endif
  3768. }
  3769. #endif //#ifndef TOLUA_DISABLE
  3770. /* method: GetItem of class ListView */
  3771. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetItem00
  3772. static int tolua_UI_ListView_GetItem00(lua_State* tolua_S)
  3773. {
  3774. #ifndef TOLUA_RELEASE
  3775. tolua_Error tolua_err;
  3776. if (
  3777. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  3778. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3779. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3780. )
  3781. goto tolua_lerror;
  3782. else
  3783. #endif
  3784. {
  3785. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  3786. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3787. #ifndef TOLUA_RELEASE
  3788. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetItem'", NULL);
  3789. #endif
  3790. {
  3791. UIElement* tolua_ret = (UIElement*) self->GetItem(index);
  3792. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  3793. }
  3794. }
  3795. return 1;
  3796. #ifndef TOLUA_RELEASE
  3797. tolua_lerror:
  3798. tolua_error(tolua_S,"#ferror in function 'GetItem'.",&tolua_err);
  3799. return 0;
  3800. #endif
  3801. }
  3802. #endif //#ifndef TOLUA_DISABLE
  3803. /* method: FindItem of class ListView */
  3804. #ifndef TOLUA_DISABLE_tolua_UI_ListView_FindItem00
  3805. static int tolua_UI_ListView_FindItem00(lua_State* tolua_S)
  3806. {
  3807. #ifndef TOLUA_RELEASE
  3808. tolua_Error tolua_err;
  3809. if (
  3810. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  3811. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  3812. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3813. )
  3814. goto tolua_lerror;
  3815. else
  3816. #endif
  3817. {
  3818. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  3819. UIElement* item = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  3820. #ifndef TOLUA_RELEASE
  3821. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'FindItem'", NULL);
  3822. #endif
  3823. {
  3824. unsigned tolua_ret = (unsigned) self->FindItem(item);
  3825. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3826. }
  3827. }
  3828. return 1;
  3829. #ifndef TOLUA_RELEASE
  3830. tolua_lerror:
  3831. tolua_error(tolua_S,"#ferror in function 'FindItem'.",&tolua_err);
  3832. return 0;
  3833. #endif
  3834. }
  3835. #endif //#ifndef TOLUA_DISABLE
  3836. /* method: GetSelection of class ListView */
  3837. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetSelection00
  3838. static int tolua_UI_ListView_GetSelection00(lua_State* tolua_S)
  3839. {
  3840. #ifndef TOLUA_RELEASE
  3841. tolua_Error tolua_err;
  3842. if (
  3843. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  3844. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3845. )
  3846. goto tolua_lerror;
  3847. else
  3848. #endif
  3849. {
  3850. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  3851. #ifndef TOLUA_RELEASE
  3852. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSelection'", NULL);
  3853. #endif
  3854. {
  3855. unsigned tolua_ret = (unsigned) self->GetSelection();
  3856. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3857. }
  3858. }
  3859. return 1;
  3860. #ifndef TOLUA_RELEASE
  3861. tolua_lerror:
  3862. tolua_error(tolua_S,"#ferror in function 'GetSelection'.",&tolua_err);
  3863. return 0;
  3864. #endif
  3865. }
  3866. #endif //#ifndef TOLUA_DISABLE
  3867. /* method: GetSelectedItem of class ListView */
  3868. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetSelectedItem00
  3869. static int tolua_UI_ListView_GetSelectedItem00(lua_State* tolua_S)
  3870. {
  3871. #ifndef TOLUA_RELEASE
  3872. tolua_Error tolua_err;
  3873. if (
  3874. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  3875. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3876. )
  3877. goto tolua_lerror;
  3878. else
  3879. #endif
  3880. {
  3881. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  3882. #ifndef TOLUA_RELEASE
  3883. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSelectedItem'", NULL);
  3884. #endif
  3885. {
  3886. UIElement* tolua_ret = (UIElement*) self->GetSelectedItem();
  3887. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  3888. }
  3889. }
  3890. return 1;
  3891. #ifndef TOLUA_RELEASE
  3892. tolua_lerror:
  3893. tolua_error(tolua_S,"#ferror in function 'GetSelectedItem'.",&tolua_err);
  3894. return 0;
  3895. #endif
  3896. }
  3897. #endif //#ifndef TOLUA_DISABLE
  3898. /* method: IsSelected of class ListView */
  3899. #ifndef TOLUA_DISABLE_tolua_UI_ListView_IsSelected00
  3900. static int tolua_UI_ListView_IsSelected00(lua_State* tolua_S)
  3901. {
  3902. #ifndef TOLUA_RELEASE
  3903. tolua_Error tolua_err;
  3904. if (
  3905. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  3906. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3907. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3908. )
  3909. goto tolua_lerror;
  3910. else
  3911. #endif
  3912. {
  3913. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  3914. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3915. #ifndef TOLUA_RELEASE
  3916. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsSelected'", NULL);
  3917. #endif
  3918. {
  3919. bool tolua_ret = (bool) self->IsSelected(index);
  3920. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3921. }
  3922. }
  3923. return 1;
  3924. #ifndef TOLUA_RELEASE
  3925. tolua_lerror:
  3926. tolua_error(tolua_S,"#ferror in function 'IsSelected'.",&tolua_err);
  3927. return 0;
  3928. #endif
  3929. }
  3930. #endif //#ifndef TOLUA_DISABLE
  3931. /* method: IsExpanded of class ListView */
  3932. #ifndef TOLUA_DISABLE_tolua_UI_ListView_IsExpanded00
  3933. static int tolua_UI_ListView_IsExpanded00(lua_State* tolua_S)
  3934. {
  3935. #ifndef TOLUA_RELEASE
  3936. tolua_Error tolua_err;
  3937. if (
  3938. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  3939. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3940. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3941. )
  3942. goto tolua_lerror;
  3943. else
  3944. #endif
  3945. {
  3946. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  3947. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3948. #ifndef TOLUA_RELEASE
  3949. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsExpanded'", NULL);
  3950. #endif
  3951. {
  3952. bool tolua_ret = (bool) self->IsExpanded(index);
  3953. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3954. }
  3955. }
  3956. return 1;
  3957. #ifndef TOLUA_RELEASE
  3958. tolua_lerror:
  3959. tolua_error(tolua_S,"#ferror in function 'IsExpanded'.",&tolua_err);
  3960. return 0;
  3961. #endif
  3962. }
  3963. #endif //#ifndef TOLUA_DISABLE
  3964. /* method: GetHighlightMode of class ListView */
  3965. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetHighlightMode00
  3966. static int tolua_UI_ListView_GetHighlightMode00(lua_State* tolua_S)
  3967. {
  3968. #ifndef TOLUA_RELEASE
  3969. tolua_Error tolua_err;
  3970. if (
  3971. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  3972. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3973. )
  3974. goto tolua_lerror;
  3975. else
  3976. #endif
  3977. {
  3978. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  3979. #ifndef TOLUA_RELEASE
  3980. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHighlightMode'", NULL);
  3981. #endif
  3982. {
  3983. HighlightMode tolua_ret = (HighlightMode) self->GetHighlightMode();
  3984. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3985. }
  3986. }
  3987. return 1;
  3988. #ifndef TOLUA_RELEASE
  3989. tolua_lerror:
  3990. tolua_error(tolua_S,"#ferror in function 'GetHighlightMode'.",&tolua_err);
  3991. return 0;
  3992. #endif
  3993. }
  3994. #endif //#ifndef TOLUA_DISABLE
  3995. /* method: GetMultiselect of class ListView */
  3996. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetMultiselect00
  3997. static int tolua_UI_ListView_GetMultiselect00(lua_State* tolua_S)
  3998. {
  3999. #ifndef TOLUA_RELEASE
  4000. tolua_Error tolua_err;
  4001. if (
  4002. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  4003. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4004. )
  4005. goto tolua_lerror;
  4006. else
  4007. #endif
  4008. {
  4009. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  4010. #ifndef TOLUA_RELEASE
  4011. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMultiselect'", NULL);
  4012. #endif
  4013. {
  4014. bool tolua_ret = (bool) self->GetMultiselect();
  4015. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4016. }
  4017. }
  4018. return 1;
  4019. #ifndef TOLUA_RELEASE
  4020. tolua_lerror:
  4021. tolua_error(tolua_S,"#ferror in function 'GetMultiselect'.",&tolua_err);
  4022. return 0;
  4023. #endif
  4024. }
  4025. #endif //#ifndef TOLUA_DISABLE
  4026. /* method: GetClearSelectionOnDefocus of class ListView */
  4027. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetClearSelectionOnDefocus00
  4028. static int tolua_UI_ListView_GetClearSelectionOnDefocus00(lua_State* tolua_S)
  4029. {
  4030. #ifndef TOLUA_RELEASE
  4031. tolua_Error tolua_err;
  4032. if (
  4033. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  4034. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4035. )
  4036. goto tolua_lerror;
  4037. else
  4038. #endif
  4039. {
  4040. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  4041. #ifndef TOLUA_RELEASE
  4042. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetClearSelectionOnDefocus'", NULL);
  4043. #endif
  4044. {
  4045. bool tolua_ret = (bool) self->GetClearSelectionOnDefocus();
  4046. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4047. }
  4048. }
  4049. return 1;
  4050. #ifndef TOLUA_RELEASE
  4051. tolua_lerror:
  4052. tolua_error(tolua_S,"#ferror in function 'GetClearSelectionOnDefocus'.",&tolua_err);
  4053. return 0;
  4054. #endif
  4055. }
  4056. #endif //#ifndef TOLUA_DISABLE
  4057. /* method: GetHierarchyMode of class ListView */
  4058. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetHierarchyMode00
  4059. static int tolua_UI_ListView_GetHierarchyMode00(lua_State* tolua_S)
  4060. {
  4061. #ifndef TOLUA_RELEASE
  4062. tolua_Error tolua_err;
  4063. if (
  4064. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  4065. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4066. )
  4067. goto tolua_lerror;
  4068. else
  4069. #endif
  4070. {
  4071. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  4072. #ifndef TOLUA_RELEASE
  4073. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHierarchyMode'", NULL);
  4074. #endif
  4075. {
  4076. bool tolua_ret = (bool) self->GetHierarchyMode();
  4077. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4078. }
  4079. }
  4080. return 1;
  4081. #ifndef TOLUA_RELEASE
  4082. tolua_lerror:
  4083. tolua_error(tolua_S,"#ferror in function 'GetHierarchyMode'.",&tolua_err);
  4084. return 0;
  4085. #endif
  4086. }
  4087. #endif //#ifndef TOLUA_DISABLE
  4088. /* method: GetBaseIndent of class ListView */
  4089. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetBaseIndent00
  4090. static int tolua_UI_ListView_GetBaseIndent00(lua_State* tolua_S)
  4091. {
  4092. #ifndef TOLUA_RELEASE
  4093. tolua_Error tolua_err;
  4094. if (
  4095. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  4096. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4097. )
  4098. goto tolua_lerror;
  4099. else
  4100. #endif
  4101. {
  4102. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  4103. #ifndef TOLUA_RELEASE
  4104. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBaseIndent'", NULL);
  4105. #endif
  4106. {
  4107. int tolua_ret = (int) self->GetBaseIndent();
  4108. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4109. }
  4110. }
  4111. return 1;
  4112. #ifndef TOLUA_RELEASE
  4113. tolua_lerror:
  4114. tolua_error(tolua_S,"#ferror in function 'GetBaseIndent'.",&tolua_err);
  4115. return 0;
  4116. #endif
  4117. }
  4118. #endif //#ifndef TOLUA_DISABLE
  4119. /* method: GetDoubleClickInterval of class ListView */
  4120. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetDoubleClickInterval00
  4121. static int tolua_UI_ListView_GetDoubleClickInterval00(lua_State* tolua_S)
  4122. {
  4123. #ifndef TOLUA_RELEASE
  4124. tolua_Error tolua_err;
  4125. if (
  4126. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  4127. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4128. )
  4129. goto tolua_lerror;
  4130. else
  4131. #endif
  4132. {
  4133. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  4134. #ifndef TOLUA_RELEASE
  4135. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDoubleClickInterval'", NULL);
  4136. #endif
  4137. {
  4138. float tolua_ret = (float) self->GetDoubleClickInterval();
  4139. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4140. }
  4141. }
  4142. return 1;
  4143. #ifndef TOLUA_RELEASE
  4144. tolua_lerror:
  4145. tolua_error(tolua_S,"#ferror in function 'GetDoubleClickInterval'.",&tolua_err);
  4146. return 0;
  4147. #endif
  4148. }
  4149. #endif //#ifndef TOLUA_DISABLE
  4150. /* method: SetPopup of class Menu */
  4151. #ifndef TOLUA_DISABLE_tolua_UI_Menu_SetPopup00
  4152. static int tolua_UI_Menu_SetPopup00(lua_State* tolua_S)
  4153. {
  4154. #ifndef TOLUA_RELEASE
  4155. tolua_Error tolua_err;
  4156. if (
  4157. !tolua_isusertype(tolua_S,1,"Menu",0,&tolua_err) ||
  4158. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  4159. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4160. )
  4161. goto tolua_lerror;
  4162. else
  4163. #endif
  4164. {
  4165. Menu* self = (Menu*) tolua_tousertype(tolua_S,1,0);
  4166. UIElement* element = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  4167. #ifndef TOLUA_RELEASE
  4168. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPopup'", NULL);
  4169. #endif
  4170. {
  4171. self->SetPopup(element);
  4172. }
  4173. }
  4174. return 0;
  4175. #ifndef TOLUA_RELEASE
  4176. tolua_lerror:
  4177. tolua_error(tolua_S,"#ferror in function 'SetPopup'.",&tolua_err);
  4178. return 0;
  4179. #endif
  4180. }
  4181. #endif //#ifndef TOLUA_DISABLE
  4182. /* method: SetPopupOffset of class Menu */
  4183. #ifndef TOLUA_DISABLE_tolua_UI_Menu_SetPopupOffset00
  4184. static int tolua_UI_Menu_SetPopupOffset00(lua_State* tolua_S)
  4185. {
  4186. #ifndef TOLUA_RELEASE
  4187. tolua_Error tolua_err;
  4188. if (
  4189. !tolua_isusertype(tolua_S,1,"Menu",0,&tolua_err) ||
  4190. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  4191. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4192. )
  4193. goto tolua_lerror;
  4194. else
  4195. #endif
  4196. {
  4197. Menu* self = (Menu*) tolua_tousertype(tolua_S,1,0);
  4198. const IntVector2* offset = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  4199. #ifndef TOLUA_RELEASE
  4200. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPopupOffset'", NULL);
  4201. #endif
  4202. {
  4203. self->SetPopupOffset(*offset);
  4204. }
  4205. }
  4206. return 0;
  4207. #ifndef TOLUA_RELEASE
  4208. tolua_lerror:
  4209. tolua_error(tolua_S,"#ferror in function 'SetPopupOffset'.",&tolua_err);
  4210. return 0;
  4211. #endif
  4212. }
  4213. #endif //#ifndef TOLUA_DISABLE
  4214. /* method: SetPopupOffset of class Menu */
  4215. #ifndef TOLUA_DISABLE_tolua_UI_Menu_SetPopupOffset01
  4216. static int tolua_UI_Menu_SetPopupOffset01(lua_State* tolua_S)
  4217. {
  4218. tolua_Error tolua_err;
  4219. if (
  4220. !tolua_isusertype(tolua_S,1,"Menu",0,&tolua_err) ||
  4221. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4222. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  4223. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4224. )
  4225. goto tolua_lerror;
  4226. else
  4227. {
  4228. Menu* self = (Menu*) tolua_tousertype(tolua_S,1,0);
  4229. int x = ((int) tolua_tonumber(tolua_S,2,0));
  4230. int y = ((int) tolua_tonumber(tolua_S,3,0));
  4231. #ifndef TOLUA_RELEASE
  4232. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPopupOffset'", NULL);
  4233. #endif
  4234. {
  4235. self->SetPopupOffset(x,y);
  4236. }
  4237. }
  4238. return 0;
  4239. tolua_lerror:
  4240. return tolua_UI_Menu_SetPopupOffset00(tolua_S);
  4241. }
  4242. #endif //#ifndef TOLUA_DISABLE
  4243. /* method: ShowPopup of class Menu */
  4244. #ifndef TOLUA_DISABLE_tolua_UI_Menu_ShowPopup00
  4245. static int tolua_UI_Menu_ShowPopup00(lua_State* tolua_S)
  4246. {
  4247. #ifndef TOLUA_RELEASE
  4248. tolua_Error tolua_err;
  4249. if (
  4250. !tolua_isusertype(tolua_S,1,"Menu",0,&tolua_err) ||
  4251. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  4252. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4253. )
  4254. goto tolua_lerror;
  4255. else
  4256. #endif
  4257. {
  4258. Menu* self = (Menu*) tolua_tousertype(tolua_S,1,0);
  4259. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  4260. #ifndef TOLUA_RELEASE
  4261. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ShowPopup'", NULL);
  4262. #endif
  4263. {
  4264. self->ShowPopup(enable);
  4265. }
  4266. }
  4267. return 0;
  4268. #ifndef TOLUA_RELEASE
  4269. tolua_lerror:
  4270. tolua_error(tolua_S,"#ferror in function 'ShowPopup'.",&tolua_err);
  4271. return 0;
  4272. #endif
  4273. }
  4274. #endif //#ifndef TOLUA_DISABLE
  4275. /* method: SetAccelerator of class Menu */
  4276. #ifndef TOLUA_DISABLE_tolua_UI_Menu_SetAccelerator00
  4277. static int tolua_UI_Menu_SetAccelerator00(lua_State* tolua_S)
  4278. {
  4279. #ifndef TOLUA_RELEASE
  4280. tolua_Error tolua_err;
  4281. if (
  4282. !tolua_isusertype(tolua_S,1,"Menu",0,&tolua_err) ||
  4283. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4284. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  4285. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4286. )
  4287. goto tolua_lerror;
  4288. else
  4289. #endif
  4290. {
  4291. Menu* self = (Menu*) tolua_tousertype(tolua_S,1,0);
  4292. int key = ((int) tolua_tonumber(tolua_S,2,0));
  4293. int qualifiers = ((int) tolua_tonumber(tolua_S,3,0));
  4294. #ifndef TOLUA_RELEASE
  4295. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAccelerator'", NULL);
  4296. #endif
  4297. {
  4298. self->SetAccelerator(key,qualifiers);
  4299. }
  4300. }
  4301. return 0;
  4302. #ifndef TOLUA_RELEASE
  4303. tolua_lerror:
  4304. tolua_error(tolua_S,"#ferror in function 'SetAccelerator'.",&tolua_err);
  4305. return 0;
  4306. #endif
  4307. }
  4308. #endif //#ifndef TOLUA_DISABLE
  4309. /* method: GetPopup of class Menu */
  4310. #ifndef TOLUA_DISABLE_tolua_UI_Menu_GetPopup00
  4311. static int tolua_UI_Menu_GetPopup00(lua_State* tolua_S)
  4312. {
  4313. #ifndef TOLUA_RELEASE
  4314. tolua_Error tolua_err;
  4315. if (
  4316. !tolua_isusertype(tolua_S,1,"const Menu",0,&tolua_err) ||
  4317. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4318. )
  4319. goto tolua_lerror;
  4320. else
  4321. #endif
  4322. {
  4323. const Menu* self = (const Menu*) tolua_tousertype(tolua_S,1,0);
  4324. #ifndef TOLUA_RELEASE
  4325. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPopup'", NULL);
  4326. #endif
  4327. {
  4328. UIElement* tolua_ret = (UIElement*) self->GetPopup();
  4329. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  4330. }
  4331. }
  4332. return 1;
  4333. #ifndef TOLUA_RELEASE
  4334. tolua_lerror:
  4335. tolua_error(tolua_S,"#ferror in function 'GetPopup'.",&tolua_err);
  4336. return 0;
  4337. #endif
  4338. }
  4339. #endif //#ifndef TOLUA_DISABLE
  4340. /* method: GetPopupOffset of class Menu */
  4341. #ifndef TOLUA_DISABLE_tolua_UI_Menu_GetPopupOffset00
  4342. static int tolua_UI_Menu_GetPopupOffset00(lua_State* tolua_S)
  4343. {
  4344. #ifndef TOLUA_RELEASE
  4345. tolua_Error tolua_err;
  4346. if (
  4347. !tolua_isusertype(tolua_S,1,"const Menu",0,&tolua_err) ||
  4348. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4349. )
  4350. goto tolua_lerror;
  4351. else
  4352. #endif
  4353. {
  4354. const Menu* self = (const Menu*) tolua_tousertype(tolua_S,1,0);
  4355. #ifndef TOLUA_RELEASE
  4356. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPopupOffset'", NULL);
  4357. #endif
  4358. {
  4359. const IntVector2& tolua_ret = (const IntVector2&) self->GetPopupOffset();
  4360. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  4361. }
  4362. }
  4363. return 1;
  4364. #ifndef TOLUA_RELEASE
  4365. tolua_lerror:
  4366. tolua_error(tolua_S,"#ferror in function 'GetPopupOffset'.",&tolua_err);
  4367. return 0;
  4368. #endif
  4369. }
  4370. #endif //#ifndef TOLUA_DISABLE
  4371. /* method: GetShowPopup of class Menu */
  4372. #ifndef TOLUA_DISABLE_tolua_UI_Menu_GetShowPopup00
  4373. static int tolua_UI_Menu_GetShowPopup00(lua_State* tolua_S)
  4374. {
  4375. #ifndef TOLUA_RELEASE
  4376. tolua_Error tolua_err;
  4377. if (
  4378. !tolua_isusertype(tolua_S,1,"const Menu",0,&tolua_err) ||
  4379. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4380. )
  4381. goto tolua_lerror;
  4382. else
  4383. #endif
  4384. {
  4385. const Menu* self = (const Menu*) tolua_tousertype(tolua_S,1,0);
  4386. #ifndef TOLUA_RELEASE
  4387. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShowPopup'", NULL);
  4388. #endif
  4389. {
  4390. bool tolua_ret = (bool) self->GetShowPopup();
  4391. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4392. }
  4393. }
  4394. return 1;
  4395. #ifndef TOLUA_RELEASE
  4396. tolua_lerror:
  4397. tolua_error(tolua_S,"#ferror in function 'GetShowPopup'.",&tolua_err);
  4398. return 0;
  4399. #endif
  4400. }
  4401. #endif //#ifndef TOLUA_DISABLE
  4402. /* method: GetAcceleratorKey of class Menu */
  4403. #ifndef TOLUA_DISABLE_tolua_UI_Menu_GetAcceleratorKey00
  4404. static int tolua_UI_Menu_GetAcceleratorKey00(lua_State* tolua_S)
  4405. {
  4406. #ifndef TOLUA_RELEASE
  4407. tolua_Error tolua_err;
  4408. if (
  4409. !tolua_isusertype(tolua_S,1,"const Menu",0,&tolua_err) ||
  4410. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4411. )
  4412. goto tolua_lerror;
  4413. else
  4414. #endif
  4415. {
  4416. const Menu* self = (const Menu*) tolua_tousertype(tolua_S,1,0);
  4417. #ifndef TOLUA_RELEASE
  4418. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAcceleratorKey'", NULL);
  4419. #endif
  4420. {
  4421. int tolua_ret = (int) self->GetAcceleratorKey();
  4422. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4423. }
  4424. }
  4425. return 1;
  4426. #ifndef TOLUA_RELEASE
  4427. tolua_lerror:
  4428. tolua_error(tolua_S,"#ferror in function 'GetAcceleratorKey'.",&tolua_err);
  4429. return 0;
  4430. #endif
  4431. }
  4432. #endif //#ifndef TOLUA_DISABLE
  4433. /* method: GetAcceleratorQualifiers of class Menu */
  4434. #ifndef TOLUA_DISABLE_tolua_UI_Menu_GetAcceleratorQualifiers00
  4435. static int tolua_UI_Menu_GetAcceleratorQualifiers00(lua_State* tolua_S)
  4436. {
  4437. #ifndef TOLUA_RELEASE
  4438. tolua_Error tolua_err;
  4439. if (
  4440. !tolua_isusertype(tolua_S,1,"const Menu",0,&tolua_err) ||
  4441. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4442. )
  4443. goto tolua_lerror;
  4444. else
  4445. #endif
  4446. {
  4447. const Menu* self = (const Menu*) tolua_tousertype(tolua_S,1,0);
  4448. #ifndef TOLUA_RELEASE
  4449. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAcceleratorQualifiers'", NULL);
  4450. #endif
  4451. {
  4452. int tolua_ret = (int) self->GetAcceleratorQualifiers();
  4453. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4454. }
  4455. }
  4456. return 1;
  4457. #ifndef TOLUA_RELEASE
  4458. tolua_lerror:
  4459. tolua_error(tolua_S,"#ferror in function 'GetAcceleratorQualifiers'.",&tolua_err);
  4460. return 0;
  4461. #endif
  4462. }
  4463. #endif //#ifndef TOLUA_DISABLE
  4464. /* method: SetOrientation of class ScrollBar */
  4465. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_SetOrientation00
  4466. static int tolua_UI_ScrollBar_SetOrientation00(lua_State* tolua_S)
  4467. {
  4468. #ifndef TOLUA_RELEASE
  4469. tolua_Error tolua_err;
  4470. if (
  4471. !tolua_isusertype(tolua_S,1,"ScrollBar",0,&tolua_err) ||
  4472. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4473. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4474. )
  4475. goto tolua_lerror;
  4476. else
  4477. #endif
  4478. {
  4479. ScrollBar* self = (ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4480. Orientation orientation = ((Orientation) (int) tolua_tonumber(tolua_S,2,0));
  4481. #ifndef TOLUA_RELEASE
  4482. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOrientation'", NULL);
  4483. #endif
  4484. {
  4485. self->SetOrientation(orientation);
  4486. }
  4487. }
  4488. return 0;
  4489. #ifndef TOLUA_RELEASE
  4490. tolua_lerror:
  4491. tolua_error(tolua_S,"#ferror in function 'SetOrientation'.",&tolua_err);
  4492. return 0;
  4493. #endif
  4494. }
  4495. #endif //#ifndef TOLUA_DISABLE
  4496. /* method: SetRange of class ScrollBar */
  4497. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_SetRange00
  4498. static int tolua_UI_ScrollBar_SetRange00(lua_State* tolua_S)
  4499. {
  4500. #ifndef TOLUA_RELEASE
  4501. tolua_Error tolua_err;
  4502. if (
  4503. !tolua_isusertype(tolua_S,1,"ScrollBar",0,&tolua_err) ||
  4504. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4505. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4506. )
  4507. goto tolua_lerror;
  4508. else
  4509. #endif
  4510. {
  4511. ScrollBar* self = (ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4512. float range = ((float) tolua_tonumber(tolua_S,2,0));
  4513. #ifndef TOLUA_RELEASE
  4514. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRange'", NULL);
  4515. #endif
  4516. {
  4517. self->SetRange(range);
  4518. }
  4519. }
  4520. return 0;
  4521. #ifndef TOLUA_RELEASE
  4522. tolua_lerror:
  4523. tolua_error(tolua_S,"#ferror in function 'SetRange'.",&tolua_err);
  4524. return 0;
  4525. #endif
  4526. }
  4527. #endif //#ifndef TOLUA_DISABLE
  4528. /* method: SetValue of class ScrollBar */
  4529. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_SetValue00
  4530. static int tolua_UI_ScrollBar_SetValue00(lua_State* tolua_S)
  4531. {
  4532. #ifndef TOLUA_RELEASE
  4533. tolua_Error tolua_err;
  4534. if (
  4535. !tolua_isusertype(tolua_S,1,"ScrollBar",0,&tolua_err) ||
  4536. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4537. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4538. )
  4539. goto tolua_lerror;
  4540. else
  4541. #endif
  4542. {
  4543. ScrollBar* self = (ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4544. float value = ((float) tolua_tonumber(tolua_S,2,0));
  4545. #ifndef TOLUA_RELEASE
  4546. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetValue'", NULL);
  4547. #endif
  4548. {
  4549. self->SetValue(value);
  4550. }
  4551. }
  4552. return 0;
  4553. #ifndef TOLUA_RELEASE
  4554. tolua_lerror:
  4555. tolua_error(tolua_S,"#ferror in function 'SetValue'.",&tolua_err);
  4556. return 0;
  4557. #endif
  4558. }
  4559. #endif //#ifndef TOLUA_DISABLE
  4560. /* method: ChangeValue of class ScrollBar */
  4561. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_ChangeValue00
  4562. static int tolua_UI_ScrollBar_ChangeValue00(lua_State* tolua_S)
  4563. {
  4564. #ifndef TOLUA_RELEASE
  4565. tolua_Error tolua_err;
  4566. if (
  4567. !tolua_isusertype(tolua_S,1,"ScrollBar",0,&tolua_err) ||
  4568. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4569. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4570. )
  4571. goto tolua_lerror;
  4572. else
  4573. #endif
  4574. {
  4575. ScrollBar* self = (ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4576. float delta = ((float) tolua_tonumber(tolua_S,2,0));
  4577. #ifndef TOLUA_RELEASE
  4578. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ChangeValue'", NULL);
  4579. #endif
  4580. {
  4581. self->ChangeValue(delta);
  4582. }
  4583. }
  4584. return 0;
  4585. #ifndef TOLUA_RELEASE
  4586. tolua_lerror:
  4587. tolua_error(tolua_S,"#ferror in function 'ChangeValue'.",&tolua_err);
  4588. return 0;
  4589. #endif
  4590. }
  4591. #endif //#ifndef TOLUA_DISABLE
  4592. /* method: SetScrollStep of class ScrollBar */
  4593. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_SetScrollStep00
  4594. static int tolua_UI_ScrollBar_SetScrollStep00(lua_State* tolua_S)
  4595. {
  4596. #ifndef TOLUA_RELEASE
  4597. tolua_Error tolua_err;
  4598. if (
  4599. !tolua_isusertype(tolua_S,1,"ScrollBar",0,&tolua_err) ||
  4600. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4601. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4602. )
  4603. goto tolua_lerror;
  4604. else
  4605. #endif
  4606. {
  4607. ScrollBar* self = (ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4608. float step = ((float) tolua_tonumber(tolua_S,2,0));
  4609. #ifndef TOLUA_RELEASE
  4610. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetScrollStep'", NULL);
  4611. #endif
  4612. {
  4613. self->SetScrollStep(step);
  4614. }
  4615. }
  4616. return 0;
  4617. #ifndef TOLUA_RELEASE
  4618. tolua_lerror:
  4619. tolua_error(tolua_S,"#ferror in function 'SetScrollStep'.",&tolua_err);
  4620. return 0;
  4621. #endif
  4622. }
  4623. #endif //#ifndef TOLUA_DISABLE
  4624. /* method: SetStepFactor of class ScrollBar */
  4625. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_SetStepFactor00
  4626. static int tolua_UI_ScrollBar_SetStepFactor00(lua_State* tolua_S)
  4627. {
  4628. #ifndef TOLUA_RELEASE
  4629. tolua_Error tolua_err;
  4630. if (
  4631. !tolua_isusertype(tolua_S,1,"ScrollBar",0,&tolua_err) ||
  4632. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4633. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4634. )
  4635. goto tolua_lerror;
  4636. else
  4637. #endif
  4638. {
  4639. ScrollBar* self = (ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4640. float factor = ((float) tolua_tonumber(tolua_S,2,0));
  4641. #ifndef TOLUA_RELEASE
  4642. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetStepFactor'", NULL);
  4643. #endif
  4644. {
  4645. self->SetStepFactor(factor);
  4646. }
  4647. }
  4648. return 0;
  4649. #ifndef TOLUA_RELEASE
  4650. tolua_lerror:
  4651. tolua_error(tolua_S,"#ferror in function 'SetStepFactor'.",&tolua_err);
  4652. return 0;
  4653. #endif
  4654. }
  4655. #endif //#ifndef TOLUA_DISABLE
  4656. /* method: StepBack of class ScrollBar */
  4657. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_StepBack00
  4658. static int tolua_UI_ScrollBar_StepBack00(lua_State* tolua_S)
  4659. {
  4660. #ifndef TOLUA_RELEASE
  4661. tolua_Error tolua_err;
  4662. if (
  4663. !tolua_isusertype(tolua_S,1,"ScrollBar",0,&tolua_err) ||
  4664. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4665. )
  4666. goto tolua_lerror;
  4667. else
  4668. #endif
  4669. {
  4670. ScrollBar* self = (ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4671. #ifndef TOLUA_RELEASE
  4672. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'StepBack'", NULL);
  4673. #endif
  4674. {
  4675. self->StepBack();
  4676. }
  4677. }
  4678. return 0;
  4679. #ifndef TOLUA_RELEASE
  4680. tolua_lerror:
  4681. tolua_error(tolua_S,"#ferror in function 'StepBack'.",&tolua_err);
  4682. return 0;
  4683. #endif
  4684. }
  4685. #endif //#ifndef TOLUA_DISABLE
  4686. /* method: StepForward of class ScrollBar */
  4687. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_StepForward00
  4688. static int tolua_UI_ScrollBar_StepForward00(lua_State* tolua_S)
  4689. {
  4690. #ifndef TOLUA_RELEASE
  4691. tolua_Error tolua_err;
  4692. if (
  4693. !tolua_isusertype(tolua_S,1,"ScrollBar",0,&tolua_err) ||
  4694. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4695. )
  4696. goto tolua_lerror;
  4697. else
  4698. #endif
  4699. {
  4700. ScrollBar* self = (ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4701. #ifndef TOLUA_RELEASE
  4702. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'StepForward'", NULL);
  4703. #endif
  4704. {
  4705. self->StepForward();
  4706. }
  4707. }
  4708. return 0;
  4709. #ifndef TOLUA_RELEASE
  4710. tolua_lerror:
  4711. tolua_error(tolua_S,"#ferror in function 'StepForward'.",&tolua_err);
  4712. return 0;
  4713. #endif
  4714. }
  4715. #endif //#ifndef TOLUA_DISABLE
  4716. /* method: GetOrientation of class ScrollBar */
  4717. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_GetOrientation00
  4718. static int tolua_UI_ScrollBar_GetOrientation00(lua_State* tolua_S)
  4719. {
  4720. #ifndef TOLUA_RELEASE
  4721. tolua_Error tolua_err;
  4722. if (
  4723. !tolua_isusertype(tolua_S,1,"const ScrollBar",0,&tolua_err) ||
  4724. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4725. )
  4726. goto tolua_lerror;
  4727. else
  4728. #endif
  4729. {
  4730. const ScrollBar* self = (const ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4731. #ifndef TOLUA_RELEASE
  4732. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOrientation'", NULL);
  4733. #endif
  4734. {
  4735. Orientation tolua_ret = (Orientation) self->GetOrientation();
  4736. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4737. }
  4738. }
  4739. return 1;
  4740. #ifndef TOLUA_RELEASE
  4741. tolua_lerror:
  4742. tolua_error(tolua_S,"#ferror in function 'GetOrientation'.",&tolua_err);
  4743. return 0;
  4744. #endif
  4745. }
  4746. #endif //#ifndef TOLUA_DISABLE
  4747. /* method: GetRange of class ScrollBar */
  4748. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_GetRange00
  4749. static int tolua_UI_ScrollBar_GetRange00(lua_State* tolua_S)
  4750. {
  4751. #ifndef TOLUA_RELEASE
  4752. tolua_Error tolua_err;
  4753. if (
  4754. !tolua_isusertype(tolua_S,1,"const ScrollBar",0,&tolua_err) ||
  4755. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4756. )
  4757. goto tolua_lerror;
  4758. else
  4759. #endif
  4760. {
  4761. const ScrollBar* self = (const ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4762. #ifndef TOLUA_RELEASE
  4763. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRange'", NULL);
  4764. #endif
  4765. {
  4766. float tolua_ret = (float) self->GetRange();
  4767. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4768. }
  4769. }
  4770. return 1;
  4771. #ifndef TOLUA_RELEASE
  4772. tolua_lerror:
  4773. tolua_error(tolua_S,"#ferror in function 'GetRange'.",&tolua_err);
  4774. return 0;
  4775. #endif
  4776. }
  4777. #endif //#ifndef TOLUA_DISABLE
  4778. /* method: GetValue of class ScrollBar */
  4779. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_GetValue00
  4780. static int tolua_UI_ScrollBar_GetValue00(lua_State* tolua_S)
  4781. {
  4782. #ifndef TOLUA_RELEASE
  4783. tolua_Error tolua_err;
  4784. if (
  4785. !tolua_isusertype(tolua_S,1,"const ScrollBar",0,&tolua_err) ||
  4786. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4787. )
  4788. goto tolua_lerror;
  4789. else
  4790. #endif
  4791. {
  4792. const ScrollBar* self = (const ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4793. #ifndef TOLUA_RELEASE
  4794. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetValue'", NULL);
  4795. #endif
  4796. {
  4797. float tolua_ret = (float) self->GetValue();
  4798. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4799. }
  4800. }
  4801. return 1;
  4802. #ifndef TOLUA_RELEASE
  4803. tolua_lerror:
  4804. tolua_error(tolua_S,"#ferror in function 'GetValue'.",&tolua_err);
  4805. return 0;
  4806. #endif
  4807. }
  4808. #endif //#ifndef TOLUA_DISABLE
  4809. /* method: GetScrollStep of class ScrollBar */
  4810. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_GetScrollStep00
  4811. static int tolua_UI_ScrollBar_GetScrollStep00(lua_State* tolua_S)
  4812. {
  4813. #ifndef TOLUA_RELEASE
  4814. tolua_Error tolua_err;
  4815. if (
  4816. !tolua_isusertype(tolua_S,1,"const ScrollBar",0,&tolua_err) ||
  4817. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4818. )
  4819. goto tolua_lerror;
  4820. else
  4821. #endif
  4822. {
  4823. const ScrollBar* self = (const ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4824. #ifndef TOLUA_RELEASE
  4825. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetScrollStep'", NULL);
  4826. #endif
  4827. {
  4828. float tolua_ret = (float) self->GetScrollStep();
  4829. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4830. }
  4831. }
  4832. return 1;
  4833. #ifndef TOLUA_RELEASE
  4834. tolua_lerror:
  4835. tolua_error(tolua_S,"#ferror in function 'GetScrollStep'.",&tolua_err);
  4836. return 0;
  4837. #endif
  4838. }
  4839. #endif //#ifndef TOLUA_DISABLE
  4840. /* method: GetStepFactor of class ScrollBar */
  4841. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_GetStepFactor00
  4842. static int tolua_UI_ScrollBar_GetStepFactor00(lua_State* tolua_S)
  4843. {
  4844. #ifndef TOLUA_RELEASE
  4845. tolua_Error tolua_err;
  4846. if (
  4847. !tolua_isusertype(tolua_S,1,"const ScrollBar",0,&tolua_err) ||
  4848. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4849. )
  4850. goto tolua_lerror;
  4851. else
  4852. #endif
  4853. {
  4854. const ScrollBar* self = (const ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4855. #ifndef TOLUA_RELEASE
  4856. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetStepFactor'", NULL);
  4857. #endif
  4858. {
  4859. float tolua_ret = (float) self->GetStepFactor();
  4860. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4861. }
  4862. }
  4863. return 1;
  4864. #ifndef TOLUA_RELEASE
  4865. tolua_lerror:
  4866. tolua_error(tolua_S,"#ferror in function 'GetStepFactor'.",&tolua_err);
  4867. return 0;
  4868. #endif
  4869. }
  4870. #endif //#ifndef TOLUA_DISABLE
  4871. /* method: GetEffectiveScrollStep of class ScrollBar */
  4872. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_GetEffectiveScrollStep00
  4873. static int tolua_UI_ScrollBar_GetEffectiveScrollStep00(lua_State* tolua_S)
  4874. {
  4875. #ifndef TOLUA_RELEASE
  4876. tolua_Error tolua_err;
  4877. if (
  4878. !tolua_isusertype(tolua_S,1,"const ScrollBar",0,&tolua_err) ||
  4879. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4880. )
  4881. goto tolua_lerror;
  4882. else
  4883. #endif
  4884. {
  4885. const ScrollBar* self = (const ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4886. #ifndef TOLUA_RELEASE
  4887. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetEffectiveScrollStep'", NULL);
  4888. #endif
  4889. {
  4890. float tolua_ret = (float) self->GetEffectiveScrollStep();
  4891. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4892. }
  4893. }
  4894. return 1;
  4895. #ifndef TOLUA_RELEASE
  4896. tolua_lerror:
  4897. tolua_error(tolua_S,"#ferror in function 'GetEffectiveScrollStep'.",&tolua_err);
  4898. return 0;
  4899. #endif
  4900. }
  4901. #endif //#ifndef TOLUA_DISABLE
  4902. /* method: GetBackButton of class ScrollBar */
  4903. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_GetBackButton00
  4904. static int tolua_UI_ScrollBar_GetBackButton00(lua_State* tolua_S)
  4905. {
  4906. #ifndef TOLUA_RELEASE
  4907. tolua_Error tolua_err;
  4908. if (
  4909. !tolua_isusertype(tolua_S,1,"const ScrollBar",0,&tolua_err) ||
  4910. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4911. )
  4912. goto tolua_lerror;
  4913. else
  4914. #endif
  4915. {
  4916. const ScrollBar* self = (const ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4917. #ifndef TOLUA_RELEASE
  4918. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBackButton'", NULL);
  4919. #endif
  4920. {
  4921. Button* tolua_ret = (Button*) self->GetBackButton();
  4922. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Button");
  4923. }
  4924. }
  4925. return 1;
  4926. #ifndef TOLUA_RELEASE
  4927. tolua_lerror:
  4928. tolua_error(tolua_S,"#ferror in function 'GetBackButton'.",&tolua_err);
  4929. return 0;
  4930. #endif
  4931. }
  4932. #endif //#ifndef TOLUA_DISABLE
  4933. /* method: GetForwardButton of class ScrollBar */
  4934. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_GetForwardButton00
  4935. static int tolua_UI_ScrollBar_GetForwardButton00(lua_State* tolua_S)
  4936. {
  4937. #ifndef TOLUA_RELEASE
  4938. tolua_Error tolua_err;
  4939. if (
  4940. !tolua_isusertype(tolua_S,1,"const ScrollBar",0,&tolua_err) ||
  4941. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4942. )
  4943. goto tolua_lerror;
  4944. else
  4945. #endif
  4946. {
  4947. const ScrollBar* self = (const ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4948. #ifndef TOLUA_RELEASE
  4949. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetForwardButton'", NULL);
  4950. #endif
  4951. {
  4952. Button* tolua_ret = (Button*) self->GetForwardButton();
  4953. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Button");
  4954. }
  4955. }
  4956. return 1;
  4957. #ifndef TOLUA_RELEASE
  4958. tolua_lerror:
  4959. tolua_error(tolua_S,"#ferror in function 'GetForwardButton'.",&tolua_err);
  4960. return 0;
  4961. #endif
  4962. }
  4963. #endif //#ifndef TOLUA_DISABLE
  4964. /* method: GetSlider of class ScrollBar */
  4965. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_GetSlider00
  4966. static int tolua_UI_ScrollBar_GetSlider00(lua_State* tolua_S)
  4967. {
  4968. #ifndef TOLUA_RELEASE
  4969. tolua_Error tolua_err;
  4970. if (
  4971. !tolua_isusertype(tolua_S,1,"const ScrollBar",0,&tolua_err) ||
  4972. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4973. )
  4974. goto tolua_lerror;
  4975. else
  4976. #endif
  4977. {
  4978. const ScrollBar* self = (const ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4979. #ifndef TOLUA_RELEASE
  4980. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSlider'", NULL);
  4981. #endif
  4982. {
  4983. Slider* tolua_ret = (Slider*) self->GetSlider();
  4984. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Slider");
  4985. }
  4986. }
  4987. return 1;
  4988. #ifndef TOLUA_RELEASE
  4989. tolua_lerror:
  4990. tolua_error(tolua_S,"#ferror in function 'GetSlider'.",&tolua_err);
  4991. return 0;
  4992. #endif
  4993. }
  4994. #endif //#ifndef TOLUA_DISABLE
  4995. /* method: SetContentElement of class ScrollView */
  4996. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_SetContentElement00
  4997. static int tolua_UI_ScrollView_SetContentElement00(lua_State* tolua_S)
  4998. {
  4999. #ifndef TOLUA_RELEASE
  5000. tolua_Error tolua_err;
  5001. if (
  5002. !tolua_isusertype(tolua_S,1,"ScrollView",0,&tolua_err) ||
  5003. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  5004. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5005. )
  5006. goto tolua_lerror;
  5007. else
  5008. #endif
  5009. {
  5010. ScrollView* self = (ScrollView*) tolua_tousertype(tolua_S,1,0);
  5011. UIElement* element = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  5012. #ifndef TOLUA_RELEASE
  5013. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetContentElement'", NULL);
  5014. #endif
  5015. {
  5016. self->SetContentElement(element);
  5017. }
  5018. }
  5019. return 0;
  5020. #ifndef TOLUA_RELEASE
  5021. tolua_lerror:
  5022. tolua_error(tolua_S,"#ferror in function 'SetContentElement'.",&tolua_err);
  5023. return 0;
  5024. #endif
  5025. }
  5026. #endif //#ifndef TOLUA_DISABLE
  5027. /* method: SetViewPosition of class ScrollView */
  5028. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_SetViewPosition00
  5029. static int tolua_UI_ScrollView_SetViewPosition00(lua_State* tolua_S)
  5030. {
  5031. #ifndef TOLUA_RELEASE
  5032. tolua_Error tolua_err;
  5033. if (
  5034. !tolua_isusertype(tolua_S,1,"ScrollView",0,&tolua_err) ||
  5035. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  5036. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5037. )
  5038. goto tolua_lerror;
  5039. else
  5040. #endif
  5041. {
  5042. ScrollView* self = (ScrollView*) tolua_tousertype(tolua_S,1,0);
  5043. const IntVector2* position = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  5044. #ifndef TOLUA_RELEASE
  5045. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetViewPosition'", NULL);
  5046. #endif
  5047. {
  5048. self->SetViewPosition(*position);
  5049. }
  5050. }
  5051. return 0;
  5052. #ifndef TOLUA_RELEASE
  5053. tolua_lerror:
  5054. tolua_error(tolua_S,"#ferror in function 'SetViewPosition'.",&tolua_err);
  5055. return 0;
  5056. #endif
  5057. }
  5058. #endif //#ifndef TOLUA_DISABLE
  5059. /* method: SetViewPosition of class ScrollView */
  5060. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_SetViewPosition01
  5061. static int tolua_UI_ScrollView_SetViewPosition01(lua_State* tolua_S)
  5062. {
  5063. tolua_Error tolua_err;
  5064. if (
  5065. !tolua_isusertype(tolua_S,1,"ScrollView",0,&tolua_err) ||
  5066. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5067. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  5068. !tolua_isnoobj(tolua_S,4,&tolua_err)
  5069. )
  5070. goto tolua_lerror;
  5071. else
  5072. {
  5073. ScrollView* self = (ScrollView*) tolua_tousertype(tolua_S,1,0);
  5074. int x = ((int) tolua_tonumber(tolua_S,2,0));
  5075. int y = ((int) tolua_tonumber(tolua_S,3,0));
  5076. #ifndef TOLUA_RELEASE
  5077. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetViewPosition'", NULL);
  5078. #endif
  5079. {
  5080. self->SetViewPosition(x,y);
  5081. }
  5082. }
  5083. return 0;
  5084. tolua_lerror:
  5085. return tolua_UI_ScrollView_SetViewPosition00(tolua_S);
  5086. }
  5087. #endif //#ifndef TOLUA_DISABLE
  5088. /* method: SetScrollBarsVisible of class ScrollView */
  5089. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_SetScrollBarsVisible00
  5090. static int tolua_UI_ScrollView_SetScrollBarsVisible00(lua_State* tolua_S)
  5091. {
  5092. #ifndef TOLUA_RELEASE
  5093. tolua_Error tolua_err;
  5094. if (
  5095. !tolua_isusertype(tolua_S,1,"ScrollView",0,&tolua_err) ||
  5096. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  5097. !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
  5098. !tolua_isnoobj(tolua_S,4,&tolua_err)
  5099. )
  5100. goto tolua_lerror;
  5101. else
  5102. #endif
  5103. {
  5104. ScrollView* self = (ScrollView*) tolua_tousertype(tolua_S,1,0);
  5105. bool horizontal = ((bool) tolua_toboolean(tolua_S,2,0));
  5106. bool vertical = ((bool) tolua_toboolean(tolua_S,3,0));
  5107. #ifndef TOLUA_RELEASE
  5108. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetScrollBarsVisible'", NULL);
  5109. #endif
  5110. {
  5111. self->SetScrollBarsVisible(horizontal,vertical);
  5112. }
  5113. }
  5114. return 0;
  5115. #ifndef TOLUA_RELEASE
  5116. tolua_lerror:
  5117. tolua_error(tolua_S,"#ferror in function 'SetScrollBarsVisible'.",&tolua_err);
  5118. return 0;
  5119. #endif
  5120. }
  5121. #endif //#ifndef TOLUA_DISABLE
  5122. /* method: SetScrollBarsAutoVisible of class ScrollView */
  5123. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_SetScrollBarsAutoVisible00
  5124. static int tolua_UI_ScrollView_SetScrollBarsAutoVisible00(lua_State* tolua_S)
  5125. {
  5126. #ifndef TOLUA_RELEASE
  5127. tolua_Error tolua_err;
  5128. if (
  5129. !tolua_isusertype(tolua_S,1,"ScrollView",0,&tolua_err) ||
  5130. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  5131. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5132. )
  5133. goto tolua_lerror;
  5134. else
  5135. #endif
  5136. {
  5137. ScrollView* self = (ScrollView*) tolua_tousertype(tolua_S,1,0);
  5138. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  5139. #ifndef TOLUA_RELEASE
  5140. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetScrollBarsAutoVisible'", NULL);
  5141. #endif
  5142. {
  5143. self->SetScrollBarsAutoVisible(enable);
  5144. }
  5145. }
  5146. return 0;
  5147. #ifndef TOLUA_RELEASE
  5148. tolua_lerror:
  5149. tolua_error(tolua_S,"#ferror in function 'SetScrollBarsAutoVisible'.",&tolua_err);
  5150. return 0;
  5151. #endif
  5152. }
  5153. #endif //#ifndef TOLUA_DISABLE
  5154. /* method: SetScrollStep of class ScrollView */
  5155. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_SetScrollStep00
  5156. static int tolua_UI_ScrollView_SetScrollStep00(lua_State* tolua_S)
  5157. {
  5158. #ifndef TOLUA_RELEASE
  5159. tolua_Error tolua_err;
  5160. if (
  5161. !tolua_isusertype(tolua_S,1,"ScrollView",0,&tolua_err) ||
  5162. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5163. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5164. )
  5165. goto tolua_lerror;
  5166. else
  5167. #endif
  5168. {
  5169. ScrollView* self = (ScrollView*) tolua_tousertype(tolua_S,1,0);
  5170. float step = ((float) tolua_tonumber(tolua_S,2,0));
  5171. #ifndef TOLUA_RELEASE
  5172. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetScrollStep'", NULL);
  5173. #endif
  5174. {
  5175. self->SetScrollStep(step);
  5176. }
  5177. }
  5178. return 0;
  5179. #ifndef TOLUA_RELEASE
  5180. tolua_lerror:
  5181. tolua_error(tolua_S,"#ferror in function 'SetScrollStep'.",&tolua_err);
  5182. return 0;
  5183. #endif
  5184. }
  5185. #endif //#ifndef TOLUA_DISABLE
  5186. /* method: SetPageStep of class ScrollView */
  5187. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_SetPageStep00
  5188. static int tolua_UI_ScrollView_SetPageStep00(lua_State* tolua_S)
  5189. {
  5190. #ifndef TOLUA_RELEASE
  5191. tolua_Error tolua_err;
  5192. if (
  5193. !tolua_isusertype(tolua_S,1,"ScrollView",0,&tolua_err) ||
  5194. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5195. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5196. )
  5197. goto tolua_lerror;
  5198. else
  5199. #endif
  5200. {
  5201. ScrollView* self = (ScrollView*) tolua_tousertype(tolua_S,1,0);
  5202. float step = ((float) tolua_tonumber(tolua_S,2,0));
  5203. #ifndef TOLUA_RELEASE
  5204. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPageStep'", NULL);
  5205. #endif
  5206. {
  5207. self->SetPageStep(step);
  5208. }
  5209. }
  5210. return 0;
  5211. #ifndef TOLUA_RELEASE
  5212. tolua_lerror:
  5213. tolua_error(tolua_S,"#ferror in function 'SetPageStep'.",&tolua_err);
  5214. return 0;
  5215. #endif
  5216. }
  5217. #endif //#ifndef TOLUA_DISABLE
  5218. /* method: GetViewPosition of class ScrollView */
  5219. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_GetViewPosition00
  5220. static int tolua_UI_ScrollView_GetViewPosition00(lua_State* tolua_S)
  5221. {
  5222. #ifndef TOLUA_RELEASE
  5223. tolua_Error tolua_err;
  5224. if (
  5225. !tolua_isusertype(tolua_S,1,"const ScrollView",0,&tolua_err) ||
  5226. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5227. )
  5228. goto tolua_lerror;
  5229. else
  5230. #endif
  5231. {
  5232. const ScrollView* self = (const ScrollView*) tolua_tousertype(tolua_S,1,0);
  5233. #ifndef TOLUA_RELEASE
  5234. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetViewPosition'", NULL);
  5235. #endif
  5236. {
  5237. const IntVector2& tolua_ret = (const IntVector2&) self->GetViewPosition();
  5238. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  5239. }
  5240. }
  5241. return 1;
  5242. #ifndef TOLUA_RELEASE
  5243. tolua_lerror:
  5244. tolua_error(tolua_S,"#ferror in function 'GetViewPosition'.",&tolua_err);
  5245. return 0;
  5246. #endif
  5247. }
  5248. #endif //#ifndef TOLUA_DISABLE
  5249. /* method: GetContentElement of class ScrollView */
  5250. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_GetContentElement00
  5251. static int tolua_UI_ScrollView_GetContentElement00(lua_State* tolua_S)
  5252. {
  5253. #ifndef TOLUA_RELEASE
  5254. tolua_Error tolua_err;
  5255. if (
  5256. !tolua_isusertype(tolua_S,1,"const ScrollView",0,&tolua_err) ||
  5257. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5258. )
  5259. goto tolua_lerror;
  5260. else
  5261. #endif
  5262. {
  5263. const ScrollView* self = (const ScrollView*) tolua_tousertype(tolua_S,1,0);
  5264. #ifndef TOLUA_RELEASE
  5265. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetContentElement'", NULL);
  5266. #endif
  5267. {
  5268. UIElement* tolua_ret = (UIElement*) self->GetContentElement();
  5269. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  5270. }
  5271. }
  5272. return 1;
  5273. #ifndef TOLUA_RELEASE
  5274. tolua_lerror:
  5275. tolua_error(tolua_S,"#ferror in function 'GetContentElement'.",&tolua_err);
  5276. return 0;
  5277. #endif
  5278. }
  5279. #endif //#ifndef TOLUA_DISABLE
  5280. /* method: GetHorizontalScrollBar of class ScrollView */
  5281. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_GetHorizontalScrollBar00
  5282. static int tolua_UI_ScrollView_GetHorizontalScrollBar00(lua_State* tolua_S)
  5283. {
  5284. #ifndef TOLUA_RELEASE
  5285. tolua_Error tolua_err;
  5286. if (
  5287. !tolua_isusertype(tolua_S,1,"const ScrollView",0,&tolua_err) ||
  5288. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5289. )
  5290. goto tolua_lerror;
  5291. else
  5292. #endif
  5293. {
  5294. const ScrollView* self = (const ScrollView*) tolua_tousertype(tolua_S,1,0);
  5295. #ifndef TOLUA_RELEASE
  5296. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHorizontalScrollBar'", NULL);
  5297. #endif
  5298. {
  5299. ScrollBar* tolua_ret = (ScrollBar*) self->GetHorizontalScrollBar();
  5300. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ScrollBar");
  5301. }
  5302. }
  5303. return 1;
  5304. #ifndef TOLUA_RELEASE
  5305. tolua_lerror:
  5306. tolua_error(tolua_S,"#ferror in function 'GetHorizontalScrollBar'.",&tolua_err);
  5307. return 0;
  5308. #endif
  5309. }
  5310. #endif //#ifndef TOLUA_DISABLE
  5311. /* method: GetVerticalScrollBar of class ScrollView */
  5312. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_GetVerticalScrollBar00
  5313. static int tolua_UI_ScrollView_GetVerticalScrollBar00(lua_State* tolua_S)
  5314. {
  5315. #ifndef TOLUA_RELEASE
  5316. tolua_Error tolua_err;
  5317. if (
  5318. !tolua_isusertype(tolua_S,1,"const ScrollView",0,&tolua_err) ||
  5319. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5320. )
  5321. goto tolua_lerror;
  5322. else
  5323. #endif
  5324. {
  5325. const ScrollView* self = (const ScrollView*) tolua_tousertype(tolua_S,1,0);
  5326. #ifndef TOLUA_RELEASE
  5327. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVerticalScrollBar'", NULL);
  5328. #endif
  5329. {
  5330. ScrollBar* tolua_ret = (ScrollBar*) self->GetVerticalScrollBar();
  5331. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ScrollBar");
  5332. }
  5333. }
  5334. return 1;
  5335. #ifndef TOLUA_RELEASE
  5336. tolua_lerror:
  5337. tolua_error(tolua_S,"#ferror in function 'GetVerticalScrollBar'.",&tolua_err);
  5338. return 0;
  5339. #endif
  5340. }
  5341. #endif //#ifndef TOLUA_DISABLE
  5342. /* method: GetScrollPanel of class ScrollView */
  5343. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_GetScrollPanel00
  5344. static int tolua_UI_ScrollView_GetScrollPanel00(lua_State* tolua_S)
  5345. {
  5346. #ifndef TOLUA_RELEASE
  5347. tolua_Error tolua_err;
  5348. if (
  5349. !tolua_isusertype(tolua_S,1,"const ScrollView",0,&tolua_err) ||
  5350. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5351. )
  5352. goto tolua_lerror;
  5353. else
  5354. #endif
  5355. {
  5356. const ScrollView* self = (const ScrollView*) tolua_tousertype(tolua_S,1,0);
  5357. #ifndef TOLUA_RELEASE
  5358. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetScrollPanel'", NULL);
  5359. #endif
  5360. {
  5361. BorderImage* tolua_ret = (BorderImage*) self->GetScrollPanel();
  5362. tolua_pushusertype(tolua_S,(void*)tolua_ret,"BorderImage");
  5363. }
  5364. }
  5365. return 1;
  5366. #ifndef TOLUA_RELEASE
  5367. tolua_lerror:
  5368. tolua_error(tolua_S,"#ferror in function 'GetScrollPanel'.",&tolua_err);
  5369. return 0;
  5370. #endif
  5371. }
  5372. #endif //#ifndef TOLUA_DISABLE
  5373. /* method: GetScrollBarsAutoVisible of class ScrollView */
  5374. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_GetScrollBarsAutoVisible00
  5375. static int tolua_UI_ScrollView_GetScrollBarsAutoVisible00(lua_State* tolua_S)
  5376. {
  5377. #ifndef TOLUA_RELEASE
  5378. tolua_Error tolua_err;
  5379. if (
  5380. !tolua_isusertype(tolua_S,1,"const ScrollView",0,&tolua_err) ||
  5381. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5382. )
  5383. goto tolua_lerror;
  5384. else
  5385. #endif
  5386. {
  5387. const ScrollView* self = (const ScrollView*) tolua_tousertype(tolua_S,1,0);
  5388. #ifndef TOLUA_RELEASE
  5389. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetScrollBarsAutoVisible'", NULL);
  5390. #endif
  5391. {
  5392. bool tolua_ret = (bool) self->GetScrollBarsAutoVisible();
  5393. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  5394. }
  5395. }
  5396. return 1;
  5397. #ifndef TOLUA_RELEASE
  5398. tolua_lerror:
  5399. tolua_error(tolua_S,"#ferror in function 'GetScrollBarsAutoVisible'.",&tolua_err);
  5400. return 0;
  5401. #endif
  5402. }
  5403. #endif //#ifndef TOLUA_DISABLE
  5404. /* method: GetScrollStep of class ScrollView */
  5405. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_GetScrollStep00
  5406. static int tolua_UI_ScrollView_GetScrollStep00(lua_State* tolua_S)
  5407. {
  5408. #ifndef TOLUA_RELEASE
  5409. tolua_Error tolua_err;
  5410. if (
  5411. !tolua_isusertype(tolua_S,1,"const ScrollView",0,&tolua_err) ||
  5412. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5413. )
  5414. goto tolua_lerror;
  5415. else
  5416. #endif
  5417. {
  5418. const ScrollView* self = (const ScrollView*) tolua_tousertype(tolua_S,1,0);
  5419. #ifndef TOLUA_RELEASE
  5420. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetScrollStep'", NULL);
  5421. #endif
  5422. {
  5423. float tolua_ret = (float) self->GetScrollStep();
  5424. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5425. }
  5426. }
  5427. return 1;
  5428. #ifndef TOLUA_RELEASE
  5429. tolua_lerror:
  5430. tolua_error(tolua_S,"#ferror in function 'GetScrollStep'.",&tolua_err);
  5431. return 0;
  5432. #endif
  5433. }
  5434. #endif //#ifndef TOLUA_DISABLE
  5435. /* method: GetPageStep of class ScrollView */
  5436. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_GetPageStep00
  5437. static int tolua_UI_ScrollView_GetPageStep00(lua_State* tolua_S)
  5438. {
  5439. #ifndef TOLUA_RELEASE
  5440. tolua_Error tolua_err;
  5441. if (
  5442. !tolua_isusertype(tolua_S,1,"const ScrollView",0,&tolua_err) ||
  5443. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5444. )
  5445. goto tolua_lerror;
  5446. else
  5447. #endif
  5448. {
  5449. const ScrollView* self = (const ScrollView*) tolua_tousertype(tolua_S,1,0);
  5450. #ifndef TOLUA_RELEASE
  5451. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPageStep'", NULL);
  5452. #endif
  5453. {
  5454. float tolua_ret = (float) self->GetPageStep();
  5455. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5456. }
  5457. }
  5458. return 1;
  5459. #ifndef TOLUA_RELEASE
  5460. tolua_lerror:
  5461. tolua_error(tolua_S,"#ferror in function 'GetPageStep'.",&tolua_err);
  5462. return 0;
  5463. #endif
  5464. }
  5465. #endif //#ifndef TOLUA_DISABLE
  5466. /* method: SetViewPositionAttr of class ScrollView */
  5467. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_SetViewPositionAttr00
  5468. static int tolua_UI_ScrollView_SetViewPositionAttr00(lua_State* tolua_S)
  5469. {
  5470. #ifndef TOLUA_RELEASE
  5471. tolua_Error tolua_err;
  5472. if (
  5473. !tolua_isusertype(tolua_S,1,"ScrollView",0,&tolua_err) ||
  5474. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  5475. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5476. )
  5477. goto tolua_lerror;
  5478. else
  5479. #endif
  5480. {
  5481. ScrollView* self = (ScrollView*) tolua_tousertype(tolua_S,1,0);
  5482. const IntVector2* value = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  5483. #ifndef TOLUA_RELEASE
  5484. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetViewPositionAttr'", NULL);
  5485. #endif
  5486. {
  5487. self->SetViewPositionAttr(*value);
  5488. }
  5489. }
  5490. return 0;
  5491. #ifndef TOLUA_RELEASE
  5492. tolua_lerror:
  5493. tolua_error(tolua_S,"#ferror in function 'SetViewPositionAttr'.",&tolua_err);
  5494. return 0;
  5495. #endif
  5496. }
  5497. #endif //#ifndef TOLUA_DISABLE
  5498. /* method: SetOrientation of class Slider */
  5499. #ifndef TOLUA_DISABLE_tolua_UI_Slider_SetOrientation00
  5500. static int tolua_UI_Slider_SetOrientation00(lua_State* tolua_S)
  5501. {
  5502. #ifndef TOLUA_RELEASE
  5503. tolua_Error tolua_err;
  5504. if (
  5505. !tolua_isusertype(tolua_S,1,"Slider",0,&tolua_err) ||
  5506. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5507. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5508. )
  5509. goto tolua_lerror;
  5510. else
  5511. #endif
  5512. {
  5513. Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
  5514. Orientation orientation = ((Orientation) (int) tolua_tonumber(tolua_S,2,0));
  5515. #ifndef TOLUA_RELEASE
  5516. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOrientation'", NULL);
  5517. #endif
  5518. {
  5519. self->SetOrientation(orientation);
  5520. }
  5521. }
  5522. return 0;
  5523. #ifndef TOLUA_RELEASE
  5524. tolua_lerror:
  5525. tolua_error(tolua_S,"#ferror in function 'SetOrientation'.",&tolua_err);
  5526. return 0;
  5527. #endif
  5528. }
  5529. #endif //#ifndef TOLUA_DISABLE
  5530. /* method: SetRange of class Slider */
  5531. #ifndef TOLUA_DISABLE_tolua_UI_Slider_SetRange00
  5532. static int tolua_UI_Slider_SetRange00(lua_State* tolua_S)
  5533. {
  5534. #ifndef TOLUA_RELEASE
  5535. tolua_Error tolua_err;
  5536. if (
  5537. !tolua_isusertype(tolua_S,1,"Slider",0,&tolua_err) ||
  5538. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5539. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5540. )
  5541. goto tolua_lerror;
  5542. else
  5543. #endif
  5544. {
  5545. Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
  5546. float range = ((float) tolua_tonumber(tolua_S,2,0));
  5547. #ifndef TOLUA_RELEASE
  5548. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRange'", NULL);
  5549. #endif
  5550. {
  5551. self->SetRange(range);
  5552. }
  5553. }
  5554. return 0;
  5555. #ifndef TOLUA_RELEASE
  5556. tolua_lerror:
  5557. tolua_error(tolua_S,"#ferror in function 'SetRange'.",&tolua_err);
  5558. return 0;
  5559. #endif
  5560. }
  5561. #endif //#ifndef TOLUA_DISABLE
  5562. /* method: SetValue of class Slider */
  5563. #ifndef TOLUA_DISABLE_tolua_UI_Slider_SetValue00
  5564. static int tolua_UI_Slider_SetValue00(lua_State* tolua_S)
  5565. {
  5566. #ifndef TOLUA_RELEASE
  5567. tolua_Error tolua_err;
  5568. if (
  5569. !tolua_isusertype(tolua_S,1,"Slider",0,&tolua_err) ||
  5570. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5571. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5572. )
  5573. goto tolua_lerror;
  5574. else
  5575. #endif
  5576. {
  5577. Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
  5578. float value = ((float) tolua_tonumber(tolua_S,2,0));
  5579. #ifndef TOLUA_RELEASE
  5580. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetValue'", NULL);
  5581. #endif
  5582. {
  5583. self->SetValue(value);
  5584. }
  5585. }
  5586. return 0;
  5587. #ifndef TOLUA_RELEASE
  5588. tolua_lerror:
  5589. tolua_error(tolua_S,"#ferror in function 'SetValue'.",&tolua_err);
  5590. return 0;
  5591. #endif
  5592. }
  5593. #endif //#ifndef TOLUA_DISABLE
  5594. /* method: ChangeValue of class Slider */
  5595. #ifndef TOLUA_DISABLE_tolua_UI_Slider_ChangeValue00
  5596. static int tolua_UI_Slider_ChangeValue00(lua_State* tolua_S)
  5597. {
  5598. #ifndef TOLUA_RELEASE
  5599. tolua_Error tolua_err;
  5600. if (
  5601. !tolua_isusertype(tolua_S,1,"Slider",0,&tolua_err) ||
  5602. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5603. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5604. )
  5605. goto tolua_lerror;
  5606. else
  5607. #endif
  5608. {
  5609. Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
  5610. float delta = ((float) tolua_tonumber(tolua_S,2,0));
  5611. #ifndef TOLUA_RELEASE
  5612. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ChangeValue'", NULL);
  5613. #endif
  5614. {
  5615. self->ChangeValue(delta);
  5616. }
  5617. }
  5618. return 0;
  5619. #ifndef TOLUA_RELEASE
  5620. tolua_lerror:
  5621. tolua_error(tolua_S,"#ferror in function 'ChangeValue'.",&tolua_err);
  5622. return 0;
  5623. #endif
  5624. }
  5625. #endif //#ifndef TOLUA_DISABLE
  5626. /* method: SetRepeatRate of class Slider */
  5627. #ifndef TOLUA_DISABLE_tolua_UI_Slider_SetRepeatRate00
  5628. static int tolua_UI_Slider_SetRepeatRate00(lua_State* tolua_S)
  5629. {
  5630. #ifndef TOLUA_RELEASE
  5631. tolua_Error tolua_err;
  5632. if (
  5633. !tolua_isusertype(tolua_S,1,"Slider",0,&tolua_err) ||
  5634. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5635. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5636. )
  5637. goto tolua_lerror;
  5638. else
  5639. #endif
  5640. {
  5641. Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
  5642. float rate = ((float) tolua_tonumber(tolua_S,2,0));
  5643. #ifndef TOLUA_RELEASE
  5644. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRepeatRate'", NULL);
  5645. #endif
  5646. {
  5647. self->SetRepeatRate(rate);
  5648. }
  5649. }
  5650. return 0;
  5651. #ifndef TOLUA_RELEASE
  5652. tolua_lerror:
  5653. tolua_error(tolua_S,"#ferror in function 'SetRepeatRate'.",&tolua_err);
  5654. return 0;
  5655. #endif
  5656. }
  5657. #endif //#ifndef TOLUA_DISABLE
  5658. /* method: GetOrientation of class Slider */
  5659. #ifndef TOLUA_DISABLE_tolua_UI_Slider_GetOrientation00
  5660. static int tolua_UI_Slider_GetOrientation00(lua_State* tolua_S)
  5661. {
  5662. #ifndef TOLUA_RELEASE
  5663. tolua_Error tolua_err;
  5664. if (
  5665. !tolua_isusertype(tolua_S,1,"const Slider",0,&tolua_err) ||
  5666. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5667. )
  5668. goto tolua_lerror;
  5669. else
  5670. #endif
  5671. {
  5672. const Slider* self = (const Slider*) tolua_tousertype(tolua_S,1,0);
  5673. #ifndef TOLUA_RELEASE
  5674. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOrientation'", NULL);
  5675. #endif
  5676. {
  5677. Orientation tolua_ret = (Orientation) self->GetOrientation();
  5678. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5679. }
  5680. }
  5681. return 1;
  5682. #ifndef TOLUA_RELEASE
  5683. tolua_lerror:
  5684. tolua_error(tolua_S,"#ferror in function 'GetOrientation'.",&tolua_err);
  5685. return 0;
  5686. #endif
  5687. }
  5688. #endif //#ifndef TOLUA_DISABLE
  5689. /* method: GetRange of class Slider */
  5690. #ifndef TOLUA_DISABLE_tolua_UI_Slider_GetRange00
  5691. static int tolua_UI_Slider_GetRange00(lua_State* tolua_S)
  5692. {
  5693. #ifndef TOLUA_RELEASE
  5694. tolua_Error tolua_err;
  5695. if (
  5696. !tolua_isusertype(tolua_S,1,"const Slider",0,&tolua_err) ||
  5697. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5698. )
  5699. goto tolua_lerror;
  5700. else
  5701. #endif
  5702. {
  5703. const Slider* self = (const Slider*) tolua_tousertype(tolua_S,1,0);
  5704. #ifndef TOLUA_RELEASE
  5705. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRange'", NULL);
  5706. #endif
  5707. {
  5708. float tolua_ret = (float) self->GetRange();
  5709. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5710. }
  5711. }
  5712. return 1;
  5713. #ifndef TOLUA_RELEASE
  5714. tolua_lerror:
  5715. tolua_error(tolua_S,"#ferror in function 'GetRange'.",&tolua_err);
  5716. return 0;
  5717. #endif
  5718. }
  5719. #endif //#ifndef TOLUA_DISABLE
  5720. /* method: GetValue of class Slider */
  5721. #ifndef TOLUA_DISABLE_tolua_UI_Slider_GetValue00
  5722. static int tolua_UI_Slider_GetValue00(lua_State* tolua_S)
  5723. {
  5724. #ifndef TOLUA_RELEASE
  5725. tolua_Error tolua_err;
  5726. if (
  5727. !tolua_isusertype(tolua_S,1,"const Slider",0,&tolua_err) ||
  5728. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5729. )
  5730. goto tolua_lerror;
  5731. else
  5732. #endif
  5733. {
  5734. const Slider* self = (const Slider*) tolua_tousertype(tolua_S,1,0);
  5735. #ifndef TOLUA_RELEASE
  5736. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetValue'", NULL);
  5737. #endif
  5738. {
  5739. float tolua_ret = (float) self->GetValue();
  5740. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5741. }
  5742. }
  5743. return 1;
  5744. #ifndef TOLUA_RELEASE
  5745. tolua_lerror:
  5746. tolua_error(tolua_S,"#ferror in function 'GetValue'.",&tolua_err);
  5747. return 0;
  5748. #endif
  5749. }
  5750. #endif //#ifndef TOLUA_DISABLE
  5751. /* method: GetKnob of class Slider */
  5752. #ifndef TOLUA_DISABLE_tolua_UI_Slider_GetKnob00
  5753. static int tolua_UI_Slider_GetKnob00(lua_State* tolua_S)
  5754. {
  5755. #ifndef TOLUA_RELEASE
  5756. tolua_Error tolua_err;
  5757. if (
  5758. !tolua_isusertype(tolua_S,1,"const Slider",0,&tolua_err) ||
  5759. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5760. )
  5761. goto tolua_lerror;
  5762. else
  5763. #endif
  5764. {
  5765. const Slider* self = (const Slider*) tolua_tousertype(tolua_S,1,0);
  5766. #ifndef TOLUA_RELEASE
  5767. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetKnob'", NULL);
  5768. #endif
  5769. {
  5770. BorderImage* tolua_ret = (BorderImage*) self->GetKnob();
  5771. tolua_pushusertype(tolua_S,(void*)tolua_ret,"BorderImage");
  5772. }
  5773. }
  5774. return 1;
  5775. #ifndef TOLUA_RELEASE
  5776. tolua_lerror:
  5777. tolua_error(tolua_S,"#ferror in function 'GetKnob'.",&tolua_err);
  5778. return 0;
  5779. #endif
  5780. }
  5781. #endif //#ifndef TOLUA_DISABLE
  5782. /* method: GetRepeatRate of class Slider */
  5783. #ifndef TOLUA_DISABLE_tolua_UI_Slider_GetRepeatRate00
  5784. static int tolua_UI_Slider_GetRepeatRate00(lua_State* tolua_S)
  5785. {
  5786. #ifndef TOLUA_RELEASE
  5787. tolua_Error tolua_err;
  5788. if (
  5789. !tolua_isusertype(tolua_S,1,"const Slider",0,&tolua_err) ||
  5790. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5791. )
  5792. goto tolua_lerror;
  5793. else
  5794. #endif
  5795. {
  5796. const Slider* self = (const Slider*) tolua_tousertype(tolua_S,1,0);
  5797. #ifndef TOLUA_RELEASE
  5798. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRepeatRate'", NULL);
  5799. #endif
  5800. {
  5801. float tolua_ret = (float) self->GetRepeatRate();
  5802. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5803. }
  5804. }
  5805. return 1;
  5806. #ifndef TOLUA_RELEASE
  5807. tolua_lerror:
  5808. tolua_error(tolua_S,"#ferror in function 'GetRepeatRate'.",&tolua_err);
  5809. return 0;
  5810. #endif
  5811. }
  5812. #endif //#ifndef TOLUA_DISABLE
  5813. /* method: SetPosition of class Sprite */
  5814. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetPosition00
  5815. static int tolua_UI_Sprite_SetPosition00(lua_State* tolua_S)
  5816. {
  5817. #ifndef TOLUA_RELEASE
  5818. tolua_Error tolua_err;
  5819. if (
  5820. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  5821. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector2",0,&tolua_err)) ||
  5822. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5823. )
  5824. goto tolua_lerror;
  5825. else
  5826. #endif
  5827. {
  5828. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  5829. const Vector2* position = ((const Vector2*) tolua_tousertype(tolua_S,2,0));
  5830. #ifndef TOLUA_RELEASE
  5831. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPosition'", NULL);
  5832. #endif
  5833. {
  5834. self->SetPosition(*position);
  5835. }
  5836. }
  5837. return 0;
  5838. #ifndef TOLUA_RELEASE
  5839. tolua_lerror:
  5840. tolua_error(tolua_S,"#ferror in function 'SetPosition'.",&tolua_err);
  5841. return 0;
  5842. #endif
  5843. }
  5844. #endif //#ifndef TOLUA_DISABLE
  5845. /* method: SetPosition of class Sprite */
  5846. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetPosition01
  5847. static int tolua_UI_Sprite_SetPosition01(lua_State* tolua_S)
  5848. {
  5849. tolua_Error tolua_err;
  5850. if (
  5851. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  5852. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5853. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  5854. !tolua_isnoobj(tolua_S,4,&tolua_err)
  5855. )
  5856. goto tolua_lerror;
  5857. else
  5858. {
  5859. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  5860. float x = ((float) tolua_tonumber(tolua_S,2,0));
  5861. float y = ((float) tolua_tonumber(tolua_S,3,0));
  5862. #ifndef TOLUA_RELEASE
  5863. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPosition'", NULL);
  5864. #endif
  5865. {
  5866. self->SetPosition(x,y);
  5867. }
  5868. }
  5869. return 0;
  5870. tolua_lerror:
  5871. return tolua_UI_Sprite_SetPosition00(tolua_S);
  5872. }
  5873. #endif //#ifndef TOLUA_DISABLE
  5874. /* method: SetHotSpot of class Sprite */
  5875. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetHotSpot00
  5876. static int tolua_UI_Sprite_SetHotSpot00(lua_State* tolua_S)
  5877. {
  5878. #ifndef TOLUA_RELEASE
  5879. tolua_Error tolua_err;
  5880. if (
  5881. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  5882. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  5883. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5884. )
  5885. goto tolua_lerror;
  5886. else
  5887. #endif
  5888. {
  5889. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  5890. const IntVector2* hotSpot = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  5891. #ifndef TOLUA_RELEASE
  5892. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHotSpot'", NULL);
  5893. #endif
  5894. {
  5895. self->SetHotSpot(*hotSpot);
  5896. }
  5897. }
  5898. return 0;
  5899. #ifndef TOLUA_RELEASE
  5900. tolua_lerror:
  5901. tolua_error(tolua_S,"#ferror in function 'SetHotSpot'.",&tolua_err);
  5902. return 0;
  5903. #endif
  5904. }
  5905. #endif //#ifndef TOLUA_DISABLE
  5906. /* method: SetHotSpot of class Sprite */
  5907. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetHotSpot01
  5908. static int tolua_UI_Sprite_SetHotSpot01(lua_State* tolua_S)
  5909. {
  5910. tolua_Error tolua_err;
  5911. if (
  5912. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  5913. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5914. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  5915. !tolua_isnoobj(tolua_S,4,&tolua_err)
  5916. )
  5917. goto tolua_lerror;
  5918. else
  5919. {
  5920. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  5921. int x = ((int) tolua_tonumber(tolua_S,2,0));
  5922. int y = ((int) tolua_tonumber(tolua_S,3,0));
  5923. #ifndef TOLUA_RELEASE
  5924. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHotSpot'", NULL);
  5925. #endif
  5926. {
  5927. self->SetHotSpot(x,y);
  5928. }
  5929. }
  5930. return 0;
  5931. tolua_lerror:
  5932. return tolua_UI_Sprite_SetHotSpot00(tolua_S);
  5933. }
  5934. #endif //#ifndef TOLUA_DISABLE
  5935. /* method: SetScale of class Sprite */
  5936. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetScale00
  5937. static int tolua_UI_Sprite_SetScale00(lua_State* tolua_S)
  5938. {
  5939. #ifndef TOLUA_RELEASE
  5940. tolua_Error tolua_err;
  5941. if (
  5942. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  5943. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector2",0,&tolua_err)) ||
  5944. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5945. )
  5946. goto tolua_lerror;
  5947. else
  5948. #endif
  5949. {
  5950. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  5951. const Vector2* scale = ((const Vector2*) tolua_tousertype(tolua_S,2,0));
  5952. #ifndef TOLUA_RELEASE
  5953. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetScale'", NULL);
  5954. #endif
  5955. {
  5956. self->SetScale(*scale);
  5957. }
  5958. }
  5959. return 0;
  5960. #ifndef TOLUA_RELEASE
  5961. tolua_lerror:
  5962. tolua_error(tolua_S,"#ferror in function 'SetScale'.",&tolua_err);
  5963. return 0;
  5964. #endif
  5965. }
  5966. #endif //#ifndef TOLUA_DISABLE
  5967. /* method: SetScale of class Sprite */
  5968. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetScale01
  5969. static int tolua_UI_Sprite_SetScale01(lua_State* tolua_S)
  5970. {
  5971. tolua_Error tolua_err;
  5972. if (
  5973. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  5974. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5975. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  5976. !tolua_isnoobj(tolua_S,4,&tolua_err)
  5977. )
  5978. goto tolua_lerror;
  5979. else
  5980. {
  5981. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  5982. float x = ((float) tolua_tonumber(tolua_S,2,0));
  5983. float y = ((float) tolua_tonumber(tolua_S,3,0));
  5984. #ifndef TOLUA_RELEASE
  5985. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetScale'", NULL);
  5986. #endif
  5987. {
  5988. self->SetScale(x,y);
  5989. }
  5990. }
  5991. return 0;
  5992. tolua_lerror:
  5993. return tolua_UI_Sprite_SetScale00(tolua_S);
  5994. }
  5995. #endif //#ifndef TOLUA_DISABLE
  5996. /* method: SetScale of class Sprite */
  5997. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetScale02
  5998. static int tolua_UI_Sprite_SetScale02(lua_State* tolua_S)
  5999. {
  6000. tolua_Error tolua_err;
  6001. if (
  6002. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6003. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6004. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6005. )
  6006. goto tolua_lerror;
  6007. else
  6008. {
  6009. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6010. float scale = ((float) tolua_tonumber(tolua_S,2,0));
  6011. #ifndef TOLUA_RELEASE
  6012. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetScale'", NULL);
  6013. #endif
  6014. {
  6015. self->SetScale(scale);
  6016. }
  6017. }
  6018. return 0;
  6019. tolua_lerror:
  6020. return tolua_UI_Sprite_SetScale01(tolua_S);
  6021. }
  6022. #endif //#ifndef TOLUA_DISABLE
  6023. /* method: SetRotation of class Sprite */
  6024. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetRotation00
  6025. static int tolua_UI_Sprite_SetRotation00(lua_State* tolua_S)
  6026. {
  6027. #ifndef TOLUA_RELEASE
  6028. tolua_Error tolua_err;
  6029. if (
  6030. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6031. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6032. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6033. )
  6034. goto tolua_lerror;
  6035. else
  6036. #endif
  6037. {
  6038. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6039. float angle = ((float) tolua_tonumber(tolua_S,2,0));
  6040. #ifndef TOLUA_RELEASE
  6041. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRotation'", NULL);
  6042. #endif
  6043. {
  6044. self->SetRotation(angle);
  6045. }
  6046. }
  6047. return 0;
  6048. #ifndef TOLUA_RELEASE
  6049. tolua_lerror:
  6050. tolua_error(tolua_S,"#ferror in function 'SetRotation'.",&tolua_err);
  6051. return 0;
  6052. #endif
  6053. }
  6054. #endif //#ifndef TOLUA_DISABLE
  6055. /* method: SetTexture of class Sprite */
  6056. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetTexture00
  6057. static int tolua_UI_Sprite_SetTexture00(lua_State* tolua_S)
  6058. {
  6059. #ifndef TOLUA_RELEASE
  6060. tolua_Error tolua_err;
  6061. if (
  6062. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6063. !tolua_isusertype(tolua_S,2,"Texture",0,&tolua_err) ||
  6064. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6065. )
  6066. goto tolua_lerror;
  6067. else
  6068. #endif
  6069. {
  6070. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6071. Texture* texture = ((Texture*) tolua_tousertype(tolua_S,2,0));
  6072. #ifndef TOLUA_RELEASE
  6073. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTexture'", NULL);
  6074. #endif
  6075. {
  6076. self->SetTexture(texture);
  6077. }
  6078. }
  6079. return 0;
  6080. #ifndef TOLUA_RELEASE
  6081. tolua_lerror:
  6082. tolua_error(tolua_S,"#ferror in function 'SetTexture'.",&tolua_err);
  6083. return 0;
  6084. #endif
  6085. }
  6086. #endif //#ifndef TOLUA_DISABLE
  6087. /* method: SetImageRect of class Sprite */
  6088. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetImageRect00
  6089. static int tolua_UI_Sprite_SetImageRect00(lua_State* tolua_S)
  6090. {
  6091. #ifndef TOLUA_RELEASE
  6092. tolua_Error tolua_err;
  6093. if (
  6094. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6095. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntRect",0,&tolua_err)) ||
  6096. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6097. )
  6098. goto tolua_lerror;
  6099. else
  6100. #endif
  6101. {
  6102. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6103. const IntRect* rect = ((const IntRect*) tolua_tousertype(tolua_S,2,0));
  6104. #ifndef TOLUA_RELEASE
  6105. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetImageRect'", NULL);
  6106. #endif
  6107. {
  6108. self->SetImageRect(*rect);
  6109. }
  6110. }
  6111. return 0;
  6112. #ifndef TOLUA_RELEASE
  6113. tolua_lerror:
  6114. tolua_error(tolua_S,"#ferror in function 'SetImageRect'.",&tolua_err);
  6115. return 0;
  6116. #endif
  6117. }
  6118. #endif //#ifndef TOLUA_DISABLE
  6119. /* method: SetFullImageRect of class Sprite */
  6120. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetFullImageRect00
  6121. static int tolua_UI_Sprite_SetFullImageRect00(lua_State* tolua_S)
  6122. {
  6123. #ifndef TOLUA_RELEASE
  6124. tolua_Error tolua_err;
  6125. if (
  6126. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6127. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6128. )
  6129. goto tolua_lerror;
  6130. else
  6131. #endif
  6132. {
  6133. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6134. #ifndef TOLUA_RELEASE
  6135. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFullImageRect'", NULL);
  6136. #endif
  6137. {
  6138. self->SetFullImageRect();
  6139. }
  6140. }
  6141. return 0;
  6142. #ifndef TOLUA_RELEASE
  6143. tolua_lerror:
  6144. tolua_error(tolua_S,"#ferror in function 'SetFullImageRect'.",&tolua_err);
  6145. return 0;
  6146. #endif
  6147. }
  6148. #endif //#ifndef TOLUA_DISABLE
  6149. /* method: SetBlendMode of class Sprite */
  6150. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetBlendMode00
  6151. static int tolua_UI_Sprite_SetBlendMode00(lua_State* tolua_S)
  6152. {
  6153. #ifndef TOLUA_RELEASE
  6154. tolua_Error tolua_err;
  6155. if (
  6156. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6157. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6158. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6159. )
  6160. goto tolua_lerror;
  6161. else
  6162. #endif
  6163. {
  6164. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6165. BlendMode mode = ((BlendMode) (int) tolua_tonumber(tolua_S,2,0));
  6166. #ifndef TOLUA_RELEASE
  6167. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBlendMode'", NULL);
  6168. #endif
  6169. {
  6170. self->SetBlendMode(mode);
  6171. }
  6172. }
  6173. return 0;
  6174. #ifndef TOLUA_RELEASE
  6175. tolua_lerror:
  6176. tolua_error(tolua_S,"#ferror in function 'SetBlendMode'.",&tolua_err);
  6177. return 0;
  6178. #endif
  6179. }
  6180. #endif //#ifndef TOLUA_DISABLE
  6181. /* method: GetPosition of class Sprite */
  6182. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_GetPosition00
  6183. static int tolua_UI_Sprite_GetPosition00(lua_State* tolua_S)
  6184. {
  6185. #ifndef TOLUA_RELEASE
  6186. tolua_Error tolua_err;
  6187. if (
  6188. !tolua_isusertype(tolua_S,1,"const Sprite",0,&tolua_err) ||
  6189. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6190. )
  6191. goto tolua_lerror;
  6192. else
  6193. #endif
  6194. {
  6195. const Sprite* self = (const Sprite*) tolua_tousertype(tolua_S,1,0);
  6196. #ifndef TOLUA_RELEASE
  6197. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPosition'", NULL);
  6198. #endif
  6199. {
  6200. const Vector2& tolua_ret = (const Vector2&) self->GetPosition();
  6201. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector2");
  6202. }
  6203. }
  6204. return 1;
  6205. #ifndef TOLUA_RELEASE
  6206. tolua_lerror:
  6207. tolua_error(tolua_S,"#ferror in function 'GetPosition'.",&tolua_err);
  6208. return 0;
  6209. #endif
  6210. }
  6211. #endif //#ifndef TOLUA_DISABLE
  6212. /* method: GetHotSpot of class Sprite */
  6213. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_GetHotSpot00
  6214. static int tolua_UI_Sprite_GetHotSpot00(lua_State* tolua_S)
  6215. {
  6216. #ifndef TOLUA_RELEASE
  6217. tolua_Error tolua_err;
  6218. if (
  6219. !tolua_isusertype(tolua_S,1,"const Sprite",0,&tolua_err) ||
  6220. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6221. )
  6222. goto tolua_lerror;
  6223. else
  6224. #endif
  6225. {
  6226. const Sprite* self = (const Sprite*) tolua_tousertype(tolua_S,1,0);
  6227. #ifndef TOLUA_RELEASE
  6228. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHotSpot'", NULL);
  6229. #endif
  6230. {
  6231. const IntVector2& tolua_ret = (const IntVector2&) self->GetHotSpot();
  6232. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  6233. }
  6234. }
  6235. return 1;
  6236. #ifndef TOLUA_RELEASE
  6237. tolua_lerror:
  6238. tolua_error(tolua_S,"#ferror in function 'GetHotSpot'.",&tolua_err);
  6239. return 0;
  6240. #endif
  6241. }
  6242. #endif //#ifndef TOLUA_DISABLE
  6243. /* method: GetScale of class Sprite */
  6244. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_GetScale00
  6245. static int tolua_UI_Sprite_GetScale00(lua_State* tolua_S)
  6246. {
  6247. #ifndef TOLUA_RELEASE
  6248. tolua_Error tolua_err;
  6249. if (
  6250. !tolua_isusertype(tolua_S,1,"const Sprite",0,&tolua_err) ||
  6251. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6252. )
  6253. goto tolua_lerror;
  6254. else
  6255. #endif
  6256. {
  6257. const Sprite* self = (const Sprite*) tolua_tousertype(tolua_S,1,0);
  6258. #ifndef TOLUA_RELEASE
  6259. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetScale'", NULL);
  6260. #endif
  6261. {
  6262. const Vector2& tolua_ret = (const Vector2&) self->GetScale();
  6263. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector2");
  6264. }
  6265. }
  6266. return 1;
  6267. #ifndef TOLUA_RELEASE
  6268. tolua_lerror:
  6269. tolua_error(tolua_S,"#ferror in function 'GetScale'.",&tolua_err);
  6270. return 0;
  6271. #endif
  6272. }
  6273. #endif //#ifndef TOLUA_DISABLE
  6274. /* method: GetRotation of class Sprite */
  6275. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_GetRotation00
  6276. static int tolua_UI_Sprite_GetRotation00(lua_State* tolua_S)
  6277. {
  6278. #ifndef TOLUA_RELEASE
  6279. tolua_Error tolua_err;
  6280. if (
  6281. !tolua_isusertype(tolua_S,1,"const Sprite",0,&tolua_err) ||
  6282. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6283. )
  6284. goto tolua_lerror;
  6285. else
  6286. #endif
  6287. {
  6288. const Sprite* self = (const Sprite*) tolua_tousertype(tolua_S,1,0);
  6289. #ifndef TOLUA_RELEASE
  6290. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRotation'", NULL);
  6291. #endif
  6292. {
  6293. float tolua_ret = (float) self->GetRotation();
  6294. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6295. }
  6296. }
  6297. return 1;
  6298. #ifndef TOLUA_RELEASE
  6299. tolua_lerror:
  6300. tolua_error(tolua_S,"#ferror in function 'GetRotation'.",&tolua_err);
  6301. return 0;
  6302. #endif
  6303. }
  6304. #endif //#ifndef TOLUA_DISABLE
  6305. /* method: GetTexture of class Sprite */
  6306. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_GetTexture00
  6307. static int tolua_UI_Sprite_GetTexture00(lua_State* tolua_S)
  6308. {
  6309. #ifndef TOLUA_RELEASE
  6310. tolua_Error tolua_err;
  6311. if (
  6312. !tolua_isusertype(tolua_S,1,"const Sprite",0,&tolua_err) ||
  6313. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6314. )
  6315. goto tolua_lerror;
  6316. else
  6317. #endif
  6318. {
  6319. const Sprite* self = (const Sprite*) tolua_tousertype(tolua_S,1,0);
  6320. #ifndef TOLUA_RELEASE
  6321. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTexture'", NULL);
  6322. #endif
  6323. {
  6324. Texture* tolua_ret = (Texture*) self->GetTexture();
  6325. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture");
  6326. }
  6327. }
  6328. return 1;
  6329. #ifndef TOLUA_RELEASE
  6330. tolua_lerror:
  6331. tolua_error(tolua_S,"#ferror in function 'GetTexture'.",&tolua_err);
  6332. return 0;
  6333. #endif
  6334. }
  6335. #endif //#ifndef TOLUA_DISABLE
  6336. /* method: GetImageRect of class Sprite */
  6337. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_GetImageRect00
  6338. static int tolua_UI_Sprite_GetImageRect00(lua_State* tolua_S)
  6339. {
  6340. #ifndef TOLUA_RELEASE
  6341. tolua_Error tolua_err;
  6342. if (
  6343. !tolua_isusertype(tolua_S,1,"const Sprite",0,&tolua_err) ||
  6344. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6345. )
  6346. goto tolua_lerror;
  6347. else
  6348. #endif
  6349. {
  6350. const Sprite* self = (const Sprite*) tolua_tousertype(tolua_S,1,0);
  6351. #ifndef TOLUA_RELEASE
  6352. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetImageRect'", NULL);
  6353. #endif
  6354. {
  6355. const IntRect& tolua_ret = (const IntRect&) self->GetImageRect();
  6356. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntRect");
  6357. }
  6358. }
  6359. return 1;
  6360. #ifndef TOLUA_RELEASE
  6361. tolua_lerror:
  6362. tolua_error(tolua_S,"#ferror in function 'GetImageRect'.",&tolua_err);
  6363. return 0;
  6364. #endif
  6365. }
  6366. #endif //#ifndef TOLUA_DISABLE
  6367. /* method: GetBlendMode of class Sprite */
  6368. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_GetBlendMode00
  6369. static int tolua_UI_Sprite_GetBlendMode00(lua_State* tolua_S)
  6370. {
  6371. #ifndef TOLUA_RELEASE
  6372. tolua_Error tolua_err;
  6373. if (
  6374. !tolua_isusertype(tolua_S,1,"const Sprite",0,&tolua_err) ||
  6375. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6376. )
  6377. goto tolua_lerror;
  6378. else
  6379. #endif
  6380. {
  6381. const Sprite* self = (const Sprite*) tolua_tousertype(tolua_S,1,0);
  6382. #ifndef TOLUA_RELEASE
  6383. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBlendMode'", NULL);
  6384. #endif
  6385. {
  6386. BlendMode tolua_ret = (BlendMode) self->GetBlendMode();
  6387. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6388. }
  6389. }
  6390. return 1;
  6391. #ifndef TOLUA_RELEASE
  6392. tolua_lerror:
  6393. tolua_error(tolua_S,"#ferror in function 'GetBlendMode'.",&tolua_err);
  6394. return 0;
  6395. #endif
  6396. }
  6397. #endif //#ifndef TOLUA_DISABLE
  6398. /* method: SetTextureAttr of class Sprite */
  6399. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetTextureAttr00
  6400. static int tolua_UI_Sprite_SetTextureAttr00(lua_State* tolua_S)
  6401. {
  6402. #ifndef TOLUA_RELEASE
  6403. tolua_Error tolua_err;
  6404. if (
  6405. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6406. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ResourceRef",0,&tolua_err)) ||
  6407. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6408. )
  6409. goto tolua_lerror;
  6410. else
  6411. #endif
  6412. {
  6413. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6414. ResourceRef value = *((ResourceRef*) tolua_tousertype(tolua_S,2,0));
  6415. #ifndef TOLUA_RELEASE
  6416. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTextureAttr'", NULL);
  6417. #endif
  6418. {
  6419. self->SetTextureAttr(value);
  6420. }
  6421. }
  6422. return 0;
  6423. #ifndef TOLUA_RELEASE
  6424. tolua_lerror:
  6425. tolua_error(tolua_S,"#ferror in function 'SetTextureAttr'.",&tolua_err);
  6426. return 0;
  6427. #endif
  6428. }
  6429. #endif //#ifndef TOLUA_DISABLE
  6430. /* method: GetTextureAttr of class Sprite */
  6431. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_GetTextureAttr00
  6432. static int tolua_UI_Sprite_GetTextureAttr00(lua_State* tolua_S)
  6433. {
  6434. #ifndef TOLUA_RELEASE
  6435. tolua_Error tolua_err;
  6436. if (
  6437. !tolua_isusertype(tolua_S,1,"const Sprite",0,&tolua_err) ||
  6438. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6439. )
  6440. goto tolua_lerror;
  6441. else
  6442. #endif
  6443. {
  6444. const Sprite* self = (const Sprite*) tolua_tousertype(tolua_S,1,0);
  6445. #ifndef TOLUA_RELEASE
  6446. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTextureAttr'", NULL);
  6447. #endif
  6448. {
  6449. ResourceRef tolua_ret = (ResourceRef) self->GetTextureAttr();
  6450. {
  6451. #ifdef __cplusplus
  6452. void* tolua_obj = Mtolua_new((ResourceRef)(tolua_ret));
  6453. tolua_pushusertype(tolua_S,tolua_obj,"ResourceRef");
  6454. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6455. #else
  6456. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(ResourceRef));
  6457. tolua_pushusertype(tolua_S,tolua_obj,"ResourceRef");
  6458. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6459. #endif
  6460. }
  6461. }
  6462. }
  6463. return 1;
  6464. #ifndef TOLUA_RELEASE
  6465. tolua_lerror:
  6466. tolua_error(tolua_S,"#ferror in function 'GetTextureAttr'.",&tolua_err);
  6467. return 0;
  6468. #endif
  6469. }
  6470. #endif //#ifndef TOLUA_DISABLE
  6471. /* method: GetTransform of class Sprite */
  6472. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_GetTransform00
  6473. static int tolua_UI_Sprite_GetTransform00(lua_State* tolua_S)
  6474. {
  6475. #ifndef TOLUA_RELEASE
  6476. tolua_Error tolua_err;
  6477. if (
  6478. !tolua_isusertype(tolua_S,1,"const Sprite",0,&tolua_err) ||
  6479. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6480. )
  6481. goto tolua_lerror;
  6482. else
  6483. #endif
  6484. {
  6485. const Sprite* self = (const Sprite*) tolua_tousertype(tolua_S,1,0);
  6486. #ifndef TOLUA_RELEASE
  6487. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTransform'", NULL);
  6488. #endif
  6489. {
  6490. const Matrix3x4& tolua_ret = (const Matrix3x4&) self->GetTransform();
  6491. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Matrix3x4");
  6492. }
  6493. }
  6494. return 1;
  6495. #ifndef TOLUA_RELEASE
  6496. tolua_lerror:
  6497. tolua_error(tolua_S,"#ferror in function 'GetTransform'.",&tolua_err);
  6498. return 0;
  6499. #endif
  6500. }
  6501. #endif //#ifndef TOLUA_DISABLE
  6502. /* function: NewSprite */
  6503. #ifndef TOLUA_DISABLE_tolua_UI_Sprite00
  6504. static int tolua_UI_Sprite00(lua_State* tolua_S)
  6505. {
  6506. #ifndef TOLUA_RELEASE
  6507. tolua_Error tolua_err;
  6508. if (
  6509. !tolua_isnoobj(tolua_S,1,&tolua_err)
  6510. )
  6511. goto tolua_lerror;
  6512. else
  6513. #endif
  6514. {
  6515. {
  6516. Sprite* tolua_ret = (Sprite*) NewSprite();
  6517. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Sprite");
  6518. }
  6519. }
  6520. return 1;
  6521. #ifndef TOLUA_RELEASE
  6522. tolua_lerror:
  6523. tolua_error(tolua_S,"#ferror in function 'Sprite'.",&tolua_err);
  6524. return 0;
  6525. #endif
  6526. }
  6527. #endif //#ifndef TOLUA_DISABLE
  6528. /* method: SetFont of class Text */
  6529. #ifndef TOLUA_DISABLE_tolua_UI_Text_SetFont00
  6530. static int tolua_UI_Text_SetFont00(lua_State* tolua_S)
  6531. {
  6532. #ifndef TOLUA_RELEASE
  6533. tolua_Error tolua_err;
  6534. if (
  6535. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  6536. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  6537. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  6538. !tolua_isnoobj(tolua_S,4,&tolua_err)
  6539. )
  6540. goto tolua_lerror;
  6541. else
  6542. #endif
  6543. {
  6544. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  6545. const String* fontName = ((const String*) tolua_tousertype(tolua_S,2,0));
  6546. int size = ((int) tolua_tonumber(tolua_S,3,DEFAULT_FONT_SIZE));
  6547. #ifndef TOLUA_RELEASE
  6548. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFont'", NULL);
  6549. #endif
  6550. {
  6551. bool tolua_ret = (bool) self->SetFont(*fontName,size);
  6552. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  6553. }
  6554. }
  6555. return 1;
  6556. #ifndef TOLUA_RELEASE
  6557. tolua_lerror:
  6558. tolua_error(tolua_S,"#ferror in function 'SetFont'.",&tolua_err);
  6559. return 0;
  6560. #endif
  6561. }
  6562. #endif //#ifndef TOLUA_DISABLE
  6563. /* method: SetFont of class Text */
  6564. #ifndef TOLUA_DISABLE_tolua_UI_Text_SetFont01
  6565. static int tolua_UI_Text_SetFont01(lua_State* tolua_S)
  6566. {
  6567. tolua_Error tolua_err;
  6568. if (
  6569. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  6570. !tolua_isusertype(tolua_S,2,"Font",0,&tolua_err) ||
  6571. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  6572. !tolua_isnoobj(tolua_S,4,&tolua_err)
  6573. )
  6574. goto tolua_lerror;
  6575. else
  6576. {
  6577. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  6578. Font* font = ((Font*) tolua_tousertype(tolua_S,2,0));
  6579. int size = ((int) tolua_tonumber(tolua_S,3,DEFAULT_FONT_SIZE));
  6580. #ifndef TOLUA_RELEASE
  6581. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFont'", NULL);
  6582. #endif
  6583. {
  6584. bool tolua_ret = (bool) self->SetFont(font,size);
  6585. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  6586. }
  6587. }
  6588. return 1;
  6589. tolua_lerror:
  6590. return tolua_UI_Text_SetFont00(tolua_S);
  6591. }
  6592. #endif //#ifndef TOLUA_DISABLE
  6593. /* method: SetText of class Text */
  6594. #ifndef TOLUA_DISABLE_tolua_UI_Text_SetText00
  6595. static int tolua_UI_Text_SetText00(lua_State* tolua_S)
  6596. {
  6597. #ifndef TOLUA_RELEASE
  6598. tolua_Error tolua_err;
  6599. if (
  6600. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  6601. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  6602. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6603. )
  6604. goto tolua_lerror;
  6605. else
  6606. #endif
  6607. {
  6608. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  6609. const String* text = ((const String*) tolua_tousertype(tolua_S,2,0));
  6610. #ifndef TOLUA_RELEASE
  6611. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetText'", NULL);
  6612. #endif
  6613. {
  6614. self->SetText(*text);
  6615. }
  6616. }
  6617. return 0;
  6618. #ifndef TOLUA_RELEASE
  6619. tolua_lerror:
  6620. tolua_error(tolua_S,"#ferror in function 'SetText'.",&tolua_err);
  6621. return 0;
  6622. #endif
  6623. }
  6624. #endif //#ifndef TOLUA_DISABLE
  6625. /* method: SetTextAlignment of class Text */
  6626. #ifndef TOLUA_DISABLE_tolua_UI_Text_SetTextAlignment00
  6627. static int tolua_UI_Text_SetTextAlignment00(lua_State* tolua_S)
  6628. {
  6629. #ifndef TOLUA_RELEASE
  6630. tolua_Error tolua_err;
  6631. if (
  6632. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  6633. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6634. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6635. )
  6636. goto tolua_lerror;
  6637. else
  6638. #endif
  6639. {
  6640. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  6641. HorizontalAlignment align = ((HorizontalAlignment) (int) tolua_tonumber(tolua_S,2,0));
  6642. #ifndef TOLUA_RELEASE
  6643. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTextAlignment'", NULL);
  6644. #endif
  6645. {
  6646. self->SetTextAlignment(align);
  6647. }
  6648. }
  6649. return 0;
  6650. #ifndef TOLUA_RELEASE
  6651. tolua_lerror:
  6652. tolua_error(tolua_S,"#ferror in function 'SetTextAlignment'.",&tolua_err);
  6653. return 0;
  6654. #endif
  6655. }
  6656. #endif //#ifndef TOLUA_DISABLE
  6657. /* method: SetRowSpacing of class Text */
  6658. #ifndef TOLUA_DISABLE_tolua_UI_Text_SetRowSpacing00
  6659. static int tolua_UI_Text_SetRowSpacing00(lua_State* tolua_S)
  6660. {
  6661. #ifndef TOLUA_RELEASE
  6662. tolua_Error tolua_err;
  6663. if (
  6664. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  6665. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6666. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6667. )
  6668. goto tolua_lerror;
  6669. else
  6670. #endif
  6671. {
  6672. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  6673. float spacing = ((float) tolua_tonumber(tolua_S,2,0));
  6674. #ifndef TOLUA_RELEASE
  6675. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRowSpacing'", NULL);
  6676. #endif
  6677. {
  6678. self->SetRowSpacing(spacing);
  6679. }
  6680. }
  6681. return 0;
  6682. #ifndef TOLUA_RELEASE
  6683. tolua_lerror:
  6684. tolua_error(tolua_S,"#ferror in function 'SetRowSpacing'.",&tolua_err);
  6685. return 0;
  6686. #endif
  6687. }
  6688. #endif //#ifndef TOLUA_DISABLE
  6689. /* method: SetWordwrap of class Text */
  6690. #ifndef TOLUA_DISABLE_tolua_UI_Text_SetWordwrap00
  6691. static int tolua_UI_Text_SetWordwrap00(lua_State* tolua_S)
  6692. {
  6693. #ifndef TOLUA_RELEASE
  6694. tolua_Error tolua_err;
  6695. if (
  6696. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  6697. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  6698. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6699. )
  6700. goto tolua_lerror;
  6701. else
  6702. #endif
  6703. {
  6704. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  6705. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  6706. #ifndef TOLUA_RELEASE
  6707. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWordwrap'", NULL);
  6708. #endif
  6709. {
  6710. self->SetWordwrap(enable);
  6711. }
  6712. }
  6713. return 0;
  6714. #ifndef TOLUA_RELEASE
  6715. tolua_lerror:
  6716. tolua_error(tolua_S,"#ferror in function 'SetWordwrap'.",&tolua_err);
  6717. return 0;
  6718. #endif
  6719. }
  6720. #endif //#ifndef TOLUA_DISABLE
  6721. /* method: SetSelection of class Text */
  6722. #ifndef TOLUA_DISABLE_tolua_UI_Text_SetSelection00
  6723. static int tolua_UI_Text_SetSelection00(lua_State* tolua_S)
  6724. {
  6725. #ifndef TOLUA_RELEASE
  6726. tolua_Error tolua_err;
  6727. if (
  6728. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  6729. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6730. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  6731. !tolua_isnoobj(tolua_S,4,&tolua_err)
  6732. )
  6733. goto tolua_lerror;
  6734. else
  6735. #endif
  6736. {
  6737. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  6738. unsigned start = ((unsigned) tolua_tonumber(tolua_S,2,0));
  6739. unsigned length = ((unsigned) tolua_tonumber(tolua_S,3,M_MAX_UNSIGNED));
  6740. #ifndef TOLUA_RELEASE
  6741. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSelection'", NULL);
  6742. #endif
  6743. {
  6744. self->SetSelection(start,length);
  6745. }
  6746. }
  6747. return 0;
  6748. #ifndef TOLUA_RELEASE
  6749. tolua_lerror:
  6750. tolua_error(tolua_S,"#ferror in function 'SetSelection'.",&tolua_err);
  6751. return 0;
  6752. #endif
  6753. }
  6754. #endif //#ifndef TOLUA_DISABLE
  6755. /* method: ClearSelection of class Text */
  6756. #ifndef TOLUA_DISABLE_tolua_UI_Text_ClearSelection00
  6757. static int tolua_UI_Text_ClearSelection00(lua_State* tolua_S)
  6758. {
  6759. #ifndef TOLUA_RELEASE
  6760. tolua_Error tolua_err;
  6761. if (
  6762. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  6763. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6764. )
  6765. goto tolua_lerror;
  6766. else
  6767. #endif
  6768. {
  6769. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  6770. #ifndef TOLUA_RELEASE
  6771. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ClearSelection'", NULL);
  6772. #endif
  6773. {
  6774. self->ClearSelection();
  6775. }
  6776. }
  6777. return 0;
  6778. #ifndef TOLUA_RELEASE
  6779. tolua_lerror:
  6780. tolua_error(tolua_S,"#ferror in function 'ClearSelection'.",&tolua_err);
  6781. return 0;
  6782. #endif
  6783. }
  6784. #endif //#ifndef TOLUA_DISABLE
  6785. /* method: SetSelectionColor of class Text */
  6786. #ifndef TOLUA_DISABLE_tolua_UI_Text_SetSelectionColor00
  6787. static int tolua_UI_Text_SetSelectionColor00(lua_State* tolua_S)
  6788. {
  6789. #ifndef TOLUA_RELEASE
  6790. tolua_Error tolua_err;
  6791. if (
  6792. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  6793. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  6794. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6795. )
  6796. goto tolua_lerror;
  6797. else
  6798. #endif
  6799. {
  6800. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  6801. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  6802. #ifndef TOLUA_RELEASE
  6803. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSelectionColor'", NULL);
  6804. #endif
  6805. {
  6806. self->SetSelectionColor(*color);
  6807. }
  6808. }
  6809. return 0;
  6810. #ifndef TOLUA_RELEASE
  6811. tolua_lerror:
  6812. tolua_error(tolua_S,"#ferror in function 'SetSelectionColor'.",&tolua_err);
  6813. return 0;
  6814. #endif
  6815. }
  6816. #endif //#ifndef TOLUA_DISABLE
  6817. /* method: SetHoverColor of class Text */
  6818. #ifndef TOLUA_DISABLE_tolua_UI_Text_SetHoverColor00
  6819. static int tolua_UI_Text_SetHoverColor00(lua_State* tolua_S)
  6820. {
  6821. #ifndef TOLUA_RELEASE
  6822. tolua_Error tolua_err;
  6823. if (
  6824. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  6825. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  6826. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6827. )
  6828. goto tolua_lerror;
  6829. else
  6830. #endif
  6831. {
  6832. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  6833. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  6834. #ifndef TOLUA_RELEASE
  6835. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHoverColor'", NULL);
  6836. #endif
  6837. {
  6838. self->SetHoverColor(*color);
  6839. }
  6840. }
  6841. return 0;
  6842. #ifndef TOLUA_RELEASE
  6843. tolua_lerror:
  6844. tolua_error(tolua_S,"#ferror in function 'SetHoverColor'.",&tolua_err);
  6845. return 0;
  6846. #endif
  6847. }
  6848. #endif //#ifndef TOLUA_DISABLE
  6849. /* method: GetFont of class Text */
  6850. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetFont00
  6851. static int tolua_UI_Text_GetFont00(lua_State* tolua_S)
  6852. {
  6853. #ifndef TOLUA_RELEASE
  6854. tolua_Error tolua_err;
  6855. if (
  6856. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  6857. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6858. )
  6859. goto tolua_lerror;
  6860. else
  6861. #endif
  6862. {
  6863. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  6864. #ifndef TOLUA_RELEASE
  6865. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFont'", NULL);
  6866. #endif
  6867. {
  6868. Font* tolua_ret = (Font*) self->GetFont();
  6869. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Font");
  6870. }
  6871. }
  6872. return 1;
  6873. #ifndef TOLUA_RELEASE
  6874. tolua_lerror:
  6875. tolua_error(tolua_S,"#ferror in function 'GetFont'.",&tolua_err);
  6876. return 0;
  6877. #endif
  6878. }
  6879. #endif //#ifndef TOLUA_DISABLE
  6880. /* method: GetFontSize of class Text */
  6881. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetFontSize00
  6882. static int tolua_UI_Text_GetFontSize00(lua_State* tolua_S)
  6883. {
  6884. #ifndef TOLUA_RELEASE
  6885. tolua_Error tolua_err;
  6886. if (
  6887. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  6888. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6889. )
  6890. goto tolua_lerror;
  6891. else
  6892. #endif
  6893. {
  6894. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  6895. #ifndef TOLUA_RELEASE
  6896. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFontSize'", NULL);
  6897. #endif
  6898. {
  6899. int tolua_ret = (int) self->GetFontSize();
  6900. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6901. }
  6902. }
  6903. return 1;
  6904. #ifndef TOLUA_RELEASE
  6905. tolua_lerror:
  6906. tolua_error(tolua_S,"#ferror in function 'GetFontSize'.",&tolua_err);
  6907. return 0;
  6908. #endif
  6909. }
  6910. #endif //#ifndef TOLUA_DISABLE
  6911. /* method: GetText of class Text */
  6912. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetText00
  6913. static int tolua_UI_Text_GetText00(lua_State* tolua_S)
  6914. {
  6915. #ifndef TOLUA_RELEASE
  6916. tolua_Error tolua_err;
  6917. if (
  6918. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  6919. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6920. )
  6921. goto tolua_lerror;
  6922. else
  6923. #endif
  6924. {
  6925. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  6926. #ifndef TOLUA_RELEASE
  6927. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetText'", NULL);
  6928. #endif
  6929. {
  6930. const String& tolua_ret = (const String&) self->GetText();
  6931. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  6932. }
  6933. }
  6934. return 1;
  6935. #ifndef TOLUA_RELEASE
  6936. tolua_lerror:
  6937. tolua_error(tolua_S,"#ferror in function 'GetText'.",&tolua_err);
  6938. return 0;
  6939. #endif
  6940. }
  6941. #endif //#ifndef TOLUA_DISABLE
  6942. /* method: GetTextAlignment of class Text */
  6943. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetTextAlignment00
  6944. static int tolua_UI_Text_GetTextAlignment00(lua_State* tolua_S)
  6945. {
  6946. #ifndef TOLUA_RELEASE
  6947. tolua_Error tolua_err;
  6948. if (
  6949. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  6950. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6951. )
  6952. goto tolua_lerror;
  6953. else
  6954. #endif
  6955. {
  6956. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  6957. #ifndef TOLUA_RELEASE
  6958. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTextAlignment'", NULL);
  6959. #endif
  6960. {
  6961. HorizontalAlignment tolua_ret = (HorizontalAlignment) self->GetTextAlignment();
  6962. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6963. }
  6964. }
  6965. return 1;
  6966. #ifndef TOLUA_RELEASE
  6967. tolua_lerror:
  6968. tolua_error(tolua_S,"#ferror in function 'GetTextAlignment'.",&tolua_err);
  6969. return 0;
  6970. #endif
  6971. }
  6972. #endif //#ifndef TOLUA_DISABLE
  6973. /* method: GetRowSpacing of class Text */
  6974. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetRowSpacing00
  6975. static int tolua_UI_Text_GetRowSpacing00(lua_State* tolua_S)
  6976. {
  6977. #ifndef TOLUA_RELEASE
  6978. tolua_Error tolua_err;
  6979. if (
  6980. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  6981. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6982. )
  6983. goto tolua_lerror;
  6984. else
  6985. #endif
  6986. {
  6987. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  6988. #ifndef TOLUA_RELEASE
  6989. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRowSpacing'", NULL);
  6990. #endif
  6991. {
  6992. float tolua_ret = (float) self->GetRowSpacing();
  6993. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6994. }
  6995. }
  6996. return 1;
  6997. #ifndef TOLUA_RELEASE
  6998. tolua_lerror:
  6999. tolua_error(tolua_S,"#ferror in function 'GetRowSpacing'.",&tolua_err);
  7000. return 0;
  7001. #endif
  7002. }
  7003. #endif //#ifndef TOLUA_DISABLE
  7004. /* method: GetWordwrap of class Text */
  7005. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetWordwrap00
  7006. static int tolua_UI_Text_GetWordwrap00(lua_State* tolua_S)
  7007. {
  7008. #ifndef TOLUA_RELEASE
  7009. tolua_Error tolua_err;
  7010. if (
  7011. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7012. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7013. )
  7014. goto tolua_lerror;
  7015. else
  7016. #endif
  7017. {
  7018. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7019. #ifndef TOLUA_RELEASE
  7020. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWordwrap'", NULL);
  7021. #endif
  7022. {
  7023. bool tolua_ret = (bool) self->GetWordwrap();
  7024. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7025. }
  7026. }
  7027. return 1;
  7028. #ifndef TOLUA_RELEASE
  7029. tolua_lerror:
  7030. tolua_error(tolua_S,"#ferror in function 'GetWordwrap'.",&tolua_err);
  7031. return 0;
  7032. #endif
  7033. }
  7034. #endif //#ifndef TOLUA_DISABLE
  7035. /* method: GetSelectionStart of class Text */
  7036. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetSelectionStart00
  7037. static int tolua_UI_Text_GetSelectionStart00(lua_State* tolua_S)
  7038. {
  7039. #ifndef TOLUA_RELEASE
  7040. tolua_Error tolua_err;
  7041. if (
  7042. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7043. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7044. )
  7045. goto tolua_lerror;
  7046. else
  7047. #endif
  7048. {
  7049. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7050. #ifndef TOLUA_RELEASE
  7051. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSelectionStart'", NULL);
  7052. #endif
  7053. {
  7054. unsigned tolua_ret = (unsigned) self->GetSelectionStart();
  7055. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7056. }
  7057. }
  7058. return 1;
  7059. #ifndef TOLUA_RELEASE
  7060. tolua_lerror:
  7061. tolua_error(tolua_S,"#ferror in function 'GetSelectionStart'.",&tolua_err);
  7062. return 0;
  7063. #endif
  7064. }
  7065. #endif //#ifndef TOLUA_DISABLE
  7066. /* method: GetSelectionLength of class Text */
  7067. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetSelectionLength00
  7068. static int tolua_UI_Text_GetSelectionLength00(lua_State* tolua_S)
  7069. {
  7070. #ifndef TOLUA_RELEASE
  7071. tolua_Error tolua_err;
  7072. if (
  7073. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7074. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7075. )
  7076. goto tolua_lerror;
  7077. else
  7078. #endif
  7079. {
  7080. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7081. #ifndef TOLUA_RELEASE
  7082. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSelectionLength'", NULL);
  7083. #endif
  7084. {
  7085. unsigned tolua_ret = (unsigned) self->GetSelectionLength();
  7086. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7087. }
  7088. }
  7089. return 1;
  7090. #ifndef TOLUA_RELEASE
  7091. tolua_lerror:
  7092. tolua_error(tolua_S,"#ferror in function 'GetSelectionLength'.",&tolua_err);
  7093. return 0;
  7094. #endif
  7095. }
  7096. #endif //#ifndef TOLUA_DISABLE
  7097. /* method: GetSelectionColor of class Text */
  7098. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetSelectionColor00
  7099. static int tolua_UI_Text_GetSelectionColor00(lua_State* tolua_S)
  7100. {
  7101. #ifndef TOLUA_RELEASE
  7102. tolua_Error tolua_err;
  7103. if (
  7104. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7105. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7106. )
  7107. goto tolua_lerror;
  7108. else
  7109. #endif
  7110. {
  7111. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7112. #ifndef TOLUA_RELEASE
  7113. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSelectionColor'", NULL);
  7114. #endif
  7115. {
  7116. const Color& tolua_ret = (const Color&) self->GetSelectionColor();
  7117. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  7118. }
  7119. }
  7120. return 1;
  7121. #ifndef TOLUA_RELEASE
  7122. tolua_lerror:
  7123. tolua_error(tolua_S,"#ferror in function 'GetSelectionColor'.",&tolua_err);
  7124. return 0;
  7125. #endif
  7126. }
  7127. #endif //#ifndef TOLUA_DISABLE
  7128. /* method: GetHoverColor of class Text */
  7129. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetHoverColor00
  7130. static int tolua_UI_Text_GetHoverColor00(lua_State* tolua_S)
  7131. {
  7132. #ifndef TOLUA_RELEASE
  7133. tolua_Error tolua_err;
  7134. if (
  7135. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7136. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7137. )
  7138. goto tolua_lerror;
  7139. else
  7140. #endif
  7141. {
  7142. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7143. #ifndef TOLUA_RELEASE
  7144. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHoverColor'", NULL);
  7145. #endif
  7146. {
  7147. const Color& tolua_ret = (const Color&) self->GetHoverColor();
  7148. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  7149. }
  7150. }
  7151. return 1;
  7152. #ifndef TOLUA_RELEASE
  7153. tolua_lerror:
  7154. tolua_error(tolua_S,"#ferror in function 'GetHoverColor'.",&tolua_err);
  7155. return 0;
  7156. #endif
  7157. }
  7158. #endif //#ifndef TOLUA_DISABLE
  7159. /* method: GetRowHeight of class Text */
  7160. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetRowHeight00
  7161. static int tolua_UI_Text_GetRowHeight00(lua_State* tolua_S)
  7162. {
  7163. #ifndef TOLUA_RELEASE
  7164. tolua_Error tolua_err;
  7165. if (
  7166. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7167. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7168. )
  7169. goto tolua_lerror;
  7170. else
  7171. #endif
  7172. {
  7173. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7174. #ifndef TOLUA_RELEASE
  7175. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRowHeight'", NULL);
  7176. #endif
  7177. {
  7178. int tolua_ret = (int) self->GetRowHeight();
  7179. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7180. }
  7181. }
  7182. return 1;
  7183. #ifndef TOLUA_RELEASE
  7184. tolua_lerror:
  7185. tolua_error(tolua_S,"#ferror in function 'GetRowHeight'.",&tolua_err);
  7186. return 0;
  7187. #endif
  7188. }
  7189. #endif //#ifndef TOLUA_DISABLE
  7190. /* method: GetNumRows of class Text */
  7191. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetNumRows00
  7192. static int tolua_UI_Text_GetNumRows00(lua_State* tolua_S)
  7193. {
  7194. #ifndef TOLUA_RELEASE
  7195. tolua_Error tolua_err;
  7196. if (
  7197. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7198. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7199. )
  7200. goto tolua_lerror;
  7201. else
  7202. #endif
  7203. {
  7204. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7205. #ifndef TOLUA_RELEASE
  7206. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumRows'", NULL);
  7207. #endif
  7208. {
  7209. unsigned tolua_ret = (unsigned) self->GetNumRows();
  7210. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7211. }
  7212. }
  7213. return 1;
  7214. #ifndef TOLUA_RELEASE
  7215. tolua_lerror:
  7216. tolua_error(tolua_S,"#ferror in function 'GetNumRows'.",&tolua_err);
  7217. return 0;
  7218. #endif
  7219. }
  7220. #endif //#ifndef TOLUA_DISABLE
  7221. /* method: SetFont of class Text3D */
  7222. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetFont00
  7223. static int tolua_UI_Text3D_SetFont00(lua_State* tolua_S)
  7224. {
  7225. #ifndef TOLUA_RELEASE
  7226. tolua_Error tolua_err;
  7227. if (
  7228. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7229. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  7230. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  7231. !tolua_isnoobj(tolua_S,4,&tolua_err)
  7232. )
  7233. goto tolua_lerror;
  7234. else
  7235. #endif
  7236. {
  7237. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7238. const String* fontName = ((const String*) tolua_tousertype(tolua_S,2,0));
  7239. int size = ((int) tolua_tonumber(tolua_S,3,DEFAULT_FONT_SIZE));
  7240. #ifndef TOLUA_RELEASE
  7241. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFont'", NULL);
  7242. #endif
  7243. {
  7244. bool tolua_ret = (bool) self->SetFont(*fontName,size);
  7245. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7246. }
  7247. }
  7248. return 1;
  7249. #ifndef TOLUA_RELEASE
  7250. tolua_lerror:
  7251. tolua_error(tolua_S,"#ferror in function 'SetFont'.",&tolua_err);
  7252. return 0;
  7253. #endif
  7254. }
  7255. #endif //#ifndef TOLUA_DISABLE
  7256. /* method: SetFont of class Text3D */
  7257. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetFont01
  7258. static int tolua_UI_Text3D_SetFont01(lua_State* tolua_S)
  7259. {
  7260. tolua_Error tolua_err;
  7261. if (
  7262. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7263. !tolua_isusertype(tolua_S,2,"Font",0,&tolua_err) ||
  7264. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  7265. !tolua_isnoobj(tolua_S,4,&tolua_err)
  7266. )
  7267. goto tolua_lerror;
  7268. else
  7269. {
  7270. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7271. Font* font = ((Font*) tolua_tousertype(tolua_S,2,0));
  7272. int size = ((int) tolua_tonumber(tolua_S,3,DEFAULT_FONT_SIZE));
  7273. #ifndef TOLUA_RELEASE
  7274. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFont'", NULL);
  7275. #endif
  7276. {
  7277. bool tolua_ret = (bool) self->SetFont(font,size);
  7278. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7279. }
  7280. }
  7281. return 1;
  7282. tolua_lerror:
  7283. return tolua_UI_Text3D_SetFont00(tolua_S);
  7284. }
  7285. #endif //#ifndef TOLUA_DISABLE
  7286. /* method: SetMaterial of class Text3D */
  7287. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetMaterial00
  7288. static int tolua_UI_Text3D_SetMaterial00(lua_State* tolua_S)
  7289. {
  7290. #ifndef TOLUA_RELEASE
  7291. tolua_Error tolua_err;
  7292. if (
  7293. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7294. !tolua_isusertype(tolua_S,2,"Material",0,&tolua_err) ||
  7295. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7296. )
  7297. goto tolua_lerror;
  7298. else
  7299. #endif
  7300. {
  7301. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7302. Material* material = ((Material*) tolua_tousertype(tolua_S,2,0));
  7303. #ifndef TOLUA_RELEASE
  7304. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaterial'", NULL);
  7305. #endif
  7306. {
  7307. self->SetMaterial(material);
  7308. }
  7309. }
  7310. return 0;
  7311. #ifndef TOLUA_RELEASE
  7312. tolua_lerror:
  7313. tolua_error(tolua_S,"#ferror in function 'SetMaterial'.",&tolua_err);
  7314. return 0;
  7315. #endif
  7316. }
  7317. #endif //#ifndef TOLUA_DISABLE
  7318. /* method: SetText of class Text3D */
  7319. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetText00
  7320. static int tolua_UI_Text3D_SetText00(lua_State* tolua_S)
  7321. {
  7322. #ifndef TOLUA_RELEASE
  7323. tolua_Error tolua_err;
  7324. if (
  7325. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7326. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  7327. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7328. )
  7329. goto tolua_lerror;
  7330. else
  7331. #endif
  7332. {
  7333. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7334. const String* text = ((const String*) tolua_tousertype(tolua_S,2,0));
  7335. #ifndef TOLUA_RELEASE
  7336. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetText'", NULL);
  7337. #endif
  7338. {
  7339. self->SetText(*text);
  7340. }
  7341. }
  7342. return 0;
  7343. #ifndef TOLUA_RELEASE
  7344. tolua_lerror:
  7345. tolua_error(tolua_S,"#ferror in function 'SetText'.",&tolua_err);
  7346. return 0;
  7347. #endif
  7348. }
  7349. #endif //#ifndef TOLUA_DISABLE
  7350. /* method: SetAlignment of class Text3D */
  7351. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetAlignment00
  7352. static int tolua_UI_Text3D_SetAlignment00(lua_State* tolua_S)
  7353. {
  7354. #ifndef TOLUA_RELEASE
  7355. tolua_Error tolua_err;
  7356. if (
  7357. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7358. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7359. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  7360. !tolua_isnoobj(tolua_S,4,&tolua_err)
  7361. )
  7362. goto tolua_lerror;
  7363. else
  7364. #endif
  7365. {
  7366. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7367. HorizontalAlignment hAlign = ((HorizontalAlignment) (int) tolua_tonumber(tolua_S,2,0));
  7368. VerticalAlignment vAlign = ((VerticalAlignment) (int) tolua_tonumber(tolua_S,3,0));
  7369. #ifndef TOLUA_RELEASE
  7370. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAlignment'", NULL);
  7371. #endif
  7372. {
  7373. self->SetAlignment(hAlign,vAlign);
  7374. }
  7375. }
  7376. return 0;
  7377. #ifndef TOLUA_RELEASE
  7378. tolua_lerror:
  7379. tolua_error(tolua_S,"#ferror in function 'SetAlignment'.",&tolua_err);
  7380. return 0;
  7381. #endif
  7382. }
  7383. #endif //#ifndef TOLUA_DISABLE
  7384. /* method: SetHorizontalAlignment of class Text3D */
  7385. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetHorizontalAlignment00
  7386. static int tolua_UI_Text3D_SetHorizontalAlignment00(lua_State* tolua_S)
  7387. {
  7388. #ifndef TOLUA_RELEASE
  7389. tolua_Error tolua_err;
  7390. if (
  7391. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7392. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7393. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7394. )
  7395. goto tolua_lerror;
  7396. else
  7397. #endif
  7398. {
  7399. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7400. HorizontalAlignment align = ((HorizontalAlignment) (int) tolua_tonumber(tolua_S,2,0));
  7401. #ifndef TOLUA_RELEASE
  7402. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHorizontalAlignment'", NULL);
  7403. #endif
  7404. {
  7405. self->SetHorizontalAlignment(align);
  7406. }
  7407. }
  7408. return 0;
  7409. #ifndef TOLUA_RELEASE
  7410. tolua_lerror:
  7411. tolua_error(tolua_S,"#ferror in function 'SetHorizontalAlignment'.",&tolua_err);
  7412. return 0;
  7413. #endif
  7414. }
  7415. #endif //#ifndef TOLUA_DISABLE
  7416. /* method: SetVerticalAlignment of class Text3D */
  7417. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetVerticalAlignment00
  7418. static int tolua_UI_Text3D_SetVerticalAlignment00(lua_State* tolua_S)
  7419. {
  7420. #ifndef TOLUA_RELEASE
  7421. tolua_Error tolua_err;
  7422. if (
  7423. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7424. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7425. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7426. )
  7427. goto tolua_lerror;
  7428. else
  7429. #endif
  7430. {
  7431. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7432. VerticalAlignment align = ((VerticalAlignment) (int) tolua_tonumber(tolua_S,2,0));
  7433. #ifndef TOLUA_RELEASE
  7434. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetVerticalAlignment'", NULL);
  7435. #endif
  7436. {
  7437. self->SetVerticalAlignment(align);
  7438. }
  7439. }
  7440. return 0;
  7441. #ifndef TOLUA_RELEASE
  7442. tolua_lerror:
  7443. tolua_error(tolua_S,"#ferror in function 'SetVerticalAlignment'.",&tolua_err);
  7444. return 0;
  7445. #endif
  7446. }
  7447. #endif //#ifndef TOLUA_DISABLE
  7448. /* method: SetTextAlignment of class Text3D */
  7449. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetTextAlignment00
  7450. static int tolua_UI_Text3D_SetTextAlignment00(lua_State* tolua_S)
  7451. {
  7452. #ifndef TOLUA_RELEASE
  7453. tolua_Error tolua_err;
  7454. if (
  7455. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7456. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7457. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7458. )
  7459. goto tolua_lerror;
  7460. else
  7461. #endif
  7462. {
  7463. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7464. HorizontalAlignment align = ((HorizontalAlignment) (int) tolua_tonumber(tolua_S,2,0));
  7465. #ifndef TOLUA_RELEASE
  7466. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTextAlignment'", NULL);
  7467. #endif
  7468. {
  7469. self->SetTextAlignment(align);
  7470. }
  7471. }
  7472. return 0;
  7473. #ifndef TOLUA_RELEASE
  7474. tolua_lerror:
  7475. tolua_error(tolua_S,"#ferror in function 'SetTextAlignment'.",&tolua_err);
  7476. return 0;
  7477. #endif
  7478. }
  7479. #endif //#ifndef TOLUA_DISABLE
  7480. /* method: SetRowSpacing of class Text3D */
  7481. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetRowSpacing00
  7482. static int tolua_UI_Text3D_SetRowSpacing00(lua_State* tolua_S)
  7483. {
  7484. #ifndef TOLUA_RELEASE
  7485. tolua_Error tolua_err;
  7486. if (
  7487. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7488. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7489. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7490. )
  7491. goto tolua_lerror;
  7492. else
  7493. #endif
  7494. {
  7495. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7496. float spacing = ((float) tolua_tonumber(tolua_S,2,0));
  7497. #ifndef TOLUA_RELEASE
  7498. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRowSpacing'", NULL);
  7499. #endif
  7500. {
  7501. self->SetRowSpacing(spacing);
  7502. }
  7503. }
  7504. return 0;
  7505. #ifndef TOLUA_RELEASE
  7506. tolua_lerror:
  7507. tolua_error(tolua_S,"#ferror in function 'SetRowSpacing'.",&tolua_err);
  7508. return 0;
  7509. #endif
  7510. }
  7511. #endif //#ifndef TOLUA_DISABLE
  7512. /* method: SetWordwrap of class Text3D */
  7513. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetWordwrap00
  7514. static int tolua_UI_Text3D_SetWordwrap00(lua_State* tolua_S)
  7515. {
  7516. #ifndef TOLUA_RELEASE
  7517. tolua_Error tolua_err;
  7518. if (
  7519. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7520. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  7521. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7522. )
  7523. goto tolua_lerror;
  7524. else
  7525. #endif
  7526. {
  7527. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7528. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  7529. #ifndef TOLUA_RELEASE
  7530. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWordwrap'", NULL);
  7531. #endif
  7532. {
  7533. self->SetWordwrap(enable);
  7534. }
  7535. }
  7536. return 0;
  7537. #ifndef TOLUA_RELEASE
  7538. tolua_lerror:
  7539. tolua_error(tolua_S,"#ferror in function 'SetWordwrap'.",&tolua_err);
  7540. return 0;
  7541. #endif
  7542. }
  7543. #endif //#ifndef TOLUA_DISABLE
  7544. /* method: SetWidth of class Text3D */
  7545. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetWidth00
  7546. static int tolua_UI_Text3D_SetWidth00(lua_State* tolua_S)
  7547. {
  7548. #ifndef TOLUA_RELEASE
  7549. tolua_Error tolua_err;
  7550. if (
  7551. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7552. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7553. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7554. )
  7555. goto tolua_lerror;
  7556. else
  7557. #endif
  7558. {
  7559. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7560. int width = ((int) tolua_tonumber(tolua_S,2,0));
  7561. #ifndef TOLUA_RELEASE
  7562. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWidth'", NULL);
  7563. #endif
  7564. {
  7565. self->SetWidth(width);
  7566. }
  7567. }
  7568. return 0;
  7569. #ifndef TOLUA_RELEASE
  7570. tolua_lerror:
  7571. tolua_error(tolua_S,"#ferror in function 'SetWidth'.",&tolua_err);
  7572. return 0;
  7573. #endif
  7574. }
  7575. #endif //#ifndef TOLUA_DISABLE
  7576. /* method: SetColor of class Text3D */
  7577. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetColor00
  7578. static int tolua_UI_Text3D_SetColor00(lua_State* tolua_S)
  7579. {
  7580. #ifndef TOLUA_RELEASE
  7581. tolua_Error tolua_err;
  7582. if (
  7583. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7584. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  7585. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7586. )
  7587. goto tolua_lerror;
  7588. else
  7589. #endif
  7590. {
  7591. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7592. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  7593. #ifndef TOLUA_RELEASE
  7594. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetColor'", NULL);
  7595. #endif
  7596. {
  7597. self->SetColor(*color);
  7598. }
  7599. }
  7600. return 0;
  7601. #ifndef TOLUA_RELEASE
  7602. tolua_lerror:
  7603. tolua_error(tolua_S,"#ferror in function 'SetColor'.",&tolua_err);
  7604. return 0;
  7605. #endif
  7606. }
  7607. #endif //#ifndef TOLUA_DISABLE
  7608. /* method: SetColor of class Text3D */
  7609. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetColor01
  7610. static int tolua_UI_Text3D_SetColor01(lua_State* tolua_S)
  7611. {
  7612. tolua_Error tolua_err;
  7613. if (
  7614. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7615. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7616. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Color",0,&tolua_err)) ||
  7617. !tolua_isnoobj(tolua_S,4,&tolua_err)
  7618. )
  7619. goto tolua_lerror;
  7620. else
  7621. {
  7622. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7623. Corner corner = ((Corner) (int) tolua_tonumber(tolua_S,2,0));
  7624. const Color* color = ((const Color*) tolua_tousertype(tolua_S,3,0));
  7625. #ifndef TOLUA_RELEASE
  7626. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetColor'", NULL);
  7627. #endif
  7628. {
  7629. self->SetColor(corner,*color);
  7630. }
  7631. }
  7632. return 0;
  7633. tolua_lerror:
  7634. return tolua_UI_Text3D_SetColor00(tolua_S);
  7635. }
  7636. #endif //#ifndef TOLUA_DISABLE
  7637. /* method: SetOpacity of class Text3D */
  7638. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetOpacity00
  7639. static int tolua_UI_Text3D_SetOpacity00(lua_State* tolua_S)
  7640. {
  7641. #ifndef TOLUA_RELEASE
  7642. tolua_Error tolua_err;
  7643. if (
  7644. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7645. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7646. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7647. )
  7648. goto tolua_lerror;
  7649. else
  7650. #endif
  7651. {
  7652. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7653. float opacity = ((float) tolua_tonumber(tolua_S,2,0));
  7654. #ifndef TOLUA_RELEASE
  7655. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOpacity'", NULL);
  7656. #endif
  7657. {
  7658. self->SetOpacity(opacity);
  7659. }
  7660. }
  7661. return 0;
  7662. #ifndef TOLUA_RELEASE
  7663. tolua_lerror:
  7664. tolua_error(tolua_S,"#ferror in function 'SetOpacity'.",&tolua_err);
  7665. return 0;
  7666. #endif
  7667. }
  7668. #endif //#ifndef TOLUA_DISABLE
  7669. /* method: SetFaceCamera of class Text3D */
  7670. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetFaceCamera00
  7671. static int tolua_UI_Text3D_SetFaceCamera00(lua_State* tolua_S)
  7672. {
  7673. #ifndef TOLUA_RELEASE
  7674. tolua_Error tolua_err;
  7675. if (
  7676. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7677. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  7678. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7679. )
  7680. goto tolua_lerror;
  7681. else
  7682. #endif
  7683. {
  7684. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7685. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  7686. #ifndef TOLUA_RELEASE
  7687. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFaceCamera'", NULL);
  7688. #endif
  7689. {
  7690. self->SetFaceCamera(enable);
  7691. }
  7692. }
  7693. return 0;
  7694. #ifndef TOLUA_RELEASE
  7695. tolua_lerror:
  7696. tolua_error(tolua_S,"#ferror in function 'SetFaceCamera'.",&tolua_err);
  7697. return 0;
  7698. #endif
  7699. }
  7700. #endif //#ifndef TOLUA_DISABLE
  7701. /* method: GetFont of class Text3D */
  7702. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetFont00
  7703. static int tolua_UI_Text3D_GetFont00(lua_State* tolua_S)
  7704. {
  7705. #ifndef TOLUA_RELEASE
  7706. tolua_Error tolua_err;
  7707. if (
  7708. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  7709. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7710. )
  7711. goto tolua_lerror;
  7712. else
  7713. #endif
  7714. {
  7715. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  7716. #ifndef TOLUA_RELEASE
  7717. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFont'", NULL);
  7718. #endif
  7719. {
  7720. Font* tolua_ret = (Font*) self->GetFont();
  7721. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Font");
  7722. }
  7723. }
  7724. return 1;
  7725. #ifndef TOLUA_RELEASE
  7726. tolua_lerror:
  7727. tolua_error(tolua_S,"#ferror in function 'GetFont'.",&tolua_err);
  7728. return 0;
  7729. #endif
  7730. }
  7731. #endif //#ifndef TOLUA_DISABLE
  7732. /* method: GetMaterial of class Text3D */
  7733. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetMaterial00
  7734. static int tolua_UI_Text3D_GetMaterial00(lua_State* tolua_S)
  7735. {
  7736. #ifndef TOLUA_RELEASE
  7737. tolua_Error tolua_err;
  7738. if (
  7739. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  7740. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7741. )
  7742. goto tolua_lerror;
  7743. else
  7744. #endif
  7745. {
  7746. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  7747. #ifndef TOLUA_RELEASE
  7748. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaterial'", NULL);
  7749. #endif
  7750. {
  7751. Material* tolua_ret = (Material*) self->GetMaterial();
  7752. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Material");
  7753. }
  7754. }
  7755. return 1;
  7756. #ifndef TOLUA_RELEASE
  7757. tolua_lerror:
  7758. tolua_error(tolua_S,"#ferror in function 'GetMaterial'.",&tolua_err);
  7759. return 0;
  7760. #endif
  7761. }
  7762. #endif //#ifndef TOLUA_DISABLE
  7763. /* method: GetFontSize of class Text3D */
  7764. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetFontSize00
  7765. static int tolua_UI_Text3D_GetFontSize00(lua_State* tolua_S)
  7766. {
  7767. #ifndef TOLUA_RELEASE
  7768. tolua_Error tolua_err;
  7769. if (
  7770. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  7771. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7772. )
  7773. goto tolua_lerror;
  7774. else
  7775. #endif
  7776. {
  7777. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  7778. #ifndef TOLUA_RELEASE
  7779. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFontSize'", NULL);
  7780. #endif
  7781. {
  7782. int tolua_ret = (int) self->GetFontSize();
  7783. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7784. }
  7785. }
  7786. return 1;
  7787. #ifndef TOLUA_RELEASE
  7788. tolua_lerror:
  7789. tolua_error(tolua_S,"#ferror in function 'GetFontSize'.",&tolua_err);
  7790. return 0;
  7791. #endif
  7792. }
  7793. #endif //#ifndef TOLUA_DISABLE
  7794. /* method: GetText of class Text3D */
  7795. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetText00
  7796. static int tolua_UI_Text3D_GetText00(lua_State* tolua_S)
  7797. {
  7798. #ifndef TOLUA_RELEASE
  7799. tolua_Error tolua_err;
  7800. if (
  7801. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  7802. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7803. )
  7804. goto tolua_lerror;
  7805. else
  7806. #endif
  7807. {
  7808. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  7809. #ifndef TOLUA_RELEASE
  7810. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetText'", NULL);
  7811. #endif
  7812. {
  7813. const String& tolua_ret = (const String&) self->GetText();
  7814. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  7815. }
  7816. }
  7817. return 1;
  7818. #ifndef TOLUA_RELEASE
  7819. tolua_lerror:
  7820. tolua_error(tolua_S,"#ferror in function 'GetText'.",&tolua_err);
  7821. return 0;
  7822. #endif
  7823. }
  7824. #endif //#ifndef TOLUA_DISABLE
  7825. /* method: GetTextAlignment of class Text3D */
  7826. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetTextAlignment00
  7827. static int tolua_UI_Text3D_GetTextAlignment00(lua_State* tolua_S)
  7828. {
  7829. #ifndef TOLUA_RELEASE
  7830. tolua_Error tolua_err;
  7831. if (
  7832. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  7833. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7834. )
  7835. goto tolua_lerror;
  7836. else
  7837. #endif
  7838. {
  7839. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  7840. #ifndef TOLUA_RELEASE
  7841. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTextAlignment'", NULL);
  7842. #endif
  7843. {
  7844. HorizontalAlignment tolua_ret = (HorizontalAlignment) self->GetTextAlignment();
  7845. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7846. }
  7847. }
  7848. return 1;
  7849. #ifndef TOLUA_RELEASE
  7850. tolua_lerror:
  7851. tolua_error(tolua_S,"#ferror in function 'GetTextAlignment'.",&tolua_err);
  7852. return 0;
  7853. #endif
  7854. }
  7855. #endif //#ifndef TOLUA_DISABLE
  7856. /* method: GetHorizontalAlignment of class Text3D */
  7857. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetHorizontalAlignment00
  7858. static int tolua_UI_Text3D_GetHorizontalAlignment00(lua_State* tolua_S)
  7859. {
  7860. #ifndef TOLUA_RELEASE
  7861. tolua_Error tolua_err;
  7862. if (
  7863. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  7864. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7865. )
  7866. goto tolua_lerror;
  7867. else
  7868. #endif
  7869. {
  7870. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  7871. #ifndef TOLUA_RELEASE
  7872. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHorizontalAlignment'", NULL);
  7873. #endif
  7874. {
  7875. HorizontalAlignment tolua_ret = (HorizontalAlignment) self->GetHorizontalAlignment();
  7876. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7877. }
  7878. }
  7879. return 1;
  7880. #ifndef TOLUA_RELEASE
  7881. tolua_lerror:
  7882. tolua_error(tolua_S,"#ferror in function 'GetHorizontalAlignment'.",&tolua_err);
  7883. return 0;
  7884. #endif
  7885. }
  7886. #endif //#ifndef TOLUA_DISABLE
  7887. /* method: GetVerticalAlignment of class Text3D */
  7888. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetVerticalAlignment00
  7889. static int tolua_UI_Text3D_GetVerticalAlignment00(lua_State* tolua_S)
  7890. {
  7891. #ifndef TOLUA_RELEASE
  7892. tolua_Error tolua_err;
  7893. if (
  7894. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  7895. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7896. )
  7897. goto tolua_lerror;
  7898. else
  7899. #endif
  7900. {
  7901. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  7902. #ifndef TOLUA_RELEASE
  7903. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVerticalAlignment'", NULL);
  7904. #endif
  7905. {
  7906. VerticalAlignment tolua_ret = (VerticalAlignment) self->GetVerticalAlignment();
  7907. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7908. }
  7909. }
  7910. return 1;
  7911. #ifndef TOLUA_RELEASE
  7912. tolua_lerror:
  7913. tolua_error(tolua_S,"#ferror in function 'GetVerticalAlignment'.",&tolua_err);
  7914. return 0;
  7915. #endif
  7916. }
  7917. #endif //#ifndef TOLUA_DISABLE
  7918. /* method: GetRowSpacing of class Text3D */
  7919. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetRowSpacing00
  7920. static int tolua_UI_Text3D_GetRowSpacing00(lua_State* tolua_S)
  7921. {
  7922. #ifndef TOLUA_RELEASE
  7923. tolua_Error tolua_err;
  7924. if (
  7925. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  7926. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7927. )
  7928. goto tolua_lerror;
  7929. else
  7930. #endif
  7931. {
  7932. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  7933. #ifndef TOLUA_RELEASE
  7934. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRowSpacing'", NULL);
  7935. #endif
  7936. {
  7937. float tolua_ret = (float) self->GetRowSpacing();
  7938. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7939. }
  7940. }
  7941. return 1;
  7942. #ifndef TOLUA_RELEASE
  7943. tolua_lerror:
  7944. tolua_error(tolua_S,"#ferror in function 'GetRowSpacing'.",&tolua_err);
  7945. return 0;
  7946. #endif
  7947. }
  7948. #endif //#ifndef TOLUA_DISABLE
  7949. /* method: GetWordwrap of class Text3D */
  7950. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetWordwrap00
  7951. static int tolua_UI_Text3D_GetWordwrap00(lua_State* tolua_S)
  7952. {
  7953. #ifndef TOLUA_RELEASE
  7954. tolua_Error tolua_err;
  7955. if (
  7956. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  7957. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7958. )
  7959. goto tolua_lerror;
  7960. else
  7961. #endif
  7962. {
  7963. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  7964. #ifndef TOLUA_RELEASE
  7965. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWordwrap'", NULL);
  7966. #endif
  7967. {
  7968. bool tolua_ret = (bool) self->GetWordwrap();
  7969. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7970. }
  7971. }
  7972. return 1;
  7973. #ifndef TOLUA_RELEASE
  7974. tolua_lerror:
  7975. tolua_error(tolua_S,"#ferror in function 'GetWordwrap'.",&tolua_err);
  7976. return 0;
  7977. #endif
  7978. }
  7979. #endif //#ifndef TOLUA_DISABLE
  7980. /* method: GetWidth of class Text3D */
  7981. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetWidth00
  7982. static int tolua_UI_Text3D_GetWidth00(lua_State* tolua_S)
  7983. {
  7984. #ifndef TOLUA_RELEASE
  7985. tolua_Error tolua_err;
  7986. if (
  7987. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  7988. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7989. )
  7990. goto tolua_lerror;
  7991. else
  7992. #endif
  7993. {
  7994. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  7995. #ifndef TOLUA_RELEASE
  7996. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWidth'", NULL);
  7997. #endif
  7998. {
  7999. int tolua_ret = (int) self->GetWidth();
  8000. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8001. }
  8002. }
  8003. return 1;
  8004. #ifndef TOLUA_RELEASE
  8005. tolua_lerror:
  8006. tolua_error(tolua_S,"#ferror in function 'GetWidth'.",&tolua_err);
  8007. return 0;
  8008. #endif
  8009. }
  8010. #endif //#ifndef TOLUA_DISABLE
  8011. /* method: GetRowHeight of class Text3D */
  8012. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetRowHeight00
  8013. static int tolua_UI_Text3D_GetRowHeight00(lua_State* tolua_S)
  8014. {
  8015. #ifndef TOLUA_RELEASE
  8016. tolua_Error tolua_err;
  8017. if (
  8018. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8019. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8020. )
  8021. goto tolua_lerror;
  8022. else
  8023. #endif
  8024. {
  8025. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8026. #ifndef TOLUA_RELEASE
  8027. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRowHeight'", NULL);
  8028. #endif
  8029. {
  8030. int tolua_ret = (int) self->GetRowHeight();
  8031. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8032. }
  8033. }
  8034. return 1;
  8035. #ifndef TOLUA_RELEASE
  8036. tolua_lerror:
  8037. tolua_error(tolua_S,"#ferror in function 'GetRowHeight'.",&tolua_err);
  8038. return 0;
  8039. #endif
  8040. }
  8041. #endif //#ifndef TOLUA_DISABLE
  8042. /* method: GetNumRows of class Text3D */
  8043. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetNumRows00
  8044. static int tolua_UI_Text3D_GetNumRows00(lua_State* tolua_S)
  8045. {
  8046. #ifndef TOLUA_RELEASE
  8047. tolua_Error tolua_err;
  8048. if (
  8049. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8050. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8051. )
  8052. goto tolua_lerror;
  8053. else
  8054. #endif
  8055. {
  8056. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8057. #ifndef TOLUA_RELEASE
  8058. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumRows'", NULL);
  8059. #endif
  8060. {
  8061. unsigned tolua_ret = (unsigned) self->GetNumRows();
  8062. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8063. }
  8064. }
  8065. return 1;
  8066. #ifndef TOLUA_RELEASE
  8067. tolua_lerror:
  8068. tolua_error(tolua_S,"#ferror in function 'GetNumRows'.",&tolua_err);
  8069. return 0;
  8070. #endif
  8071. }
  8072. #endif //#ifndef TOLUA_DISABLE
  8073. /* method: GetRowWidths of class Text3D */
  8074. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetRowWidths00
  8075. static int tolua_UI_Text3D_GetRowWidths00(lua_State* tolua_S)
  8076. {
  8077. #ifndef TOLUA_RELEASE
  8078. tolua_Error tolua_err;
  8079. if (
  8080. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8081. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8082. )
  8083. goto tolua_lerror;
  8084. else
  8085. #endif
  8086. {
  8087. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8088. #ifndef TOLUA_RELEASE
  8089. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRowWidths'", NULL);
  8090. #endif
  8091. {
  8092. const PODVector<int>& tolua_ret = (const PODVector<int>&) self->GetRowWidths();
  8093. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const PODVector<int>");
  8094. }
  8095. }
  8096. return 1;
  8097. #ifndef TOLUA_RELEASE
  8098. tolua_lerror:
  8099. tolua_error(tolua_S,"#ferror in function 'GetRowWidths'.",&tolua_err);
  8100. return 0;
  8101. #endif
  8102. }
  8103. #endif //#ifndef TOLUA_DISABLE
  8104. /* method: GetColor of class Text3D */
  8105. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetColor00
  8106. static int tolua_UI_Text3D_GetColor00(lua_State* tolua_S)
  8107. {
  8108. #ifndef TOLUA_RELEASE
  8109. tolua_Error tolua_err;
  8110. if (
  8111. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8112. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8113. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8114. )
  8115. goto tolua_lerror;
  8116. else
  8117. #endif
  8118. {
  8119. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8120. Corner corner = ((Corner) (int) tolua_tonumber(tolua_S,2,0));
  8121. #ifndef TOLUA_RELEASE
  8122. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetColor'", NULL);
  8123. #endif
  8124. {
  8125. const Color& tolua_ret = (const Color&) self->GetColor(corner);
  8126. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  8127. }
  8128. }
  8129. return 1;
  8130. #ifndef TOLUA_RELEASE
  8131. tolua_lerror:
  8132. tolua_error(tolua_S,"#ferror in function 'GetColor'.",&tolua_err);
  8133. return 0;
  8134. #endif
  8135. }
  8136. #endif //#ifndef TOLUA_DISABLE
  8137. /* method: GetOpacity of class Text3D */
  8138. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetOpacity00
  8139. static int tolua_UI_Text3D_GetOpacity00(lua_State* tolua_S)
  8140. {
  8141. #ifndef TOLUA_RELEASE
  8142. tolua_Error tolua_err;
  8143. if (
  8144. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8145. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8146. )
  8147. goto tolua_lerror;
  8148. else
  8149. #endif
  8150. {
  8151. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8152. #ifndef TOLUA_RELEASE
  8153. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOpacity'", NULL);
  8154. #endif
  8155. {
  8156. float tolua_ret = (float) self->GetOpacity();
  8157. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8158. }
  8159. }
  8160. return 1;
  8161. #ifndef TOLUA_RELEASE
  8162. tolua_lerror:
  8163. tolua_error(tolua_S,"#ferror in function 'GetOpacity'.",&tolua_err);
  8164. return 0;
  8165. #endif
  8166. }
  8167. #endif //#ifndef TOLUA_DISABLE
  8168. /* method: GetFaceCamera of class Text3D */
  8169. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetFaceCamera00
  8170. static int tolua_UI_Text3D_GetFaceCamera00(lua_State* tolua_S)
  8171. {
  8172. #ifndef TOLUA_RELEASE
  8173. tolua_Error tolua_err;
  8174. if (
  8175. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8176. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8177. )
  8178. goto tolua_lerror;
  8179. else
  8180. #endif
  8181. {
  8182. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8183. #ifndef TOLUA_RELEASE
  8184. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFaceCamera'", NULL);
  8185. #endif
  8186. {
  8187. bool tolua_ret = (bool) self->GetFaceCamera();
  8188. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  8189. }
  8190. }
  8191. return 1;
  8192. #ifndef TOLUA_RELEASE
  8193. tolua_lerror:
  8194. tolua_error(tolua_S,"#ferror in function 'GetFaceCamera'.",&tolua_err);
  8195. return 0;
  8196. #endif
  8197. }
  8198. #endif //#ifndef TOLUA_DISABLE
  8199. /* method: SetCursor of class UI */
  8200. #ifndef TOLUA_DISABLE_tolua_UI_UI_SetCursor00
  8201. static int tolua_UI_UI_SetCursor00(lua_State* tolua_S)
  8202. {
  8203. #ifndef TOLUA_RELEASE
  8204. tolua_Error tolua_err;
  8205. if (
  8206. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8207. !tolua_isusertype(tolua_S,2,"Cursor",0,&tolua_err) ||
  8208. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8209. )
  8210. goto tolua_lerror;
  8211. else
  8212. #endif
  8213. {
  8214. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8215. Cursor* cursor = ((Cursor*) tolua_tousertype(tolua_S,2,0));
  8216. #ifndef TOLUA_RELEASE
  8217. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCursor'", NULL);
  8218. #endif
  8219. {
  8220. self->SetCursor(cursor);
  8221. }
  8222. }
  8223. return 0;
  8224. #ifndef TOLUA_RELEASE
  8225. tolua_lerror:
  8226. tolua_error(tolua_S,"#ferror in function 'SetCursor'.",&tolua_err);
  8227. return 0;
  8228. #endif
  8229. }
  8230. #endif //#ifndef TOLUA_DISABLE
  8231. /* method: SetFocusElement of class UI */
  8232. #ifndef TOLUA_DISABLE_tolua_UI_UI_SetFocusElement00
  8233. static int tolua_UI_UI_SetFocusElement00(lua_State* tolua_S)
  8234. {
  8235. #ifndef TOLUA_RELEASE
  8236. tolua_Error tolua_err;
  8237. if (
  8238. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8239. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  8240. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8241. )
  8242. goto tolua_lerror;
  8243. else
  8244. #endif
  8245. {
  8246. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8247. UIElement* element = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  8248. #ifndef TOLUA_RELEASE
  8249. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFocusElement'", NULL);
  8250. #endif
  8251. {
  8252. self->SetFocusElement(element);
  8253. }
  8254. }
  8255. return 0;
  8256. #ifndef TOLUA_RELEASE
  8257. tolua_lerror:
  8258. tolua_error(tolua_S,"#ferror in function 'SetFocusElement'.",&tolua_err);
  8259. return 0;
  8260. #endif
  8261. }
  8262. #endif //#ifndef TOLUA_DISABLE
  8263. /* method: SetModalElement of class UI */
  8264. #ifndef TOLUA_DISABLE_tolua_UI_UI_SetModalElement00
  8265. static int tolua_UI_UI_SetModalElement00(lua_State* tolua_S)
  8266. {
  8267. #ifndef TOLUA_RELEASE
  8268. tolua_Error tolua_err;
  8269. if (
  8270. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8271. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  8272. !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
  8273. !tolua_isnoobj(tolua_S,4,&tolua_err)
  8274. )
  8275. goto tolua_lerror;
  8276. else
  8277. #endif
  8278. {
  8279. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8280. UIElement* modalElement = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  8281. bool enable = ((bool) tolua_toboolean(tolua_S,3,0));
  8282. #ifndef TOLUA_RELEASE
  8283. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetModalElement'", NULL);
  8284. #endif
  8285. {
  8286. bool tolua_ret = (bool) self->SetModalElement(modalElement,enable);
  8287. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  8288. }
  8289. }
  8290. return 1;
  8291. #ifndef TOLUA_RELEASE
  8292. tolua_lerror:
  8293. tolua_error(tolua_S,"#ferror in function 'SetModalElement'.",&tolua_err);
  8294. return 0;
  8295. #endif
  8296. }
  8297. #endif //#ifndef TOLUA_DISABLE
  8298. /* method: Clear of class UI */
  8299. #ifndef TOLUA_DISABLE_tolua_UI_UI_Clear00
  8300. static int tolua_UI_UI_Clear00(lua_State* tolua_S)
  8301. {
  8302. #ifndef TOLUA_RELEASE
  8303. tolua_Error tolua_err;
  8304. if (
  8305. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8306. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8307. )
  8308. goto tolua_lerror;
  8309. else
  8310. #endif
  8311. {
  8312. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8313. #ifndef TOLUA_RELEASE
  8314. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Clear'", NULL);
  8315. #endif
  8316. {
  8317. self->Clear();
  8318. }
  8319. }
  8320. return 0;
  8321. #ifndef TOLUA_RELEASE
  8322. tolua_lerror:
  8323. tolua_error(tolua_S,"#ferror in function 'Clear'.",&tolua_err);
  8324. return 0;
  8325. #endif
  8326. }
  8327. #endif //#ifndef TOLUA_DISABLE
  8328. /* method: Update of class UI */
  8329. #ifndef TOLUA_DISABLE_tolua_UI_UI_Update00
  8330. static int tolua_UI_UI_Update00(lua_State* tolua_S)
  8331. {
  8332. #ifndef TOLUA_RELEASE
  8333. tolua_Error tolua_err;
  8334. if (
  8335. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8336. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8337. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8338. )
  8339. goto tolua_lerror;
  8340. else
  8341. #endif
  8342. {
  8343. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8344. float timeStep = ((float) tolua_tonumber(tolua_S,2,0));
  8345. #ifndef TOLUA_RELEASE
  8346. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Update'", NULL);
  8347. #endif
  8348. {
  8349. self->Update(timeStep);
  8350. }
  8351. }
  8352. return 0;
  8353. #ifndef TOLUA_RELEASE
  8354. tolua_lerror:
  8355. tolua_error(tolua_S,"#ferror in function 'Update'.",&tolua_err);
  8356. return 0;
  8357. #endif
  8358. }
  8359. #endif //#ifndef TOLUA_DISABLE
  8360. /* method: RenderUpdate of class UI */
  8361. #ifndef TOLUA_DISABLE_tolua_UI_UI_RenderUpdate00
  8362. static int tolua_UI_UI_RenderUpdate00(lua_State* tolua_S)
  8363. {
  8364. #ifndef TOLUA_RELEASE
  8365. tolua_Error tolua_err;
  8366. if (
  8367. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8368. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8369. )
  8370. goto tolua_lerror;
  8371. else
  8372. #endif
  8373. {
  8374. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8375. #ifndef TOLUA_RELEASE
  8376. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RenderUpdate'", NULL);
  8377. #endif
  8378. {
  8379. self->RenderUpdate();
  8380. }
  8381. }
  8382. return 0;
  8383. #ifndef TOLUA_RELEASE
  8384. tolua_lerror:
  8385. tolua_error(tolua_S,"#ferror in function 'RenderUpdate'.",&tolua_err);
  8386. return 0;
  8387. #endif
  8388. }
  8389. #endif //#ifndef TOLUA_DISABLE
  8390. /* method: Render of class UI */
  8391. #ifndef TOLUA_DISABLE_tolua_UI_UI_Render00
  8392. static int tolua_UI_UI_Render00(lua_State* tolua_S)
  8393. {
  8394. #ifndef TOLUA_RELEASE
  8395. tolua_Error tolua_err;
  8396. if (
  8397. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8398. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8399. )
  8400. goto tolua_lerror;
  8401. else
  8402. #endif
  8403. {
  8404. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8405. #ifndef TOLUA_RELEASE
  8406. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Render'", NULL);
  8407. #endif
  8408. {
  8409. self->Render();
  8410. }
  8411. }
  8412. return 0;
  8413. #ifndef TOLUA_RELEASE
  8414. tolua_lerror:
  8415. tolua_error(tolua_S,"#ferror in function 'Render'.",&tolua_err);
  8416. return 0;
  8417. #endif
  8418. }
  8419. #endif //#ifndef TOLUA_DISABLE
  8420. /* method: DebugDraw of class UI */
  8421. #ifndef TOLUA_DISABLE_tolua_UI_UI_DebugDraw00
  8422. static int tolua_UI_UI_DebugDraw00(lua_State* tolua_S)
  8423. {
  8424. #ifndef TOLUA_RELEASE
  8425. tolua_Error tolua_err;
  8426. if (
  8427. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8428. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  8429. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8430. )
  8431. goto tolua_lerror;
  8432. else
  8433. #endif
  8434. {
  8435. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8436. UIElement* element = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  8437. #ifndef TOLUA_RELEASE
  8438. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'DebugDraw'", NULL);
  8439. #endif
  8440. {
  8441. self->DebugDraw(element);
  8442. }
  8443. }
  8444. return 0;
  8445. #ifndef TOLUA_RELEASE
  8446. tolua_lerror:
  8447. tolua_error(tolua_S,"#ferror in function 'DebugDraw'.",&tolua_err);
  8448. return 0;
  8449. #endif
  8450. }
  8451. #endif //#ifndef TOLUA_DISABLE
  8452. /* method: SaveLayout of class UI */
  8453. #ifndef TOLUA_DISABLE_tolua_UI_UI_SaveLayout00
  8454. static int tolua_UI_UI_SaveLayout00(lua_State* tolua_S)
  8455. {
  8456. #ifndef TOLUA_RELEASE
  8457. tolua_Error tolua_err;
  8458. if (
  8459. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8460. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Serializer",0,&tolua_err)) ||
  8461. !tolua_isusertype(tolua_S,3,"UIElement",0,&tolua_err) ||
  8462. !tolua_isnoobj(tolua_S,4,&tolua_err)
  8463. )
  8464. goto tolua_lerror;
  8465. else
  8466. #endif
  8467. {
  8468. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8469. Serializer* dest = ((Serializer*) tolua_tousertype(tolua_S,2,0));
  8470. UIElement* element = ((UIElement*) tolua_tousertype(tolua_S,3,0));
  8471. #ifndef TOLUA_RELEASE
  8472. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SaveLayout'", NULL);
  8473. #endif
  8474. {
  8475. bool tolua_ret = (bool) self->SaveLayout(*dest,element);
  8476. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  8477. }
  8478. }
  8479. return 1;
  8480. #ifndef TOLUA_RELEASE
  8481. tolua_lerror:
  8482. tolua_error(tolua_S,"#ferror in function 'SaveLayout'.",&tolua_err);
  8483. return 0;
  8484. #endif
  8485. }
  8486. #endif //#ifndef TOLUA_DISABLE
  8487. /* method: SetClipBoardText of class UI */
  8488. #ifndef TOLUA_DISABLE_tolua_UI_UI_SetClipBoardText00
  8489. static int tolua_UI_UI_SetClipBoardText00(lua_State* tolua_S)
  8490. {
  8491. #ifndef TOLUA_RELEASE
  8492. tolua_Error tolua_err;
  8493. if (
  8494. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8495. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  8496. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8497. )
  8498. goto tolua_lerror;
  8499. else
  8500. #endif
  8501. {
  8502. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8503. const String* text = ((const String*) tolua_tousertype(tolua_S,2,0));
  8504. #ifndef TOLUA_RELEASE
  8505. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetClipBoardText'", NULL);
  8506. #endif
  8507. {
  8508. self->SetClipBoardText(*text);
  8509. }
  8510. }
  8511. return 0;
  8512. #ifndef TOLUA_RELEASE
  8513. tolua_lerror:
  8514. tolua_error(tolua_S,"#ferror in function 'SetClipBoardText'.",&tolua_err);
  8515. return 0;
  8516. #endif
  8517. }
  8518. #endif //#ifndef TOLUA_DISABLE
  8519. /* method: SetNonFocusedMouseWheel of class UI */
  8520. #ifndef TOLUA_DISABLE_tolua_UI_UI_SetNonFocusedMouseWheel00
  8521. static int tolua_UI_UI_SetNonFocusedMouseWheel00(lua_State* tolua_S)
  8522. {
  8523. #ifndef TOLUA_RELEASE
  8524. tolua_Error tolua_err;
  8525. if (
  8526. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8527. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  8528. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8529. )
  8530. goto tolua_lerror;
  8531. else
  8532. #endif
  8533. {
  8534. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8535. bool nonFocusedMouseWheel = ((bool) tolua_toboolean(tolua_S,2,0));
  8536. #ifndef TOLUA_RELEASE
  8537. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNonFocusedMouseWheel'", NULL);
  8538. #endif
  8539. {
  8540. self->SetNonFocusedMouseWheel(nonFocusedMouseWheel);
  8541. }
  8542. }
  8543. return 0;
  8544. #ifndef TOLUA_RELEASE
  8545. tolua_lerror:
  8546. tolua_error(tolua_S,"#ferror in function 'SetNonFocusedMouseWheel'.",&tolua_err);
  8547. return 0;
  8548. #endif
  8549. }
  8550. #endif //#ifndef TOLUA_DISABLE
  8551. /* method: GetRoot of class UI */
  8552. #ifndef TOLUA_DISABLE_tolua_UI_UI_GetRoot00
  8553. static int tolua_UI_UI_GetRoot00(lua_State* tolua_S)
  8554. {
  8555. #ifndef TOLUA_RELEASE
  8556. tolua_Error tolua_err;
  8557. if (
  8558. !tolua_isusertype(tolua_S,1,"const UI",0,&tolua_err) ||
  8559. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8560. )
  8561. goto tolua_lerror;
  8562. else
  8563. #endif
  8564. {
  8565. const UI* self = (const UI*) tolua_tousertype(tolua_S,1,0);
  8566. #ifndef TOLUA_RELEASE
  8567. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRoot'", NULL);
  8568. #endif
  8569. {
  8570. UIElement* tolua_ret = (UIElement*) self->GetRoot();
  8571. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  8572. }
  8573. }
  8574. return 1;
  8575. #ifndef TOLUA_RELEASE
  8576. tolua_lerror:
  8577. tolua_error(tolua_S,"#ferror in function 'GetRoot'.",&tolua_err);
  8578. return 0;
  8579. #endif
  8580. }
  8581. #endif //#ifndef TOLUA_DISABLE
  8582. /* method: GetRootModalElement of class UI */
  8583. #ifndef TOLUA_DISABLE_tolua_UI_UI_GetRootModalElement00
  8584. static int tolua_UI_UI_GetRootModalElement00(lua_State* tolua_S)
  8585. {
  8586. #ifndef TOLUA_RELEASE
  8587. tolua_Error tolua_err;
  8588. if (
  8589. !tolua_isusertype(tolua_S,1,"const UI",0,&tolua_err) ||
  8590. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8591. )
  8592. goto tolua_lerror;
  8593. else
  8594. #endif
  8595. {
  8596. const UI* self = (const UI*) tolua_tousertype(tolua_S,1,0);
  8597. #ifndef TOLUA_RELEASE
  8598. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRootModalElement'", NULL);
  8599. #endif
  8600. {
  8601. UIElement* tolua_ret = (UIElement*) self->GetRootModalElement();
  8602. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  8603. }
  8604. }
  8605. return 1;
  8606. #ifndef TOLUA_RELEASE
  8607. tolua_lerror:
  8608. tolua_error(tolua_S,"#ferror in function 'GetRootModalElement'.",&tolua_err);
  8609. return 0;
  8610. #endif
  8611. }
  8612. #endif //#ifndef TOLUA_DISABLE
  8613. /* method: GetCursor of class UI */
  8614. #ifndef TOLUA_DISABLE_tolua_UI_UI_GetCursor00
  8615. static int tolua_UI_UI_GetCursor00(lua_State* tolua_S)
  8616. {
  8617. #ifndef TOLUA_RELEASE
  8618. tolua_Error tolua_err;
  8619. if (
  8620. !tolua_isusertype(tolua_S,1,"const UI",0,&tolua_err) ||
  8621. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8622. )
  8623. goto tolua_lerror;
  8624. else
  8625. #endif
  8626. {
  8627. const UI* self = (const UI*) tolua_tousertype(tolua_S,1,0);
  8628. #ifndef TOLUA_RELEASE
  8629. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCursor'", NULL);
  8630. #endif
  8631. {
  8632. Cursor* tolua_ret = (Cursor*) self->GetCursor();
  8633. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Cursor");
  8634. }
  8635. }
  8636. return 1;
  8637. #ifndef TOLUA_RELEASE
  8638. tolua_lerror:
  8639. tolua_error(tolua_S,"#ferror in function 'GetCursor'.",&tolua_err);
  8640. return 0;
  8641. #endif
  8642. }
  8643. #endif //#ifndef TOLUA_DISABLE
  8644. /* method: GetElementAt of class UI */
  8645. #ifndef TOLUA_DISABLE_tolua_UI_UI_GetElementAt00
  8646. static int tolua_UI_UI_GetElementAt00(lua_State* tolua_S)
  8647. {
  8648. #ifndef TOLUA_RELEASE
  8649. tolua_Error tolua_err;
  8650. if (
  8651. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8652. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  8653. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  8654. !tolua_isnoobj(tolua_S,4,&tolua_err)
  8655. )
  8656. goto tolua_lerror;
  8657. else
  8658. #endif
  8659. {
  8660. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8661. const IntVector2* position = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  8662. bool enabledOnly = ((bool) tolua_toboolean(tolua_S,3,true));
  8663. #ifndef TOLUA_RELEASE
  8664. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetElementAt'", NULL);
  8665. #endif
  8666. {
  8667. UIElement* tolua_ret = (UIElement*) self->GetElementAt(*position,enabledOnly);
  8668. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  8669. }
  8670. }
  8671. return 1;
  8672. #ifndef TOLUA_RELEASE
  8673. tolua_lerror:
  8674. tolua_error(tolua_S,"#ferror in function 'GetElementAt'.",&tolua_err);
  8675. return 0;
  8676. #endif
  8677. }
  8678. #endif //#ifndef TOLUA_DISABLE
  8679. /* method: GetElementAt of class UI */
  8680. #ifndef TOLUA_DISABLE_tolua_UI_UI_GetElementAt01
  8681. static int tolua_UI_UI_GetElementAt01(lua_State* tolua_S)
  8682. {
  8683. tolua_Error tolua_err;
  8684. if (
  8685. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8686. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8687. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  8688. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  8689. !tolua_isnoobj(tolua_S,5,&tolua_err)
  8690. )
  8691. goto tolua_lerror;
  8692. else
  8693. {
  8694. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8695. int x = ((int) tolua_tonumber(tolua_S,2,0));
  8696. int y = ((int) tolua_tonumber(tolua_S,3,0));
  8697. bool enabledOnly = ((bool) tolua_toboolean(tolua_S,4,true));
  8698. #ifndef TOLUA_RELEASE
  8699. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetElementAt'", NULL);
  8700. #endif
  8701. {
  8702. UIElement* tolua_ret = (UIElement*) self->GetElementAt(x,y,enabledOnly);
  8703. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  8704. }
  8705. }
  8706. return 1;
  8707. tolua_lerror:
  8708. return tolua_UI_UI_GetElementAt00(tolua_S);
  8709. }
  8710. #endif //#ifndef TOLUA_DISABLE
  8711. /* method: GetFocusElement of class UI */
  8712. #ifndef TOLUA_DISABLE_tolua_UI_UI_GetFocusElement00
  8713. static int tolua_UI_UI_GetFocusElement00(lua_State* tolua_S)
  8714. {
  8715. #ifndef TOLUA_RELEASE
  8716. tolua_Error tolua_err;
  8717. if (
  8718. !tolua_isusertype(tolua_S,1,"const UI",0,&tolua_err) ||
  8719. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8720. )
  8721. goto tolua_lerror;
  8722. else
  8723. #endif
  8724. {
  8725. const UI* self = (const UI*) tolua_tousertype(tolua_S,1,0);
  8726. #ifndef TOLUA_RELEASE
  8727. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFocusElement'", NULL);
  8728. #endif
  8729. {
  8730. UIElement* tolua_ret = (UIElement*) self->GetFocusElement();
  8731. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  8732. }
  8733. }
  8734. return 1;
  8735. #ifndef TOLUA_RELEASE
  8736. tolua_lerror:
  8737. tolua_error(tolua_S,"#ferror in function 'GetFocusElement'.",&tolua_err);
  8738. return 0;
  8739. #endif
  8740. }
  8741. #endif //#ifndef TOLUA_DISABLE
  8742. /* method: GetFrontElement of class UI */
  8743. #ifndef TOLUA_DISABLE_tolua_UI_UI_GetFrontElement00
  8744. static int tolua_UI_UI_GetFrontElement00(lua_State* tolua_S)
  8745. {
  8746. #ifndef TOLUA_RELEASE
  8747. tolua_Error tolua_err;
  8748. if (
  8749. !tolua_isusertype(tolua_S,1,"const UI",0,&tolua_err) ||
  8750. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8751. )
  8752. goto tolua_lerror;
  8753. else
  8754. #endif
  8755. {
  8756. const UI* self = (const UI*) tolua_tousertype(tolua_S,1,0);
  8757. #ifndef TOLUA_RELEASE
  8758. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFrontElement'", NULL);
  8759. #endif
  8760. {
  8761. UIElement* tolua_ret = (UIElement*) self->GetFrontElement();
  8762. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  8763. }
  8764. }
  8765. return 1;
  8766. #ifndef TOLUA_RELEASE
  8767. tolua_lerror:
  8768. tolua_error(tolua_S,"#ferror in function 'GetFrontElement'.",&tolua_err);
  8769. return 0;
  8770. #endif
  8771. }
  8772. #endif //#ifndef TOLUA_DISABLE
  8773. /* method: GetCursorPosition of class UI */
  8774. #ifndef TOLUA_DISABLE_tolua_UI_UI_GetCursorPosition00
  8775. static int tolua_UI_UI_GetCursorPosition00(lua_State* tolua_S)
  8776. {
  8777. #ifndef TOLUA_RELEASE
  8778. tolua_Error tolua_err;
  8779. if (
  8780. !tolua_isusertype(tolua_S,1,"const UI",0,&tolua_err) ||
  8781. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8782. )
  8783. goto tolua_lerror;
  8784. else
  8785. #endif
  8786. {
  8787. const UI* self = (const UI*) tolua_tousertype(tolua_S,1,0);
  8788. #ifndef TOLUA_RELEASE
  8789. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCursorPosition'", NULL);
  8790. #endif
  8791. {
  8792. IntVector2 tolua_ret = (IntVector2) self->GetCursorPosition();
  8793. {
  8794. #ifdef __cplusplus
  8795. void* tolua_obj = Mtolua_new((IntVector2)(tolua_ret));
  8796. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  8797. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  8798. #else
  8799. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(IntVector2));
  8800. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  8801. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  8802. #endif
  8803. }
  8804. }
  8805. }
  8806. return 1;
  8807. #ifndef TOLUA_RELEASE
  8808. tolua_lerror:
  8809. tolua_error(tolua_S,"#ferror in function 'GetCursorPosition'.",&tolua_err);
  8810. return 0;
  8811. #endif
  8812. }
  8813. #endif //#ifndef TOLUA_DISABLE
  8814. /* method: GetClipBoardText of class UI */
  8815. #ifndef TOLUA_DISABLE_tolua_UI_UI_GetClipBoardText00
  8816. static int tolua_UI_UI_GetClipBoardText00(lua_State* tolua_S)
  8817. {
  8818. #ifndef TOLUA_RELEASE
  8819. tolua_Error tolua_err;
  8820. if (
  8821. !tolua_isusertype(tolua_S,1,"const UI",0,&tolua_err) ||
  8822. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8823. )
  8824. goto tolua_lerror;
  8825. else
  8826. #endif
  8827. {
  8828. const UI* self = (const UI*) tolua_tousertype(tolua_S,1,0);
  8829. #ifndef TOLUA_RELEASE
  8830. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetClipBoardText'", NULL);
  8831. #endif
  8832. {
  8833. const String& tolua_ret = (const String&) self->GetClipBoardText();
  8834. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  8835. }
  8836. }
  8837. return 1;
  8838. #ifndef TOLUA_RELEASE
  8839. tolua_lerror:
  8840. tolua_error(tolua_S,"#ferror in function 'GetClipBoardText'.",&tolua_err);
  8841. return 0;
  8842. #endif
  8843. }
  8844. #endif //#ifndef TOLUA_DISABLE
  8845. /* method: IsNonFocusedMouseWheel of class UI */
  8846. #ifndef TOLUA_DISABLE_tolua_UI_UI_IsNonFocusedMouseWheel00
  8847. static int tolua_UI_UI_IsNonFocusedMouseWheel00(lua_State* tolua_S)
  8848. {
  8849. #ifndef TOLUA_RELEASE
  8850. tolua_Error tolua_err;
  8851. if (
  8852. !tolua_isusertype(tolua_S,1,"const UI",0,&tolua_err) ||
  8853. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8854. )
  8855. goto tolua_lerror;
  8856. else
  8857. #endif
  8858. {
  8859. const UI* self = (const UI*) tolua_tousertype(tolua_S,1,0);
  8860. #ifndef TOLUA_RELEASE
  8861. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsNonFocusedMouseWheel'", NULL);
  8862. #endif
  8863. {
  8864. bool tolua_ret = (bool) self->IsNonFocusedMouseWheel();
  8865. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  8866. }
  8867. }
  8868. return 1;
  8869. #ifndef TOLUA_RELEASE
  8870. tolua_lerror:
  8871. tolua_error(tolua_S,"#ferror in function 'IsNonFocusedMouseWheel'.",&tolua_err);
  8872. return 0;
  8873. #endif
  8874. }
  8875. #endif //#ifndef TOLUA_DISABLE
  8876. /* method: HasModalElement of class UI */
  8877. #ifndef TOLUA_DISABLE_tolua_UI_UI_HasModalElement00
  8878. static int tolua_UI_UI_HasModalElement00(lua_State* tolua_S)
  8879. {
  8880. #ifndef TOLUA_RELEASE
  8881. tolua_Error tolua_err;
  8882. if (
  8883. !tolua_isusertype(tolua_S,1,"const UI",0,&tolua_err) ||
  8884. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8885. )
  8886. goto tolua_lerror;
  8887. else
  8888. #endif
  8889. {
  8890. const UI* self = (const UI*) tolua_tousertype(tolua_S,1,0);
  8891. #ifndef TOLUA_RELEASE
  8892. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasModalElement'", NULL);
  8893. #endif
  8894. {
  8895. bool tolua_ret = (bool) self->HasModalElement();
  8896. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  8897. }
  8898. }
  8899. return 1;
  8900. #ifndef TOLUA_RELEASE
  8901. tolua_lerror:
  8902. tolua_error(tolua_S,"#ferror in function 'HasModalElement'.",&tolua_err);
  8903. return 0;
  8904. #endif
  8905. }
  8906. #endif //#ifndef TOLUA_DISABLE
  8907. /* function: GetUI */
  8908. #ifndef TOLUA_DISABLE_tolua_UI_GetUI00
  8909. static int tolua_UI_GetUI00(lua_State* tolua_S)
  8910. {
  8911. #ifndef TOLUA_RELEASE
  8912. tolua_Error tolua_err;
  8913. if (
  8914. !tolua_isnoobj(tolua_S,1,&tolua_err)
  8915. )
  8916. goto tolua_lerror;
  8917. else
  8918. #endif
  8919. {
  8920. {
  8921. UI* tolua_ret = (UI*) GetUI();
  8922. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UI");
  8923. }
  8924. }
  8925. return 1;
  8926. #ifndef TOLUA_RELEASE
  8927. tolua_lerror:
  8928. tolua_error(tolua_S,"#ferror in function 'GetUI'.",&tolua_err);
  8929. return 0;
  8930. #endif
  8931. }
  8932. #endif //#ifndef TOLUA_DISABLE
  8933. /* get function: DD_DISABLED */
  8934. #ifndef TOLUA_DISABLE_tolua_get_DD_DISABLED
  8935. static int tolua_get_DD_DISABLED(lua_State* tolua_S)
  8936. {
  8937. tolua_pushnumber(tolua_S,(lua_Number)DD_DISABLED);
  8938. return 1;
  8939. }
  8940. #endif //#ifndef TOLUA_DISABLE
  8941. /* get function: DD_SOURCE */
  8942. #ifndef TOLUA_DISABLE_tolua_get_DD_SOURCE
  8943. static int tolua_get_DD_SOURCE(lua_State* tolua_S)
  8944. {
  8945. tolua_pushnumber(tolua_S,(lua_Number)DD_SOURCE);
  8946. return 1;
  8947. }
  8948. #endif //#ifndef TOLUA_DISABLE
  8949. /* get function: DD_TARGET */
  8950. #ifndef TOLUA_DISABLE_tolua_get_DD_TARGET
  8951. static int tolua_get_DD_TARGET(lua_State* tolua_S)
  8952. {
  8953. tolua_pushnumber(tolua_S,(lua_Number)DD_TARGET);
  8954. return 1;
  8955. }
  8956. #endif //#ifndef TOLUA_DISABLE
  8957. /* get function: DD_SOURCE_AND_TARGET */
  8958. #ifndef TOLUA_DISABLE_tolua_get_DD_SOURCE_AND_TARGET
  8959. static int tolua_get_DD_SOURCE_AND_TARGET(lua_State* tolua_S)
  8960. {
  8961. tolua_pushnumber(tolua_S,(lua_Number)DD_SOURCE_AND_TARGET);
  8962. return 1;
  8963. }
  8964. #endif //#ifndef TOLUA_DISABLE
  8965. /* method: SetName of class UIElement */
  8966. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetName00
  8967. static int tolua_UI_UIElement_SetName00(lua_State* tolua_S)
  8968. {
  8969. #ifndef TOLUA_RELEASE
  8970. tolua_Error tolua_err;
  8971. if (
  8972. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  8973. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  8974. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8975. )
  8976. goto tolua_lerror;
  8977. else
  8978. #endif
  8979. {
  8980. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  8981. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  8982. #ifndef TOLUA_RELEASE
  8983. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetName'", NULL);
  8984. #endif
  8985. {
  8986. self->SetName(*name);
  8987. }
  8988. }
  8989. return 0;
  8990. #ifndef TOLUA_RELEASE
  8991. tolua_lerror:
  8992. tolua_error(tolua_S,"#ferror in function 'SetName'.",&tolua_err);
  8993. return 0;
  8994. #endif
  8995. }
  8996. #endif //#ifndef TOLUA_DISABLE
  8997. /* method: SetPosition of class UIElement */
  8998. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetPosition00
  8999. static int tolua_UI_UIElement_SetPosition00(lua_State* tolua_S)
  9000. {
  9001. #ifndef TOLUA_RELEASE
  9002. tolua_Error tolua_err;
  9003. if (
  9004. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9005. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  9006. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9007. )
  9008. goto tolua_lerror;
  9009. else
  9010. #endif
  9011. {
  9012. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9013. const IntVector2* position = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  9014. #ifndef TOLUA_RELEASE
  9015. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPosition'", NULL);
  9016. #endif
  9017. {
  9018. self->SetPosition(*position);
  9019. }
  9020. }
  9021. return 0;
  9022. #ifndef TOLUA_RELEASE
  9023. tolua_lerror:
  9024. tolua_error(tolua_S,"#ferror in function 'SetPosition'.",&tolua_err);
  9025. return 0;
  9026. #endif
  9027. }
  9028. #endif //#ifndef TOLUA_DISABLE
  9029. /* method: SetPosition of class UIElement */
  9030. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetPosition01
  9031. static int tolua_UI_UIElement_SetPosition01(lua_State* tolua_S)
  9032. {
  9033. tolua_Error tolua_err;
  9034. if (
  9035. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9036. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9037. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9038. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9039. )
  9040. goto tolua_lerror;
  9041. else
  9042. {
  9043. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9044. int x = ((int) tolua_tonumber(tolua_S,2,0));
  9045. int y = ((int) tolua_tonumber(tolua_S,3,0));
  9046. #ifndef TOLUA_RELEASE
  9047. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPosition'", NULL);
  9048. #endif
  9049. {
  9050. self->SetPosition(x,y);
  9051. }
  9052. }
  9053. return 0;
  9054. tolua_lerror:
  9055. return tolua_UI_UIElement_SetPosition00(tolua_S);
  9056. }
  9057. #endif //#ifndef TOLUA_DISABLE
  9058. /* method: SetSize of class UIElement */
  9059. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetSize00
  9060. static int tolua_UI_UIElement_SetSize00(lua_State* tolua_S)
  9061. {
  9062. #ifndef TOLUA_RELEASE
  9063. tolua_Error tolua_err;
  9064. if (
  9065. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9066. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  9067. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9068. )
  9069. goto tolua_lerror;
  9070. else
  9071. #endif
  9072. {
  9073. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9074. const IntVector2* size = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  9075. #ifndef TOLUA_RELEASE
  9076. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSize'", NULL);
  9077. #endif
  9078. {
  9079. self->SetSize(*size);
  9080. }
  9081. }
  9082. return 0;
  9083. #ifndef TOLUA_RELEASE
  9084. tolua_lerror:
  9085. tolua_error(tolua_S,"#ferror in function 'SetSize'.",&tolua_err);
  9086. return 0;
  9087. #endif
  9088. }
  9089. #endif //#ifndef TOLUA_DISABLE
  9090. /* method: SetSize of class UIElement */
  9091. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetSize01
  9092. static int tolua_UI_UIElement_SetSize01(lua_State* tolua_S)
  9093. {
  9094. tolua_Error tolua_err;
  9095. if (
  9096. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9097. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9098. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9099. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9100. )
  9101. goto tolua_lerror;
  9102. else
  9103. {
  9104. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9105. int width = ((int) tolua_tonumber(tolua_S,2,0));
  9106. int height = ((int) tolua_tonumber(tolua_S,3,0));
  9107. #ifndef TOLUA_RELEASE
  9108. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSize'", NULL);
  9109. #endif
  9110. {
  9111. self->SetSize(width,height);
  9112. }
  9113. }
  9114. return 0;
  9115. tolua_lerror:
  9116. return tolua_UI_UIElement_SetSize00(tolua_S);
  9117. }
  9118. #endif //#ifndef TOLUA_DISABLE
  9119. /* method: SetWidth of class UIElement */
  9120. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetWidth00
  9121. static int tolua_UI_UIElement_SetWidth00(lua_State* tolua_S)
  9122. {
  9123. #ifndef TOLUA_RELEASE
  9124. tolua_Error tolua_err;
  9125. if (
  9126. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9127. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9128. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9129. )
  9130. goto tolua_lerror;
  9131. else
  9132. #endif
  9133. {
  9134. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9135. int width = ((int) tolua_tonumber(tolua_S,2,0));
  9136. #ifndef TOLUA_RELEASE
  9137. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWidth'", NULL);
  9138. #endif
  9139. {
  9140. self->SetWidth(width);
  9141. }
  9142. }
  9143. return 0;
  9144. #ifndef TOLUA_RELEASE
  9145. tolua_lerror:
  9146. tolua_error(tolua_S,"#ferror in function 'SetWidth'.",&tolua_err);
  9147. return 0;
  9148. #endif
  9149. }
  9150. #endif //#ifndef TOLUA_DISABLE
  9151. /* method: SetHeight of class UIElement */
  9152. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetHeight00
  9153. static int tolua_UI_UIElement_SetHeight00(lua_State* tolua_S)
  9154. {
  9155. #ifndef TOLUA_RELEASE
  9156. tolua_Error tolua_err;
  9157. if (
  9158. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9159. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9160. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9161. )
  9162. goto tolua_lerror;
  9163. else
  9164. #endif
  9165. {
  9166. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9167. int height = ((int) tolua_tonumber(tolua_S,2,0));
  9168. #ifndef TOLUA_RELEASE
  9169. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHeight'", NULL);
  9170. #endif
  9171. {
  9172. self->SetHeight(height);
  9173. }
  9174. }
  9175. return 0;
  9176. #ifndef TOLUA_RELEASE
  9177. tolua_lerror:
  9178. tolua_error(tolua_S,"#ferror in function 'SetHeight'.",&tolua_err);
  9179. return 0;
  9180. #endif
  9181. }
  9182. #endif //#ifndef TOLUA_DISABLE
  9183. /* method: SetMinSize of class UIElement */
  9184. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetMinSize00
  9185. static int tolua_UI_UIElement_SetMinSize00(lua_State* tolua_S)
  9186. {
  9187. #ifndef TOLUA_RELEASE
  9188. tolua_Error tolua_err;
  9189. if (
  9190. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9191. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  9192. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9193. )
  9194. goto tolua_lerror;
  9195. else
  9196. #endif
  9197. {
  9198. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9199. const IntVector2* minSize = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  9200. #ifndef TOLUA_RELEASE
  9201. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinSize'", NULL);
  9202. #endif
  9203. {
  9204. self->SetMinSize(*minSize);
  9205. }
  9206. }
  9207. return 0;
  9208. #ifndef TOLUA_RELEASE
  9209. tolua_lerror:
  9210. tolua_error(tolua_S,"#ferror in function 'SetMinSize'.",&tolua_err);
  9211. return 0;
  9212. #endif
  9213. }
  9214. #endif //#ifndef TOLUA_DISABLE
  9215. /* method: SetMinSize of class UIElement */
  9216. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetMinSize01
  9217. static int tolua_UI_UIElement_SetMinSize01(lua_State* tolua_S)
  9218. {
  9219. tolua_Error tolua_err;
  9220. if (
  9221. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9222. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9223. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9224. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9225. )
  9226. goto tolua_lerror;
  9227. else
  9228. {
  9229. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9230. int width = ((int) tolua_tonumber(tolua_S,2,0));
  9231. int height = ((int) tolua_tonumber(tolua_S,3,0));
  9232. #ifndef TOLUA_RELEASE
  9233. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinSize'", NULL);
  9234. #endif
  9235. {
  9236. self->SetMinSize(width,height);
  9237. }
  9238. }
  9239. return 0;
  9240. tolua_lerror:
  9241. return tolua_UI_UIElement_SetMinSize00(tolua_S);
  9242. }
  9243. #endif //#ifndef TOLUA_DISABLE
  9244. /* method: SetMinWidth of class UIElement */
  9245. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetMinWidth00
  9246. static int tolua_UI_UIElement_SetMinWidth00(lua_State* tolua_S)
  9247. {
  9248. #ifndef TOLUA_RELEASE
  9249. tolua_Error tolua_err;
  9250. if (
  9251. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9252. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9253. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9254. )
  9255. goto tolua_lerror;
  9256. else
  9257. #endif
  9258. {
  9259. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9260. int width = ((int) tolua_tonumber(tolua_S,2,0));
  9261. #ifndef TOLUA_RELEASE
  9262. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinWidth'", NULL);
  9263. #endif
  9264. {
  9265. self->SetMinWidth(width);
  9266. }
  9267. }
  9268. return 0;
  9269. #ifndef TOLUA_RELEASE
  9270. tolua_lerror:
  9271. tolua_error(tolua_S,"#ferror in function 'SetMinWidth'.",&tolua_err);
  9272. return 0;
  9273. #endif
  9274. }
  9275. #endif //#ifndef TOLUA_DISABLE
  9276. /* method: SetMinHeight of class UIElement */
  9277. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetMinHeight00
  9278. static int tolua_UI_UIElement_SetMinHeight00(lua_State* tolua_S)
  9279. {
  9280. #ifndef TOLUA_RELEASE
  9281. tolua_Error tolua_err;
  9282. if (
  9283. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9284. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9285. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9286. )
  9287. goto tolua_lerror;
  9288. else
  9289. #endif
  9290. {
  9291. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9292. int height = ((int) tolua_tonumber(tolua_S,2,0));
  9293. #ifndef TOLUA_RELEASE
  9294. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinHeight'", NULL);
  9295. #endif
  9296. {
  9297. self->SetMinHeight(height);
  9298. }
  9299. }
  9300. return 0;
  9301. #ifndef TOLUA_RELEASE
  9302. tolua_lerror:
  9303. tolua_error(tolua_S,"#ferror in function 'SetMinHeight'.",&tolua_err);
  9304. return 0;
  9305. #endif
  9306. }
  9307. #endif //#ifndef TOLUA_DISABLE
  9308. /* method: SetMaxSize of class UIElement */
  9309. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetMaxSize00
  9310. static int tolua_UI_UIElement_SetMaxSize00(lua_State* tolua_S)
  9311. {
  9312. #ifndef TOLUA_RELEASE
  9313. tolua_Error tolua_err;
  9314. if (
  9315. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9316. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  9317. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9318. )
  9319. goto tolua_lerror;
  9320. else
  9321. #endif
  9322. {
  9323. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9324. const IntVector2* maxSize = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  9325. #ifndef TOLUA_RELEASE
  9326. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxSize'", NULL);
  9327. #endif
  9328. {
  9329. self->SetMaxSize(*maxSize);
  9330. }
  9331. }
  9332. return 0;
  9333. #ifndef TOLUA_RELEASE
  9334. tolua_lerror:
  9335. tolua_error(tolua_S,"#ferror in function 'SetMaxSize'.",&tolua_err);
  9336. return 0;
  9337. #endif
  9338. }
  9339. #endif //#ifndef TOLUA_DISABLE
  9340. /* method: SetMaxSize of class UIElement */
  9341. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetMaxSize01
  9342. static int tolua_UI_UIElement_SetMaxSize01(lua_State* tolua_S)
  9343. {
  9344. tolua_Error tolua_err;
  9345. if (
  9346. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9347. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9348. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9349. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9350. )
  9351. goto tolua_lerror;
  9352. else
  9353. {
  9354. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9355. int width = ((int) tolua_tonumber(tolua_S,2,0));
  9356. int height = ((int) tolua_tonumber(tolua_S,3,0));
  9357. #ifndef TOLUA_RELEASE
  9358. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxSize'", NULL);
  9359. #endif
  9360. {
  9361. self->SetMaxSize(width,height);
  9362. }
  9363. }
  9364. return 0;
  9365. tolua_lerror:
  9366. return tolua_UI_UIElement_SetMaxSize00(tolua_S);
  9367. }
  9368. #endif //#ifndef TOLUA_DISABLE
  9369. /* method: SetMaxWidth of class UIElement */
  9370. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetMaxWidth00
  9371. static int tolua_UI_UIElement_SetMaxWidth00(lua_State* tolua_S)
  9372. {
  9373. #ifndef TOLUA_RELEASE
  9374. tolua_Error tolua_err;
  9375. if (
  9376. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9377. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9378. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9379. )
  9380. goto tolua_lerror;
  9381. else
  9382. #endif
  9383. {
  9384. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9385. int width = ((int) tolua_tonumber(tolua_S,2,0));
  9386. #ifndef TOLUA_RELEASE
  9387. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxWidth'", NULL);
  9388. #endif
  9389. {
  9390. self->SetMaxWidth(width);
  9391. }
  9392. }
  9393. return 0;
  9394. #ifndef TOLUA_RELEASE
  9395. tolua_lerror:
  9396. tolua_error(tolua_S,"#ferror in function 'SetMaxWidth'.",&tolua_err);
  9397. return 0;
  9398. #endif
  9399. }
  9400. #endif //#ifndef TOLUA_DISABLE
  9401. /* method: SetMaxHeight of class UIElement */
  9402. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetMaxHeight00
  9403. static int tolua_UI_UIElement_SetMaxHeight00(lua_State* tolua_S)
  9404. {
  9405. #ifndef TOLUA_RELEASE
  9406. tolua_Error tolua_err;
  9407. if (
  9408. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9409. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9410. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9411. )
  9412. goto tolua_lerror;
  9413. else
  9414. #endif
  9415. {
  9416. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9417. int height = ((int) tolua_tonumber(tolua_S,2,0));
  9418. #ifndef TOLUA_RELEASE
  9419. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxHeight'", NULL);
  9420. #endif
  9421. {
  9422. self->SetMaxHeight(height);
  9423. }
  9424. }
  9425. return 0;
  9426. #ifndef TOLUA_RELEASE
  9427. tolua_lerror:
  9428. tolua_error(tolua_S,"#ferror in function 'SetMaxHeight'.",&tolua_err);
  9429. return 0;
  9430. #endif
  9431. }
  9432. #endif //#ifndef TOLUA_DISABLE
  9433. /* method: SetFixedSize of class UIElement */
  9434. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetFixedSize00
  9435. static int tolua_UI_UIElement_SetFixedSize00(lua_State* tolua_S)
  9436. {
  9437. #ifndef TOLUA_RELEASE
  9438. tolua_Error tolua_err;
  9439. if (
  9440. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9441. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  9442. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9443. )
  9444. goto tolua_lerror;
  9445. else
  9446. #endif
  9447. {
  9448. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9449. const IntVector2* size = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  9450. #ifndef TOLUA_RELEASE
  9451. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFixedSize'", NULL);
  9452. #endif
  9453. {
  9454. self->SetFixedSize(*size);
  9455. }
  9456. }
  9457. return 0;
  9458. #ifndef TOLUA_RELEASE
  9459. tolua_lerror:
  9460. tolua_error(tolua_S,"#ferror in function 'SetFixedSize'.",&tolua_err);
  9461. return 0;
  9462. #endif
  9463. }
  9464. #endif //#ifndef TOLUA_DISABLE
  9465. /* method: SetFixedSize of class UIElement */
  9466. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetFixedSize01
  9467. static int tolua_UI_UIElement_SetFixedSize01(lua_State* tolua_S)
  9468. {
  9469. tolua_Error tolua_err;
  9470. if (
  9471. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9472. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9473. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9474. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9475. )
  9476. goto tolua_lerror;
  9477. else
  9478. {
  9479. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9480. int width = ((int) tolua_tonumber(tolua_S,2,0));
  9481. int height = ((int) tolua_tonumber(tolua_S,3,0));
  9482. #ifndef TOLUA_RELEASE
  9483. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFixedSize'", NULL);
  9484. #endif
  9485. {
  9486. self->SetFixedSize(width,height);
  9487. }
  9488. }
  9489. return 0;
  9490. tolua_lerror:
  9491. return tolua_UI_UIElement_SetFixedSize00(tolua_S);
  9492. }
  9493. #endif //#ifndef TOLUA_DISABLE
  9494. /* method: SetFixedWidth of class UIElement */
  9495. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetFixedWidth00
  9496. static int tolua_UI_UIElement_SetFixedWidth00(lua_State* tolua_S)
  9497. {
  9498. #ifndef TOLUA_RELEASE
  9499. tolua_Error tolua_err;
  9500. if (
  9501. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9502. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9503. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9504. )
  9505. goto tolua_lerror;
  9506. else
  9507. #endif
  9508. {
  9509. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9510. int width = ((int) tolua_tonumber(tolua_S,2,0));
  9511. #ifndef TOLUA_RELEASE
  9512. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFixedWidth'", NULL);
  9513. #endif
  9514. {
  9515. self->SetFixedWidth(width);
  9516. }
  9517. }
  9518. return 0;
  9519. #ifndef TOLUA_RELEASE
  9520. tolua_lerror:
  9521. tolua_error(tolua_S,"#ferror in function 'SetFixedWidth'.",&tolua_err);
  9522. return 0;
  9523. #endif
  9524. }
  9525. #endif //#ifndef TOLUA_DISABLE
  9526. /* method: SetFixedHeight of class UIElement */
  9527. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetFixedHeight00
  9528. static int tolua_UI_UIElement_SetFixedHeight00(lua_State* tolua_S)
  9529. {
  9530. #ifndef TOLUA_RELEASE
  9531. tolua_Error tolua_err;
  9532. if (
  9533. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9534. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9535. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9536. )
  9537. goto tolua_lerror;
  9538. else
  9539. #endif
  9540. {
  9541. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9542. int height = ((int) tolua_tonumber(tolua_S,2,0));
  9543. #ifndef TOLUA_RELEASE
  9544. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFixedHeight'", NULL);
  9545. #endif
  9546. {
  9547. self->SetFixedHeight(height);
  9548. }
  9549. }
  9550. return 0;
  9551. #ifndef TOLUA_RELEASE
  9552. tolua_lerror:
  9553. tolua_error(tolua_S,"#ferror in function 'SetFixedHeight'.",&tolua_err);
  9554. return 0;
  9555. #endif
  9556. }
  9557. #endif //#ifndef TOLUA_DISABLE
  9558. /* method: SetAlignment of class UIElement */
  9559. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetAlignment00
  9560. static int tolua_UI_UIElement_SetAlignment00(lua_State* tolua_S)
  9561. {
  9562. #ifndef TOLUA_RELEASE
  9563. tolua_Error tolua_err;
  9564. if (
  9565. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9566. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9567. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9568. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9569. )
  9570. goto tolua_lerror;
  9571. else
  9572. #endif
  9573. {
  9574. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9575. HorizontalAlignment hAlign = ((HorizontalAlignment) (int) tolua_tonumber(tolua_S,2,0));
  9576. VerticalAlignment vAlign = ((VerticalAlignment) (int) tolua_tonumber(tolua_S,3,0));
  9577. #ifndef TOLUA_RELEASE
  9578. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAlignment'", NULL);
  9579. #endif
  9580. {
  9581. self->SetAlignment(hAlign,vAlign);
  9582. }
  9583. }
  9584. return 0;
  9585. #ifndef TOLUA_RELEASE
  9586. tolua_lerror:
  9587. tolua_error(tolua_S,"#ferror in function 'SetAlignment'.",&tolua_err);
  9588. return 0;
  9589. #endif
  9590. }
  9591. #endif //#ifndef TOLUA_DISABLE
  9592. /* method: SetHorizontalAlignment of class UIElement */
  9593. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetHorizontalAlignment00
  9594. static int tolua_UI_UIElement_SetHorizontalAlignment00(lua_State* tolua_S)
  9595. {
  9596. #ifndef TOLUA_RELEASE
  9597. tolua_Error tolua_err;
  9598. if (
  9599. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9600. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9601. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9602. )
  9603. goto tolua_lerror;
  9604. else
  9605. #endif
  9606. {
  9607. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9608. HorizontalAlignment align = ((HorizontalAlignment) (int) tolua_tonumber(tolua_S,2,0));
  9609. #ifndef TOLUA_RELEASE
  9610. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHorizontalAlignment'", NULL);
  9611. #endif
  9612. {
  9613. self->SetHorizontalAlignment(align);
  9614. }
  9615. }
  9616. return 0;
  9617. #ifndef TOLUA_RELEASE
  9618. tolua_lerror:
  9619. tolua_error(tolua_S,"#ferror in function 'SetHorizontalAlignment'.",&tolua_err);
  9620. return 0;
  9621. #endif
  9622. }
  9623. #endif //#ifndef TOLUA_DISABLE
  9624. /* method: SetVerticalAlignment of class UIElement */
  9625. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetVerticalAlignment00
  9626. static int tolua_UI_UIElement_SetVerticalAlignment00(lua_State* tolua_S)
  9627. {
  9628. #ifndef TOLUA_RELEASE
  9629. tolua_Error tolua_err;
  9630. if (
  9631. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9632. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9633. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9634. )
  9635. goto tolua_lerror;
  9636. else
  9637. #endif
  9638. {
  9639. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9640. VerticalAlignment align = ((VerticalAlignment) (int) tolua_tonumber(tolua_S,2,0));
  9641. #ifndef TOLUA_RELEASE
  9642. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetVerticalAlignment'", NULL);
  9643. #endif
  9644. {
  9645. self->SetVerticalAlignment(align);
  9646. }
  9647. }
  9648. return 0;
  9649. #ifndef TOLUA_RELEASE
  9650. tolua_lerror:
  9651. tolua_error(tolua_S,"#ferror in function 'SetVerticalAlignment'.",&tolua_err);
  9652. return 0;
  9653. #endif
  9654. }
  9655. #endif //#ifndef TOLUA_DISABLE
  9656. /* method: SetClipBorder of class UIElement */
  9657. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetClipBorder00
  9658. static int tolua_UI_UIElement_SetClipBorder00(lua_State* tolua_S)
  9659. {
  9660. #ifndef TOLUA_RELEASE
  9661. tolua_Error tolua_err;
  9662. if (
  9663. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9664. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntRect",0,&tolua_err)) ||
  9665. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9666. )
  9667. goto tolua_lerror;
  9668. else
  9669. #endif
  9670. {
  9671. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9672. const IntRect* rect = ((const IntRect*) tolua_tousertype(tolua_S,2,0));
  9673. #ifndef TOLUA_RELEASE
  9674. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetClipBorder'", NULL);
  9675. #endif
  9676. {
  9677. self->SetClipBorder(*rect);
  9678. }
  9679. }
  9680. return 0;
  9681. #ifndef TOLUA_RELEASE
  9682. tolua_lerror:
  9683. tolua_error(tolua_S,"#ferror in function 'SetClipBorder'.",&tolua_err);
  9684. return 0;
  9685. #endif
  9686. }
  9687. #endif //#ifndef TOLUA_DISABLE
  9688. /* method: SetColor of class UIElement */
  9689. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetColor00
  9690. static int tolua_UI_UIElement_SetColor00(lua_State* tolua_S)
  9691. {
  9692. #ifndef TOLUA_RELEASE
  9693. tolua_Error tolua_err;
  9694. if (
  9695. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9696. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  9697. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9698. )
  9699. goto tolua_lerror;
  9700. else
  9701. #endif
  9702. {
  9703. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9704. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  9705. #ifndef TOLUA_RELEASE
  9706. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetColor'", NULL);
  9707. #endif
  9708. {
  9709. self->SetColor(*color);
  9710. }
  9711. }
  9712. return 0;
  9713. #ifndef TOLUA_RELEASE
  9714. tolua_lerror:
  9715. tolua_error(tolua_S,"#ferror in function 'SetColor'.",&tolua_err);
  9716. return 0;
  9717. #endif
  9718. }
  9719. #endif //#ifndef TOLUA_DISABLE
  9720. /* method: SetColor of class UIElement */
  9721. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetColor01
  9722. static int tolua_UI_UIElement_SetColor01(lua_State* tolua_S)
  9723. {
  9724. tolua_Error tolua_err;
  9725. if (
  9726. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9727. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9728. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Color",0,&tolua_err)) ||
  9729. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9730. )
  9731. goto tolua_lerror;
  9732. else
  9733. {
  9734. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9735. Corner corner = ((Corner) (int) tolua_tonumber(tolua_S,2,0));
  9736. const Color* color = ((const Color*) tolua_tousertype(tolua_S,3,0));
  9737. #ifndef TOLUA_RELEASE
  9738. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetColor'", NULL);
  9739. #endif
  9740. {
  9741. self->SetColor(corner,*color);
  9742. }
  9743. }
  9744. return 0;
  9745. tolua_lerror:
  9746. return tolua_UI_UIElement_SetColor00(tolua_S);
  9747. }
  9748. #endif //#ifndef TOLUA_DISABLE
  9749. /* method: SetPriority of class UIElement */
  9750. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetPriority00
  9751. static int tolua_UI_UIElement_SetPriority00(lua_State* tolua_S)
  9752. {
  9753. #ifndef TOLUA_RELEASE
  9754. tolua_Error tolua_err;
  9755. if (
  9756. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9757. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9758. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9759. )
  9760. goto tolua_lerror;
  9761. else
  9762. #endif
  9763. {
  9764. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9765. int priority = ((int) tolua_tonumber(tolua_S,2,0));
  9766. #ifndef TOLUA_RELEASE
  9767. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPriority'", NULL);
  9768. #endif
  9769. {
  9770. self->SetPriority(priority);
  9771. }
  9772. }
  9773. return 0;
  9774. #ifndef TOLUA_RELEASE
  9775. tolua_lerror:
  9776. tolua_error(tolua_S,"#ferror in function 'SetPriority'.",&tolua_err);
  9777. return 0;
  9778. #endif
  9779. }
  9780. #endif //#ifndef TOLUA_DISABLE
  9781. /* method: SetOpacity of class UIElement */
  9782. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetOpacity00
  9783. static int tolua_UI_UIElement_SetOpacity00(lua_State* tolua_S)
  9784. {
  9785. #ifndef TOLUA_RELEASE
  9786. tolua_Error tolua_err;
  9787. if (
  9788. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9789. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9790. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9791. )
  9792. goto tolua_lerror;
  9793. else
  9794. #endif
  9795. {
  9796. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9797. float opacity = ((float) tolua_tonumber(tolua_S,2,0));
  9798. #ifndef TOLUA_RELEASE
  9799. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOpacity'", NULL);
  9800. #endif
  9801. {
  9802. self->SetOpacity(opacity);
  9803. }
  9804. }
  9805. return 0;
  9806. #ifndef TOLUA_RELEASE
  9807. tolua_lerror:
  9808. tolua_error(tolua_S,"#ferror in function 'SetOpacity'.",&tolua_err);
  9809. return 0;
  9810. #endif
  9811. }
  9812. #endif //#ifndef TOLUA_DISABLE
  9813. /* method: SetBringToFront of class UIElement */
  9814. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetBringToFront00
  9815. static int tolua_UI_UIElement_SetBringToFront00(lua_State* tolua_S)
  9816. {
  9817. #ifndef TOLUA_RELEASE
  9818. tolua_Error tolua_err;
  9819. if (
  9820. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9821. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  9822. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9823. )
  9824. goto tolua_lerror;
  9825. else
  9826. #endif
  9827. {
  9828. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9829. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  9830. #ifndef TOLUA_RELEASE
  9831. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBringToFront'", NULL);
  9832. #endif
  9833. {
  9834. self->SetBringToFront(enable);
  9835. }
  9836. }
  9837. return 0;
  9838. #ifndef TOLUA_RELEASE
  9839. tolua_lerror:
  9840. tolua_error(tolua_S,"#ferror in function 'SetBringToFront'.",&tolua_err);
  9841. return 0;
  9842. #endif
  9843. }
  9844. #endif //#ifndef TOLUA_DISABLE
  9845. /* method: SetBringToBack of class UIElement */
  9846. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetBringToBack00
  9847. static int tolua_UI_UIElement_SetBringToBack00(lua_State* tolua_S)
  9848. {
  9849. #ifndef TOLUA_RELEASE
  9850. tolua_Error tolua_err;
  9851. if (
  9852. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9853. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  9854. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9855. )
  9856. goto tolua_lerror;
  9857. else
  9858. #endif
  9859. {
  9860. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9861. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  9862. #ifndef TOLUA_RELEASE
  9863. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBringToBack'", NULL);
  9864. #endif
  9865. {
  9866. self->SetBringToBack(enable);
  9867. }
  9868. }
  9869. return 0;
  9870. #ifndef TOLUA_RELEASE
  9871. tolua_lerror:
  9872. tolua_error(tolua_S,"#ferror in function 'SetBringToBack'.",&tolua_err);
  9873. return 0;
  9874. #endif
  9875. }
  9876. #endif //#ifndef TOLUA_DISABLE
  9877. /* method: SetClipChildren of class UIElement */
  9878. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetClipChildren00
  9879. static int tolua_UI_UIElement_SetClipChildren00(lua_State* tolua_S)
  9880. {
  9881. #ifndef TOLUA_RELEASE
  9882. tolua_Error tolua_err;
  9883. if (
  9884. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9885. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  9886. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9887. )
  9888. goto tolua_lerror;
  9889. else
  9890. #endif
  9891. {
  9892. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9893. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  9894. #ifndef TOLUA_RELEASE
  9895. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetClipChildren'", NULL);
  9896. #endif
  9897. {
  9898. self->SetClipChildren(enable);
  9899. }
  9900. }
  9901. return 0;
  9902. #ifndef TOLUA_RELEASE
  9903. tolua_lerror:
  9904. tolua_error(tolua_S,"#ferror in function 'SetClipChildren'.",&tolua_err);
  9905. return 0;
  9906. #endif
  9907. }
  9908. #endif //#ifndef TOLUA_DISABLE
  9909. /* method: SetSortChildren of class UIElement */
  9910. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetSortChildren00
  9911. static int tolua_UI_UIElement_SetSortChildren00(lua_State* tolua_S)
  9912. {
  9913. #ifndef TOLUA_RELEASE
  9914. tolua_Error tolua_err;
  9915. if (
  9916. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9917. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  9918. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9919. )
  9920. goto tolua_lerror;
  9921. else
  9922. #endif
  9923. {
  9924. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9925. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  9926. #ifndef TOLUA_RELEASE
  9927. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSortChildren'", NULL);
  9928. #endif
  9929. {
  9930. self->SetSortChildren(enable);
  9931. }
  9932. }
  9933. return 0;
  9934. #ifndef TOLUA_RELEASE
  9935. tolua_lerror:
  9936. tolua_error(tolua_S,"#ferror in function 'SetSortChildren'.",&tolua_err);
  9937. return 0;
  9938. #endif
  9939. }
  9940. #endif //#ifndef TOLUA_DISABLE
  9941. /* method: SetUseDerivedOpacity of class UIElement */
  9942. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetUseDerivedOpacity00
  9943. static int tolua_UI_UIElement_SetUseDerivedOpacity00(lua_State* tolua_S)
  9944. {
  9945. #ifndef TOLUA_RELEASE
  9946. tolua_Error tolua_err;
  9947. if (
  9948. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9949. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  9950. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9951. )
  9952. goto tolua_lerror;
  9953. else
  9954. #endif
  9955. {
  9956. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9957. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  9958. #ifndef TOLUA_RELEASE
  9959. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetUseDerivedOpacity'", NULL);
  9960. #endif
  9961. {
  9962. self->SetUseDerivedOpacity(enable);
  9963. }
  9964. }
  9965. return 0;
  9966. #ifndef TOLUA_RELEASE
  9967. tolua_lerror:
  9968. tolua_error(tolua_S,"#ferror in function 'SetUseDerivedOpacity'.",&tolua_err);
  9969. return 0;
  9970. #endif
  9971. }
  9972. #endif //#ifndef TOLUA_DISABLE
  9973. /* method: SetEnabled of class UIElement */
  9974. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetEnabled00
  9975. static int tolua_UI_UIElement_SetEnabled00(lua_State* tolua_S)
  9976. {
  9977. #ifndef TOLUA_RELEASE
  9978. tolua_Error tolua_err;
  9979. if (
  9980. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9981. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  9982. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9983. )
  9984. goto tolua_lerror;
  9985. else
  9986. #endif
  9987. {
  9988. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9989. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  9990. #ifndef TOLUA_RELEASE
  9991. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEnabled'", NULL);
  9992. #endif
  9993. {
  9994. self->SetEnabled(enable);
  9995. }
  9996. }
  9997. return 0;
  9998. #ifndef TOLUA_RELEASE
  9999. tolua_lerror:
  10000. tolua_error(tolua_S,"#ferror in function 'SetEnabled'.",&tolua_err);
  10001. return 0;
  10002. #endif
  10003. }
  10004. #endif //#ifndef TOLUA_DISABLE
  10005. /* method: SetFocus of class UIElement */
  10006. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetFocus00
  10007. static int tolua_UI_UIElement_SetFocus00(lua_State* tolua_S)
  10008. {
  10009. #ifndef TOLUA_RELEASE
  10010. tolua_Error tolua_err;
  10011. if (
  10012. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10013. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  10014. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10015. )
  10016. goto tolua_lerror;
  10017. else
  10018. #endif
  10019. {
  10020. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10021. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  10022. #ifndef TOLUA_RELEASE
  10023. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFocus'", NULL);
  10024. #endif
  10025. {
  10026. self->SetFocus(enable);
  10027. }
  10028. }
  10029. return 0;
  10030. #ifndef TOLUA_RELEASE
  10031. tolua_lerror:
  10032. tolua_error(tolua_S,"#ferror in function 'SetFocus'.",&tolua_err);
  10033. return 0;
  10034. #endif
  10035. }
  10036. #endif //#ifndef TOLUA_DISABLE
  10037. /* method: SetSelected of class UIElement */
  10038. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetSelected00
  10039. static int tolua_UI_UIElement_SetSelected00(lua_State* tolua_S)
  10040. {
  10041. #ifndef TOLUA_RELEASE
  10042. tolua_Error tolua_err;
  10043. if (
  10044. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10045. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  10046. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10047. )
  10048. goto tolua_lerror;
  10049. else
  10050. #endif
  10051. {
  10052. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10053. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  10054. #ifndef TOLUA_RELEASE
  10055. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSelected'", NULL);
  10056. #endif
  10057. {
  10058. self->SetSelected(enable);
  10059. }
  10060. }
  10061. return 0;
  10062. #ifndef TOLUA_RELEASE
  10063. tolua_lerror:
  10064. tolua_error(tolua_S,"#ferror in function 'SetSelected'.",&tolua_err);
  10065. return 0;
  10066. #endif
  10067. }
  10068. #endif //#ifndef TOLUA_DISABLE
  10069. /* method: SetVisible of class UIElement */
  10070. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetVisible00
  10071. static int tolua_UI_UIElement_SetVisible00(lua_State* tolua_S)
  10072. {
  10073. #ifndef TOLUA_RELEASE
  10074. tolua_Error tolua_err;
  10075. if (
  10076. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10077. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  10078. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10079. )
  10080. goto tolua_lerror;
  10081. else
  10082. #endif
  10083. {
  10084. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10085. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  10086. #ifndef TOLUA_RELEASE
  10087. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetVisible'", NULL);
  10088. #endif
  10089. {
  10090. self->SetVisible(enable);
  10091. }
  10092. }
  10093. return 0;
  10094. #ifndef TOLUA_RELEASE
  10095. tolua_lerror:
  10096. tolua_error(tolua_S,"#ferror in function 'SetVisible'.",&tolua_err);
  10097. return 0;
  10098. #endif
  10099. }
  10100. #endif //#ifndef TOLUA_DISABLE
  10101. /* method: SetFocusMode of class UIElement */
  10102. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetFocusMode00
  10103. static int tolua_UI_UIElement_SetFocusMode00(lua_State* tolua_S)
  10104. {
  10105. #ifndef TOLUA_RELEASE
  10106. tolua_Error tolua_err;
  10107. if (
  10108. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10109. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10110. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10111. )
  10112. goto tolua_lerror;
  10113. else
  10114. #endif
  10115. {
  10116. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10117. FocusMode mode = ((FocusMode) (int) tolua_tonumber(tolua_S,2,0));
  10118. #ifndef TOLUA_RELEASE
  10119. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFocusMode'", NULL);
  10120. #endif
  10121. {
  10122. self->SetFocusMode(mode);
  10123. }
  10124. }
  10125. return 0;
  10126. #ifndef TOLUA_RELEASE
  10127. tolua_lerror:
  10128. tolua_error(tolua_S,"#ferror in function 'SetFocusMode'.",&tolua_err);
  10129. return 0;
  10130. #endif
  10131. }
  10132. #endif //#ifndef TOLUA_DISABLE
  10133. /* method: SetDragDropMode of class UIElement */
  10134. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetDragDropMode00
  10135. static int tolua_UI_UIElement_SetDragDropMode00(lua_State* tolua_S)
  10136. {
  10137. #ifndef TOLUA_RELEASE
  10138. tolua_Error tolua_err;
  10139. if (
  10140. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10141. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10142. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10143. )
  10144. goto tolua_lerror;
  10145. else
  10146. #endif
  10147. {
  10148. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10149. unsigned mode = ((unsigned) tolua_tonumber(tolua_S,2,0));
  10150. #ifndef TOLUA_RELEASE
  10151. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDragDropMode'", NULL);
  10152. #endif
  10153. {
  10154. self->SetDragDropMode(mode);
  10155. }
  10156. }
  10157. return 0;
  10158. #ifndef TOLUA_RELEASE
  10159. tolua_lerror:
  10160. tolua_error(tolua_S,"#ferror in function 'SetDragDropMode'.",&tolua_err);
  10161. return 0;
  10162. #endif
  10163. }
  10164. #endif //#ifndef TOLUA_DISABLE
  10165. /* method: SetStyle of class UIElement */
  10166. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetStyle00
  10167. static int tolua_UI_UIElement_SetStyle00(lua_State* tolua_S)
  10168. {
  10169. #ifndef TOLUA_RELEASE
  10170. tolua_Error tolua_err;
  10171. if (
  10172. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10173. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  10174. !tolua_isusertype(tolua_S,3,"XMLFile",1,&tolua_err) ||
  10175. !tolua_isnoobj(tolua_S,4,&tolua_err)
  10176. )
  10177. goto tolua_lerror;
  10178. else
  10179. #endif
  10180. {
  10181. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10182. const String* styleName = ((const String*) tolua_tousertype(tolua_S,2,0));
  10183. XMLFile* file = ((XMLFile*) tolua_tousertype(tolua_S,3,0));
  10184. #ifndef TOLUA_RELEASE
  10185. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetStyle'", NULL);
  10186. #endif
  10187. {
  10188. bool tolua_ret = (bool) self->SetStyle(*styleName,file);
  10189. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  10190. }
  10191. }
  10192. return 1;
  10193. #ifndef TOLUA_RELEASE
  10194. tolua_lerror:
  10195. tolua_error(tolua_S,"#ferror in function 'SetStyle'.",&tolua_err);
  10196. return 0;
  10197. #endif
  10198. }
  10199. #endif //#ifndef TOLUA_DISABLE
  10200. /* method: SetStyle of class UIElement */
  10201. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetStyle01
  10202. static int tolua_UI_UIElement_SetStyle01(lua_State* tolua_S)
  10203. {
  10204. tolua_Error tolua_err;
  10205. if (
  10206. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10207. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const XMLElement",0,&tolua_err)) ||
  10208. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10209. )
  10210. goto tolua_lerror;
  10211. else
  10212. {
  10213. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10214. const XMLElement* element = ((const XMLElement*) tolua_tousertype(tolua_S,2,0));
  10215. #ifndef TOLUA_RELEASE
  10216. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetStyle'", NULL);
  10217. #endif
  10218. {
  10219. bool tolua_ret = (bool) self->SetStyle(*element);
  10220. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  10221. }
  10222. }
  10223. return 1;
  10224. tolua_lerror:
  10225. return tolua_UI_UIElement_SetStyle00(tolua_S);
  10226. }
  10227. #endif //#ifndef TOLUA_DISABLE
  10228. /* method: SetStyleAuto of class UIElement */
  10229. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetStyleAuto00
  10230. static int tolua_UI_UIElement_SetStyleAuto00(lua_State* tolua_S)
  10231. {
  10232. #ifndef TOLUA_RELEASE
  10233. tolua_Error tolua_err;
  10234. if (
  10235. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10236. !tolua_isusertype(tolua_S,2,"XMLFile",1,&tolua_err) ||
  10237. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10238. )
  10239. goto tolua_lerror;
  10240. else
  10241. #endif
  10242. {
  10243. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10244. XMLFile* file = ((XMLFile*) tolua_tousertype(tolua_S,2,0));
  10245. #ifndef TOLUA_RELEASE
  10246. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetStyleAuto'", NULL);
  10247. #endif
  10248. {
  10249. bool tolua_ret = (bool) self->SetStyleAuto(file);
  10250. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  10251. }
  10252. }
  10253. return 1;
  10254. #ifndef TOLUA_RELEASE
  10255. tolua_lerror:
  10256. tolua_error(tolua_S,"#ferror in function 'SetStyleAuto'.",&tolua_err);
  10257. return 0;
  10258. #endif
  10259. }
  10260. #endif //#ifndef TOLUA_DISABLE
  10261. /* method: SetDefaultStyle of class UIElement */
  10262. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetDefaultStyle00
  10263. static int tolua_UI_UIElement_SetDefaultStyle00(lua_State* tolua_S)
  10264. {
  10265. #ifndef TOLUA_RELEASE
  10266. tolua_Error tolua_err;
  10267. if (
  10268. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10269. !tolua_isusertype(tolua_S,2,"XMLFile",0,&tolua_err) ||
  10270. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10271. )
  10272. goto tolua_lerror;
  10273. else
  10274. #endif
  10275. {
  10276. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10277. XMLFile* style = ((XMLFile*) tolua_tousertype(tolua_S,2,0));
  10278. #ifndef TOLUA_RELEASE
  10279. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDefaultStyle'", NULL);
  10280. #endif
  10281. {
  10282. self->SetDefaultStyle(style);
  10283. }
  10284. }
  10285. return 0;
  10286. #ifndef TOLUA_RELEASE
  10287. tolua_lerror:
  10288. tolua_error(tolua_S,"#ferror in function 'SetDefaultStyle'.",&tolua_err);
  10289. return 0;
  10290. #endif
  10291. }
  10292. #endif //#ifndef TOLUA_DISABLE
  10293. /* method: SetLayout of class UIElement */
  10294. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetLayout00
  10295. static int tolua_UI_UIElement_SetLayout00(lua_State* tolua_S)
  10296. {
  10297. #ifndef TOLUA_RELEASE
  10298. tolua_Error tolua_err;
  10299. if (
  10300. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10301. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10302. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  10303. !tolua_isnoobj(tolua_S,4,&tolua_err)
  10304. )
  10305. goto tolua_lerror;
  10306. else
  10307. #endif
  10308. {
  10309. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10310. LayoutMode mode = ((LayoutMode) (int) tolua_tonumber(tolua_S,2,0));
  10311. int spacing = ((int) tolua_tonumber(tolua_S,3,0));
  10312. #ifndef TOLUA_RELEASE
  10313. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLayout'", NULL);
  10314. #endif
  10315. {
  10316. self->SetLayout(mode,spacing);
  10317. }
  10318. }
  10319. return 0;
  10320. #ifndef TOLUA_RELEASE
  10321. tolua_lerror:
  10322. tolua_error(tolua_S,"#ferror in function 'SetLayout'.",&tolua_err);
  10323. return 0;
  10324. #endif
  10325. }
  10326. #endif //#ifndef TOLUA_DISABLE
  10327. /* method: SetLayout of class UIElement */
  10328. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetLayout01
  10329. static int tolua_UI_UIElement_SetLayout01(lua_State* tolua_S)
  10330. {
  10331. tolua_Error tolua_err;
  10332. if (
  10333. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10334. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10335. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10336. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const IntRect",0,&tolua_err)) ||
  10337. !tolua_isnoobj(tolua_S,5,&tolua_err)
  10338. )
  10339. goto tolua_lerror;
  10340. else
  10341. {
  10342. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10343. LayoutMode mode = ((LayoutMode) (int) tolua_tonumber(tolua_S,2,0));
  10344. int spacing = ((int) tolua_tonumber(tolua_S,3,0));
  10345. const IntRect* border = ((const IntRect*) tolua_tousertype(tolua_S,4,0));
  10346. #ifndef TOLUA_RELEASE
  10347. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLayout'", NULL);
  10348. #endif
  10349. {
  10350. self->SetLayout(mode,spacing,*border);
  10351. }
  10352. }
  10353. return 0;
  10354. tolua_lerror:
  10355. return tolua_UI_UIElement_SetLayout00(tolua_S);
  10356. }
  10357. #endif //#ifndef TOLUA_DISABLE
  10358. /* method: SetLayoutMode of class UIElement */
  10359. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetLayoutMode00
  10360. static int tolua_UI_UIElement_SetLayoutMode00(lua_State* tolua_S)
  10361. {
  10362. #ifndef TOLUA_RELEASE
  10363. tolua_Error tolua_err;
  10364. if (
  10365. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10366. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10367. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10368. )
  10369. goto tolua_lerror;
  10370. else
  10371. #endif
  10372. {
  10373. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10374. LayoutMode mode = ((LayoutMode) (int) tolua_tonumber(tolua_S,2,0));
  10375. #ifndef TOLUA_RELEASE
  10376. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLayoutMode'", NULL);
  10377. #endif
  10378. {
  10379. self->SetLayoutMode(mode);
  10380. }
  10381. }
  10382. return 0;
  10383. #ifndef TOLUA_RELEASE
  10384. tolua_lerror:
  10385. tolua_error(tolua_S,"#ferror in function 'SetLayoutMode'.",&tolua_err);
  10386. return 0;
  10387. #endif
  10388. }
  10389. #endif //#ifndef TOLUA_DISABLE
  10390. /* method: SetLayoutSpacing of class UIElement */
  10391. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetLayoutSpacing00
  10392. static int tolua_UI_UIElement_SetLayoutSpacing00(lua_State* tolua_S)
  10393. {
  10394. #ifndef TOLUA_RELEASE
  10395. tolua_Error tolua_err;
  10396. if (
  10397. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10398. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10399. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10400. )
  10401. goto tolua_lerror;
  10402. else
  10403. #endif
  10404. {
  10405. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10406. int spacing = ((int) tolua_tonumber(tolua_S,2,0));
  10407. #ifndef TOLUA_RELEASE
  10408. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLayoutSpacing'", NULL);
  10409. #endif
  10410. {
  10411. self->SetLayoutSpacing(spacing);
  10412. }
  10413. }
  10414. return 0;
  10415. #ifndef TOLUA_RELEASE
  10416. tolua_lerror:
  10417. tolua_error(tolua_S,"#ferror in function 'SetLayoutSpacing'.",&tolua_err);
  10418. return 0;
  10419. #endif
  10420. }
  10421. #endif //#ifndef TOLUA_DISABLE
  10422. /* method: SetLayoutBorder of class UIElement */
  10423. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetLayoutBorder00
  10424. static int tolua_UI_UIElement_SetLayoutBorder00(lua_State* tolua_S)
  10425. {
  10426. #ifndef TOLUA_RELEASE
  10427. tolua_Error tolua_err;
  10428. if (
  10429. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10430. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntRect",0,&tolua_err)) ||
  10431. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10432. )
  10433. goto tolua_lerror;
  10434. else
  10435. #endif
  10436. {
  10437. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10438. const IntRect* border = ((const IntRect*) tolua_tousertype(tolua_S,2,0));
  10439. #ifndef TOLUA_RELEASE
  10440. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLayoutBorder'", NULL);
  10441. #endif
  10442. {
  10443. self->SetLayoutBorder(*border);
  10444. }
  10445. }
  10446. return 0;
  10447. #ifndef TOLUA_RELEASE
  10448. tolua_lerror:
  10449. tolua_error(tolua_S,"#ferror in function 'SetLayoutBorder'.",&tolua_err);
  10450. return 0;
  10451. #endif
  10452. }
  10453. #endif //#ifndef TOLUA_DISABLE
  10454. /* method: SetIndent of class UIElement */
  10455. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetIndent00
  10456. static int tolua_UI_UIElement_SetIndent00(lua_State* tolua_S)
  10457. {
  10458. #ifndef TOLUA_RELEASE
  10459. tolua_Error tolua_err;
  10460. if (
  10461. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10462. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10463. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10464. )
  10465. goto tolua_lerror;
  10466. else
  10467. #endif
  10468. {
  10469. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10470. int indent = ((int) tolua_tonumber(tolua_S,2,0));
  10471. #ifndef TOLUA_RELEASE
  10472. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetIndent'", NULL);
  10473. #endif
  10474. {
  10475. self->SetIndent(indent);
  10476. }
  10477. }
  10478. return 0;
  10479. #ifndef TOLUA_RELEASE
  10480. tolua_lerror:
  10481. tolua_error(tolua_S,"#ferror in function 'SetIndent'.",&tolua_err);
  10482. return 0;
  10483. #endif
  10484. }
  10485. #endif //#ifndef TOLUA_DISABLE
  10486. /* method: SetIndentSpacing of class UIElement */
  10487. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetIndentSpacing00
  10488. static int tolua_UI_UIElement_SetIndentSpacing00(lua_State* tolua_S)
  10489. {
  10490. #ifndef TOLUA_RELEASE
  10491. tolua_Error tolua_err;
  10492. if (
  10493. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10494. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10495. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10496. )
  10497. goto tolua_lerror;
  10498. else
  10499. #endif
  10500. {
  10501. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10502. int indentSpacing = ((int) tolua_tonumber(tolua_S,2,0));
  10503. #ifndef TOLUA_RELEASE
  10504. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetIndentSpacing'", NULL);
  10505. #endif
  10506. {
  10507. self->SetIndentSpacing(indentSpacing);
  10508. }
  10509. }
  10510. return 0;
  10511. #ifndef TOLUA_RELEASE
  10512. tolua_lerror:
  10513. tolua_error(tolua_S,"#ferror in function 'SetIndentSpacing'.",&tolua_err);
  10514. return 0;
  10515. #endif
  10516. }
  10517. #endif //#ifndef TOLUA_DISABLE
  10518. /* method: UpdateLayout of class UIElement */
  10519. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_UpdateLayout00
  10520. static int tolua_UI_UIElement_UpdateLayout00(lua_State* tolua_S)
  10521. {
  10522. #ifndef TOLUA_RELEASE
  10523. tolua_Error tolua_err;
  10524. if (
  10525. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10526. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10527. )
  10528. goto tolua_lerror;
  10529. else
  10530. #endif
  10531. {
  10532. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10533. #ifndef TOLUA_RELEASE
  10534. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'UpdateLayout'", NULL);
  10535. #endif
  10536. {
  10537. self->UpdateLayout();
  10538. }
  10539. }
  10540. return 0;
  10541. #ifndef TOLUA_RELEASE
  10542. tolua_lerror:
  10543. tolua_error(tolua_S,"#ferror in function 'UpdateLayout'.",&tolua_err);
  10544. return 0;
  10545. #endif
  10546. }
  10547. #endif //#ifndef TOLUA_DISABLE
  10548. /* method: DisableLayoutUpdate of class UIElement */
  10549. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_DisableLayoutUpdate00
  10550. static int tolua_UI_UIElement_DisableLayoutUpdate00(lua_State* tolua_S)
  10551. {
  10552. #ifndef TOLUA_RELEASE
  10553. tolua_Error tolua_err;
  10554. if (
  10555. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10556. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10557. )
  10558. goto tolua_lerror;
  10559. else
  10560. #endif
  10561. {
  10562. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10563. #ifndef TOLUA_RELEASE
  10564. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'DisableLayoutUpdate'", NULL);
  10565. #endif
  10566. {
  10567. self->DisableLayoutUpdate();
  10568. }
  10569. }
  10570. return 0;
  10571. #ifndef TOLUA_RELEASE
  10572. tolua_lerror:
  10573. tolua_error(tolua_S,"#ferror in function 'DisableLayoutUpdate'.",&tolua_err);
  10574. return 0;
  10575. #endif
  10576. }
  10577. #endif //#ifndef TOLUA_DISABLE
  10578. /* method: EnableLayoutUpdate of class UIElement */
  10579. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_EnableLayoutUpdate00
  10580. static int tolua_UI_UIElement_EnableLayoutUpdate00(lua_State* tolua_S)
  10581. {
  10582. #ifndef TOLUA_RELEASE
  10583. tolua_Error tolua_err;
  10584. if (
  10585. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10586. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10587. )
  10588. goto tolua_lerror;
  10589. else
  10590. #endif
  10591. {
  10592. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10593. #ifndef TOLUA_RELEASE
  10594. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'EnableLayoutUpdate'", NULL);
  10595. #endif
  10596. {
  10597. self->EnableLayoutUpdate();
  10598. }
  10599. }
  10600. return 0;
  10601. #ifndef TOLUA_RELEASE
  10602. tolua_lerror:
  10603. tolua_error(tolua_S,"#ferror in function 'EnableLayoutUpdate'.",&tolua_err);
  10604. return 0;
  10605. #endif
  10606. }
  10607. #endif //#ifndef TOLUA_DISABLE
  10608. /* method: BringToFront of class UIElement */
  10609. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_BringToFront00
  10610. static int tolua_UI_UIElement_BringToFront00(lua_State* tolua_S)
  10611. {
  10612. #ifndef TOLUA_RELEASE
  10613. tolua_Error tolua_err;
  10614. if (
  10615. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10616. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10617. )
  10618. goto tolua_lerror;
  10619. else
  10620. #endif
  10621. {
  10622. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10623. #ifndef TOLUA_RELEASE
  10624. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'BringToFront'", NULL);
  10625. #endif
  10626. {
  10627. self->BringToFront();
  10628. }
  10629. }
  10630. return 0;
  10631. #ifndef TOLUA_RELEASE
  10632. tolua_lerror:
  10633. tolua_error(tolua_S,"#ferror in function 'BringToFront'.",&tolua_err);
  10634. return 0;
  10635. #endif
  10636. }
  10637. #endif //#ifndef TOLUA_DISABLE
  10638. /* method: CreateChild of class UIElement */
  10639. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_CreateChild00
  10640. static int tolua_UI_UIElement_CreateChild00(lua_State* tolua_S)
  10641. {
  10642. #ifndef TOLUA_RELEASE
  10643. tolua_Error tolua_err;
  10644. if (
  10645. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10646. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  10647. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10648. )
  10649. goto tolua_lerror;
  10650. else
  10651. #endif
  10652. {
  10653. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10654. ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  10655. #ifndef TOLUA_RELEASE
  10656. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'CreateChild'", NULL);
  10657. #endif
  10658. {
  10659. UIElement* tolua_ret = (UIElement*) self->CreateChild(type);
  10660. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  10661. }
  10662. }
  10663. return 1;
  10664. #ifndef TOLUA_RELEASE
  10665. tolua_lerror:
  10666. tolua_error(tolua_S,"#ferror in function 'CreateChild'.",&tolua_err);
  10667. return 0;
  10668. #endif
  10669. }
  10670. #endif //#ifndef TOLUA_DISABLE
  10671. /* method: CreateChild of class UIElement */
  10672. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_CreateChild01
  10673. static int tolua_UI_UIElement_CreateChild01(lua_State* tolua_S)
  10674. {
  10675. tolua_Error tolua_err;
  10676. if (
  10677. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10678. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  10679. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const String",0,&tolua_err)) ||
  10680. !tolua_isnumber(tolua_S,4,1,&tolua_err) ||
  10681. !tolua_isnoobj(tolua_S,5,&tolua_err)
  10682. )
  10683. goto tolua_lerror;
  10684. else
  10685. {
  10686. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10687. ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  10688. const String* name = ((const String*) tolua_tousertype(tolua_S,3,0));
  10689. unsigned index = ((unsigned) tolua_tonumber(tolua_S,4,M_MAX_UNSIGNED));
  10690. #ifndef TOLUA_RELEASE
  10691. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'CreateChild'", NULL);
  10692. #endif
  10693. {
  10694. UIElement* tolua_ret = (UIElement*) self->CreateChild(type,*name,index);
  10695. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  10696. }
  10697. }
  10698. return 1;
  10699. tolua_lerror:
  10700. return tolua_UI_UIElement_CreateChild00(tolua_S);
  10701. }
  10702. #endif //#ifndef TOLUA_DISABLE
  10703. /* method: AddChild of class UIElement */
  10704. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_AddChild00
  10705. static int tolua_UI_UIElement_AddChild00(lua_State* tolua_S)
  10706. {
  10707. #ifndef TOLUA_RELEASE
  10708. tolua_Error tolua_err;
  10709. if (
  10710. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10711. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  10712. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10713. )
  10714. goto tolua_lerror;
  10715. else
  10716. #endif
  10717. {
  10718. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10719. UIElement* element = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  10720. #ifndef TOLUA_RELEASE
  10721. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddChild'", NULL);
  10722. #endif
  10723. {
  10724. self->AddChild(element);
  10725. }
  10726. }
  10727. return 0;
  10728. #ifndef TOLUA_RELEASE
  10729. tolua_lerror:
  10730. tolua_error(tolua_S,"#ferror in function 'AddChild'.",&tolua_err);
  10731. return 0;
  10732. #endif
  10733. }
  10734. #endif //#ifndef TOLUA_DISABLE
  10735. /* method: InsertChild of class UIElement */
  10736. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_InsertChild00
  10737. static int tolua_UI_UIElement_InsertChild00(lua_State* tolua_S)
  10738. {
  10739. #ifndef TOLUA_RELEASE
  10740. tolua_Error tolua_err;
  10741. if (
  10742. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10743. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10744. !tolua_isusertype(tolua_S,3,"UIElement",0,&tolua_err) ||
  10745. !tolua_isnoobj(tolua_S,4,&tolua_err)
  10746. )
  10747. goto tolua_lerror;
  10748. else
  10749. #endif
  10750. {
  10751. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10752. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  10753. UIElement* element = ((UIElement*) tolua_tousertype(tolua_S,3,0));
  10754. #ifndef TOLUA_RELEASE
  10755. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'InsertChild'", NULL);
  10756. #endif
  10757. {
  10758. self->InsertChild(index,element);
  10759. }
  10760. }
  10761. return 0;
  10762. #ifndef TOLUA_RELEASE
  10763. tolua_lerror:
  10764. tolua_error(tolua_S,"#ferror in function 'InsertChild'.",&tolua_err);
  10765. return 0;
  10766. #endif
  10767. }
  10768. #endif //#ifndef TOLUA_DISABLE
  10769. /* method: RemoveChild of class UIElement */
  10770. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_RemoveChild00
  10771. static int tolua_UI_UIElement_RemoveChild00(lua_State* tolua_S)
  10772. {
  10773. #ifndef TOLUA_RELEASE
  10774. tolua_Error tolua_err;
  10775. if (
  10776. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10777. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  10778. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  10779. !tolua_isnoobj(tolua_S,4,&tolua_err)
  10780. )
  10781. goto tolua_lerror;
  10782. else
  10783. #endif
  10784. {
  10785. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10786. UIElement* element = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  10787. unsigned index = ((unsigned) tolua_tonumber(tolua_S,3,0));
  10788. #ifndef TOLUA_RELEASE
  10789. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveChild'", NULL);
  10790. #endif
  10791. {
  10792. self->RemoveChild(element,index);
  10793. }
  10794. }
  10795. return 0;
  10796. #ifndef TOLUA_RELEASE
  10797. tolua_lerror:
  10798. tolua_error(tolua_S,"#ferror in function 'RemoveChild'.",&tolua_err);
  10799. return 0;
  10800. #endif
  10801. }
  10802. #endif //#ifndef TOLUA_DISABLE
  10803. /* method: RemoveChildAtIndex of class UIElement */
  10804. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_RemoveChildAtIndex00
  10805. static int tolua_UI_UIElement_RemoveChildAtIndex00(lua_State* tolua_S)
  10806. {
  10807. #ifndef TOLUA_RELEASE
  10808. tolua_Error tolua_err;
  10809. if (
  10810. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10811. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10812. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10813. )
  10814. goto tolua_lerror;
  10815. else
  10816. #endif
  10817. {
  10818. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10819. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  10820. #ifndef TOLUA_RELEASE
  10821. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveChildAtIndex'", NULL);
  10822. #endif
  10823. {
  10824. self->RemoveChildAtIndex(index);
  10825. }
  10826. }
  10827. return 0;
  10828. #ifndef TOLUA_RELEASE
  10829. tolua_lerror:
  10830. tolua_error(tolua_S,"#ferror in function 'RemoveChildAtIndex'.",&tolua_err);
  10831. return 0;
  10832. #endif
  10833. }
  10834. #endif //#ifndef TOLUA_DISABLE
  10835. /* method: RemoveAllChildren of class UIElement */
  10836. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_RemoveAllChildren00
  10837. static int tolua_UI_UIElement_RemoveAllChildren00(lua_State* tolua_S)
  10838. {
  10839. #ifndef TOLUA_RELEASE
  10840. tolua_Error tolua_err;
  10841. if (
  10842. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10843. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10844. )
  10845. goto tolua_lerror;
  10846. else
  10847. #endif
  10848. {
  10849. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10850. #ifndef TOLUA_RELEASE
  10851. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAllChildren'", NULL);
  10852. #endif
  10853. {
  10854. self->RemoveAllChildren();
  10855. }
  10856. }
  10857. return 0;
  10858. #ifndef TOLUA_RELEASE
  10859. tolua_lerror:
  10860. tolua_error(tolua_S,"#ferror in function 'RemoveAllChildren'.",&tolua_err);
  10861. return 0;
  10862. #endif
  10863. }
  10864. #endif //#ifndef TOLUA_DISABLE
  10865. /* method: Remove of class UIElement */
  10866. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_Remove00
  10867. static int tolua_UI_UIElement_Remove00(lua_State* tolua_S)
  10868. {
  10869. #ifndef TOLUA_RELEASE
  10870. tolua_Error tolua_err;
  10871. if (
  10872. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10873. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10874. )
  10875. goto tolua_lerror;
  10876. else
  10877. #endif
  10878. {
  10879. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10880. #ifndef TOLUA_RELEASE
  10881. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Remove'", NULL);
  10882. #endif
  10883. {
  10884. self->Remove();
  10885. }
  10886. }
  10887. return 0;
  10888. #ifndef TOLUA_RELEASE
  10889. tolua_lerror:
  10890. tolua_error(tolua_S,"#ferror in function 'Remove'.",&tolua_err);
  10891. return 0;
  10892. #endif
  10893. }
  10894. #endif //#ifndef TOLUA_DISABLE
  10895. /* method: FindChild of class UIElement */
  10896. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_FindChild00
  10897. static int tolua_UI_UIElement_FindChild00(lua_State* tolua_S)
  10898. {
  10899. #ifndef TOLUA_RELEASE
  10900. tolua_Error tolua_err;
  10901. if (
  10902. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  10903. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  10904. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10905. )
  10906. goto tolua_lerror;
  10907. else
  10908. #endif
  10909. {
  10910. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  10911. UIElement* element = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  10912. #ifndef TOLUA_RELEASE
  10913. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'FindChild'", NULL);
  10914. #endif
  10915. {
  10916. unsigned tolua_ret = (unsigned) self->FindChild(element);
  10917. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  10918. }
  10919. }
  10920. return 1;
  10921. #ifndef TOLUA_RELEASE
  10922. tolua_lerror:
  10923. tolua_error(tolua_S,"#ferror in function 'FindChild'.",&tolua_err);
  10924. return 0;
  10925. #endif
  10926. }
  10927. #endif //#ifndef TOLUA_DISABLE
  10928. /* method: SetParent of class UIElement */
  10929. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetParent00
  10930. static int tolua_UI_UIElement_SetParent00(lua_State* tolua_S)
  10931. {
  10932. #ifndef TOLUA_RELEASE
  10933. tolua_Error tolua_err;
  10934. if (
  10935. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10936. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  10937. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  10938. !tolua_isnoobj(tolua_S,4,&tolua_err)
  10939. )
  10940. goto tolua_lerror;
  10941. else
  10942. #endif
  10943. {
  10944. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10945. UIElement* parent = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  10946. unsigned index = ((unsigned) tolua_tonumber(tolua_S,3,M_MAX_UNSIGNED));
  10947. #ifndef TOLUA_RELEASE
  10948. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetParent'", NULL);
  10949. #endif
  10950. {
  10951. self->SetParent(parent,index);
  10952. }
  10953. }
  10954. return 0;
  10955. #ifndef TOLUA_RELEASE
  10956. tolua_lerror:
  10957. tolua_error(tolua_S,"#ferror in function 'SetParent'.",&tolua_err);
  10958. return 0;
  10959. #endif
  10960. }
  10961. #endif //#ifndef TOLUA_DISABLE
  10962. /* method: SetVar of class UIElement */
  10963. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetVar00
  10964. static int tolua_UI_UIElement_SetVar00(lua_State* tolua_S)
  10965. {
  10966. #ifndef TOLUA_RELEASE
  10967. tolua_Error tolua_err;
  10968. if (
  10969. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10970. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  10971. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Variant",0,&tolua_err)) ||
  10972. !tolua_isnoobj(tolua_S,4,&tolua_err)
  10973. )
  10974. goto tolua_lerror;
  10975. else
  10976. #endif
  10977. {
  10978. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10979. ShortStringHash key = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  10980. const Variant* value = ((const Variant*) tolua_tousertype(tolua_S,3,0));
  10981. #ifndef TOLUA_RELEASE
  10982. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetVar'", NULL);
  10983. #endif
  10984. {
  10985. self->SetVar(key,*value);
  10986. }
  10987. }
  10988. return 0;
  10989. #ifndef TOLUA_RELEASE
  10990. tolua_lerror:
  10991. tolua_error(tolua_S,"#ferror in function 'SetVar'.",&tolua_err);
  10992. return 0;
  10993. #endif
  10994. }
  10995. #endif //#ifndef TOLUA_DISABLE
  10996. /* method: SetInternal of class UIElement */
  10997. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetInternal00
  10998. static int tolua_UI_UIElement_SetInternal00(lua_State* tolua_S)
  10999. {
  11000. #ifndef TOLUA_RELEASE
  11001. tolua_Error tolua_err;
  11002. if (
  11003. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  11004. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  11005. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11006. )
  11007. goto tolua_lerror;
  11008. else
  11009. #endif
  11010. {
  11011. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  11012. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  11013. #ifndef TOLUA_RELEASE
  11014. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetInternal'", NULL);
  11015. #endif
  11016. {
  11017. self->SetInternal(enable);
  11018. }
  11019. }
  11020. return 0;
  11021. #ifndef TOLUA_RELEASE
  11022. tolua_lerror:
  11023. tolua_error(tolua_S,"#ferror in function 'SetInternal'.",&tolua_err);
  11024. return 0;
  11025. #endif
  11026. }
  11027. #endif //#ifndef TOLUA_DISABLE
  11028. /* method: SetTraversalMode of class UIElement */
  11029. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetTraversalMode00
  11030. static int tolua_UI_UIElement_SetTraversalMode00(lua_State* tolua_S)
  11031. {
  11032. #ifndef TOLUA_RELEASE
  11033. tolua_Error tolua_err;
  11034. if (
  11035. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  11036. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11037. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11038. )
  11039. goto tolua_lerror;
  11040. else
  11041. #endif
  11042. {
  11043. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  11044. TraversalMode traversalMode = ((TraversalMode) (int) tolua_tonumber(tolua_S,2,0));
  11045. #ifndef TOLUA_RELEASE
  11046. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTraversalMode'", NULL);
  11047. #endif
  11048. {
  11049. self->SetTraversalMode(traversalMode);
  11050. }
  11051. }
  11052. return 0;
  11053. #ifndef TOLUA_RELEASE
  11054. tolua_lerror:
  11055. tolua_error(tolua_S,"#ferror in function 'SetTraversalMode'.",&tolua_err);
  11056. return 0;
  11057. #endif
  11058. }
  11059. #endif //#ifndef TOLUA_DISABLE
  11060. /* method: SetElementEventSender of class UIElement */
  11061. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetElementEventSender00
  11062. static int tolua_UI_UIElement_SetElementEventSender00(lua_State* tolua_S)
  11063. {
  11064. #ifndef TOLUA_RELEASE
  11065. tolua_Error tolua_err;
  11066. if (
  11067. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  11068. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  11069. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11070. )
  11071. goto tolua_lerror;
  11072. else
  11073. #endif
  11074. {
  11075. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  11076. bool flag = ((bool) tolua_toboolean(tolua_S,2,0));
  11077. #ifndef TOLUA_RELEASE
  11078. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetElementEventSender'", NULL);
  11079. #endif
  11080. {
  11081. self->SetElementEventSender(flag);
  11082. }
  11083. }
  11084. return 0;
  11085. #ifndef TOLUA_RELEASE
  11086. tolua_lerror:
  11087. tolua_error(tolua_S,"#ferror in function 'SetElementEventSender'.",&tolua_err);
  11088. return 0;
  11089. #endif
  11090. }
  11091. #endif //#ifndef TOLUA_DISABLE
  11092. /* method: GetName of class UIElement */
  11093. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetName00
  11094. static int tolua_UI_UIElement_GetName00(lua_State* tolua_S)
  11095. {
  11096. #ifndef TOLUA_RELEASE
  11097. tolua_Error tolua_err;
  11098. if (
  11099. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11100. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11101. )
  11102. goto tolua_lerror;
  11103. else
  11104. #endif
  11105. {
  11106. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11107. #ifndef TOLUA_RELEASE
  11108. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetName'", NULL);
  11109. #endif
  11110. {
  11111. const String& tolua_ret = (const String&) self->GetName();
  11112. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  11113. }
  11114. }
  11115. return 1;
  11116. #ifndef TOLUA_RELEASE
  11117. tolua_lerror:
  11118. tolua_error(tolua_S,"#ferror in function 'GetName'.",&tolua_err);
  11119. return 0;
  11120. #endif
  11121. }
  11122. #endif //#ifndef TOLUA_DISABLE
  11123. /* method: GetPosition of class UIElement */
  11124. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetPosition00
  11125. static int tolua_UI_UIElement_GetPosition00(lua_State* tolua_S)
  11126. {
  11127. #ifndef TOLUA_RELEASE
  11128. tolua_Error tolua_err;
  11129. if (
  11130. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11131. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11132. )
  11133. goto tolua_lerror;
  11134. else
  11135. #endif
  11136. {
  11137. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11138. #ifndef TOLUA_RELEASE
  11139. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPosition'", NULL);
  11140. #endif
  11141. {
  11142. const IntVector2& tolua_ret = (const IntVector2&) self->GetPosition();
  11143. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  11144. }
  11145. }
  11146. return 1;
  11147. #ifndef TOLUA_RELEASE
  11148. tolua_lerror:
  11149. tolua_error(tolua_S,"#ferror in function 'GetPosition'.",&tolua_err);
  11150. return 0;
  11151. #endif
  11152. }
  11153. #endif //#ifndef TOLUA_DISABLE
  11154. /* method: GetSize of class UIElement */
  11155. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetSize00
  11156. static int tolua_UI_UIElement_GetSize00(lua_State* tolua_S)
  11157. {
  11158. #ifndef TOLUA_RELEASE
  11159. tolua_Error tolua_err;
  11160. if (
  11161. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11162. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11163. )
  11164. goto tolua_lerror;
  11165. else
  11166. #endif
  11167. {
  11168. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11169. #ifndef TOLUA_RELEASE
  11170. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSize'", NULL);
  11171. #endif
  11172. {
  11173. const IntVector2& tolua_ret = (const IntVector2&) self->GetSize();
  11174. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  11175. }
  11176. }
  11177. return 1;
  11178. #ifndef TOLUA_RELEASE
  11179. tolua_lerror:
  11180. tolua_error(tolua_S,"#ferror in function 'GetSize'.",&tolua_err);
  11181. return 0;
  11182. #endif
  11183. }
  11184. #endif //#ifndef TOLUA_DISABLE
  11185. /* method: GetWidth of class UIElement */
  11186. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetWidth00
  11187. static int tolua_UI_UIElement_GetWidth00(lua_State* tolua_S)
  11188. {
  11189. #ifndef TOLUA_RELEASE
  11190. tolua_Error tolua_err;
  11191. if (
  11192. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11193. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11194. )
  11195. goto tolua_lerror;
  11196. else
  11197. #endif
  11198. {
  11199. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11200. #ifndef TOLUA_RELEASE
  11201. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWidth'", NULL);
  11202. #endif
  11203. {
  11204. int tolua_ret = (int) self->GetWidth();
  11205. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11206. }
  11207. }
  11208. return 1;
  11209. #ifndef TOLUA_RELEASE
  11210. tolua_lerror:
  11211. tolua_error(tolua_S,"#ferror in function 'GetWidth'.",&tolua_err);
  11212. return 0;
  11213. #endif
  11214. }
  11215. #endif //#ifndef TOLUA_DISABLE
  11216. /* method: GetHeight of class UIElement */
  11217. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetHeight00
  11218. static int tolua_UI_UIElement_GetHeight00(lua_State* tolua_S)
  11219. {
  11220. #ifndef TOLUA_RELEASE
  11221. tolua_Error tolua_err;
  11222. if (
  11223. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11224. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11225. )
  11226. goto tolua_lerror;
  11227. else
  11228. #endif
  11229. {
  11230. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11231. #ifndef TOLUA_RELEASE
  11232. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHeight'", NULL);
  11233. #endif
  11234. {
  11235. int tolua_ret = (int) self->GetHeight();
  11236. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11237. }
  11238. }
  11239. return 1;
  11240. #ifndef TOLUA_RELEASE
  11241. tolua_lerror:
  11242. tolua_error(tolua_S,"#ferror in function 'GetHeight'.",&tolua_err);
  11243. return 0;
  11244. #endif
  11245. }
  11246. #endif //#ifndef TOLUA_DISABLE
  11247. /* method: GetMinSize of class UIElement */
  11248. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetMinSize00
  11249. static int tolua_UI_UIElement_GetMinSize00(lua_State* tolua_S)
  11250. {
  11251. #ifndef TOLUA_RELEASE
  11252. tolua_Error tolua_err;
  11253. if (
  11254. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11255. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11256. )
  11257. goto tolua_lerror;
  11258. else
  11259. #endif
  11260. {
  11261. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11262. #ifndef TOLUA_RELEASE
  11263. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinSize'", NULL);
  11264. #endif
  11265. {
  11266. const IntVector2& tolua_ret = (const IntVector2&) self->GetMinSize();
  11267. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  11268. }
  11269. }
  11270. return 1;
  11271. #ifndef TOLUA_RELEASE
  11272. tolua_lerror:
  11273. tolua_error(tolua_S,"#ferror in function 'GetMinSize'.",&tolua_err);
  11274. return 0;
  11275. #endif
  11276. }
  11277. #endif //#ifndef TOLUA_DISABLE
  11278. /* method: GetMinWidth of class UIElement */
  11279. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetMinWidth00
  11280. static int tolua_UI_UIElement_GetMinWidth00(lua_State* tolua_S)
  11281. {
  11282. #ifndef TOLUA_RELEASE
  11283. tolua_Error tolua_err;
  11284. if (
  11285. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11286. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11287. )
  11288. goto tolua_lerror;
  11289. else
  11290. #endif
  11291. {
  11292. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11293. #ifndef TOLUA_RELEASE
  11294. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinWidth'", NULL);
  11295. #endif
  11296. {
  11297. int tolua_ret = (int) self->GetMinWidth();
  11298. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11299. }
  11300. }
  11301. return 1;
  11302. #ifndef TOLUA_RELEASE
  11303. tolua_lerror:
  11304. tolua_error(tolua_S,"#ferror in function 'GetMinWidth'.",&tolua_err);
  11305. return 0;
  11306. #endif
  11307. }
  11308. #endif //#ifndef TOLUA_DISABLE
  11309. /* method: GetMinHeight of class UIElement */
  11310. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetMinHeight00
  11311. static int tolua_UI_UIElement_GetMinHeight00(lua_State* tolua_S)
  11312. {
  11313. #ifndef TOLUA_RELEASE
  11314. tolua_Error tolua_err;
  11315. if (
  11316. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11317. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11318. )
  11319. goto tolua_lerror;
  11320. else
  11321. #endif
  11322. {
  11323. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11324. #ifndef TOLUA_RELEASE
  11325. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinHeight'", NULL);
  11326. #endif
  11327. {
  11328. int tolua_ret = (int) self->GetMinHeight();
  11329. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11330. }
  11331. }
  11332. return 1;
  11333. #ifndef TOLUA_RELEASE
  11334. tolua_lerror:
  11335. tolua_error(tolua_S,"#ferror in function 'GetMinHeight'.",&tolua_err);
  11336. return 0;
  11337. #endif
  11338. }
  11339. #endif //#ifndef TOLUA_DISABLE
  11340. /* method: GetMaxSize of class UIElement */
  11341. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetMaxSize00
  11342. static int tolua_UI_UIElement_GetMaxSize00(lua_State* tolua_S)
  11343. {
  11344. #ifndef TOLUA_RELEASE
  11345. tolua_Error tolua_err;
  11346. if (
  11347. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11348. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11349. )
  11350. goto tolua_lerror;
  11351. else
  11352. #endif
  11353. {
  11354. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11355. #ifndef TOLUA_RELEASE
  11356. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxSize'", NULL);
  11357. #endif
  11358. {
  11359. const IntVector2& tolua_ret = (const IntVector2&) self->GetMaxSize();
  11360. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  11361. }
  11362. }
  11363. return 1;
  11364. #ifndef TOLUA_RELEASE
  11365. tolua_lerror:
  11366. tolua_error(tolua_S,"#ferror in function 'GetMaxSize'.",&tolua_err);
  11367. return 0;
  11368. #endif
  11369. }
  11370. #endif //#ifndef TOLUA_DISABLE
  11371. /* method: GetMaxWidth of class UIElement */
  11372. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetMaxWidth00
  11373. static int tolua_UI_UIElement_GetMaxWidth00(lua_State* tolua_S)
  11374. {
  11375. #ifndef TOLUA_RELEASE
  11376. tolua_Error tolua_err;
  11377. if (
  11378. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11379. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11380. )
  11381. goto tolua_lerror;
  11382. else
  11383. #endif
  11384. {
  11385. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11386. #ifndef TOLUA_RELEASE
  11387. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxWidth'", NULL);
  11388. #endif
  11389. {
  11390. int tolua_ret = (int) self->GetMaxWidth();
  11391. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11392. }
  11393. }
  11394. return 1;
  11395. #ifndef TOLUA_RELEASE
  11396. tolua_lerror:
  11397. tolua_error(tolua_S,"#ferror in function 'GetMaxWidth'.",&tolua_err);
  11398. return 0;
  11399. #endif
  11400. }
  11401. #endif //#ifndef TOLUA_DISABLE
  11402. /* method: GetMaxHeight of class UIElement */
  11403. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetMaxHeight00
  11404. static int tolua_UI_UIElement_GetMaxHeight00(lua_State* tolua_S)
  11405. {
  11406. #ifndef TOLUA_RELEASE
  11407. tolua_Error tolua_err;
  11408. if (
  11409. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11410. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11411. )
  11412. goto tolua_lerror;
  11413. else
  11414. #endif
  11415. {
  11416. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11417. #ifndef TOLUA_RELEASE
  11418. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxHeight'", NULL);
  11419. #endif
  11420. {
  11421. int tolua_ret = (int) self->GetMaxHeight();
  11422. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11423. }
  11424. }
  11425. return 1;
  11426. #ifndef TOLUA_RELEASE
  11427. tolua_lerror:
  11428. tolua_error(tolua_S,"#ferror in function 'GetMaxHeight'.",&tolua_err);
  11429. return 0;
  11430. #endif
  11431. }
  11432. #endif //#ifndef TOLUA_DISABLE
  11433. /* method: IsFixedSize of class UIElement */
  11434. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsFixedSize00
  11435. static int tolua_UI_UIElement_IsFixedSize00(lua_State* tolua_S)
  11436. {
  11437. #ifndef TOLUA_RELEASE
  11438. tolua_Error tolua_err;
  11439. if (
  11440. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11441. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11442. )
  11443. goto tolua_lerror;
  11444. else
  11445. #endif
  11446. {
  11447. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11448. #ifndef TOLUA_RELEASE
  11449. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsFixedSize'", NULL);
  11450. #endif
  11451. {
  11452. bool tolua_ret = (bool) self->IsFixedSize();
  11453. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  11454. }
  11455. }
  11456. return 1;
  11457. #ifndef TOLUA_RELEASE
  11458. tolua_lerror:
  11459. tolua_error(tolua_S,"#ferror in function 'IsFixedSize'.",&tolua_err);
  11460. return 0;
  11461. #endif
  11462. }
  11463. #endif //#ifndef TOLUA_DISABLE
  11464. /* method: IsFixedWidth of class UIElement */
  11465. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsFixedWidth00
  11466. static int tolua_UI_UIElement_IsFixedWidth00(lua_State* tolua_S)
  11467. {
  11468. #ifndef TOLUA_RELEASE
  11469. tolua_Error tolua_err;
  11470. if (
  11471. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11472. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11473. )
  11474. goto tolua_lerror;
  11475. else
  11476. #endif
  11477. {
  11478. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11479. #ifndef TOLUA_RELEASE
  11480. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsFixedWidth'", NULL);
  11481. #endif
  11482. {
  11483. bool tolua_ret = (bool) self->IsFixedWidth();
  11484. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  11485. }
  11486. }
  11487. return 1;
  11488. #ifndef TOLUA_RELEASE
  11489. tolua_lerror:
  11490. tolua_error(tolua_S,"#ferror in function 'IsFixedWidth'.",&tolua_err);
  11491. return 0;
  11492. #endif
  11493. }
  11494. #endif //#ifndef TOLUA_DISABLE
  11495. /* method: IsFixedHeight of class UIElement */
  11496. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsFixedHeight00
  11497. static int tolua_UI_UIElement_IsFixedHeight00(lua_State* tolua_S)
  11498. {
  11499. #ifndef TOLUA_RELEASE
  11500. tolua_Error tolua_err;
  11501. if (
  11502. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11503. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11504. )
  11505. goto tolua_lerror;
  11506. else
  11507. #endif
  11508. {
  11509. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11510. #ifndef TOLUA_RELEASE
  11511. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsFixedHeight'", NULL);
  11512. #endif
  11513. {
  11514. bool tolua_ret = (bool) self->IsFixedHeight();
  11515. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  11516. }
  11517. }
  11518. return 1;
  11519. #ifndef TOLUA_RELEASE
  11520. tolua_lerror:
  11521. tolua_error(tolua_S,"#ferror in function 'IsFixedHeight'.",&tolua_err);
  11522. return 0;
  11523. #endif
  11524. }
  11525. #endif //#ifndef TOLUA_DISABLE
  11526. /* method: GetChildOffset of class UIElement */
  11527. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetChildOffset00
  11528. static int tolua_UI_UIElement_GetChildOffset00(lua_State* tolua_S)
  11529. {
  11530. #ifndef TOLUA_RELEASE
  11531. tolua_Error tolua_err;
  11532. if (
  11533. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11534. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11535. )
  11536. goto tolua_lerror;
  11537. else
  11538. #endif
  11539. {
  11540. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11541. #ifndef TOLUA_RELEASE
  11542. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChildOffset'", NULL);
  11543. #endif
  11544. {
  11545. const IntVector2& tolua_ret = (const IntVector2&) self->GetChildOffset();
  11546. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  11547. }
  11548. }
  11549. return 1;
  11550. #ifndef TOLUA_RELEASE
  11551. tolua_lerror:
  11552. tolua_error(tolua_S,"#ferror in function 'GetChildOffset'.",&tolua_err);
  11553. return 0;
  11554. #endif
  11555. }
  11556. #endif //#ifndef TOLUA_DISABLE
  11557. /* method: GetHorizontalAlignment of class UIElement */
  11558. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetHorizontalAlignment00
  11559. static int tolua_UI_UIElement_GetHorizontalAlignment00(lua_State* tolua_S)
  11560. {
  11561. #ifndef TOLUA_RELEASE
  11562. tolua_Error tolua_err;
  11563. if (
  11564. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11565. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11566. )
  11567. goto tolua_lerror;
  11568. else
  11569. #endif
  11570. {
  11571. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11572. #ifndef TOLUA_RELEASE
  11573. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHorizontalAlignment'", NULL);
  11574. #endif
  11575. {
  11576. HorizontalAlignment tolua_ret = (HorizontalAlignment) self->GetHorizontalAlignment();
  11577. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11578. }
  11579. }
  11580. return 1;
  11581. #ifndef TOLUA_RELEASE
  11582. tolua_lerror:
  11583. tolua_error(tolua_S,"#ferror in function 'GetHorizontalAlignment'.",&tolua_err);
  11584. return 0;
  11585. #endif
  11586. }
  11587. #endif //#ifndef TOLUA_DISABLE
  11588. /* method: GetVerticalAlignment of class UIElement */
  11589. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetVerticalAlignment00
  11590. static int tolua_UI_UIElement_GetVerticalAlignment00(lua_State* tolua_S)
  11591. {
  11592. #ifndef TOLUA_RELEASE
  11593. tolua_Error tolua_err;
  11594. if (
  11595. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11596. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11597. )
  11598. goto tolua_lerror;
  11599. else
  11600. #endif
  11601. {
  11602. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11603. #ifndef TOLUA_RELEASE
  11604. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVerticalAlignment'", NULL);
  11605. #endif
  11606. {
  11607. VerticalAlignment tolua_ret = (VerticalAlignment) self->GetVerticalAlignment();
  11608. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11609. }
  11610. }
  11611. return 1;
  11612. #ifndef TOLUA_RELEASE
  11613. tolua_lerror:
  11614. tolua_error(tolua_S,"#ferror in function 'GetVerticalAlignment'.",&tolua_err);
  11615. return 0;
  11616. #endif
  11617. }
  11618. #endif //#ifndef TOLUA_DISABLE
  11619. /* method: GetClipBorder of class UIElement */
  11620. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetClipBorder00
  11621. static int tolua_UI_UIElement_GetClipBorder00(lua_State* tolua_S)
  11622. {
  11623. #ifndef TOLUA_RELEASE
  11624. tolua_Error tolua_err;
  11625. if (
  11626. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11627. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11628. )
  11629. goto tolua_lerror;
  11630. else
  11631. #endif
  11632. {
  11633. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11634. #ifndef TOLUA_RELEASE
  11635. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetClipBorder'", NULL);
  11636. #endif
  11637. {
  11638. const IntRect& tolua_ret = (const IntRect&) self->GetClipBorder();
  11639. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntRect");
  11640. }
  11641. }
  11642. return 1;
  11643. #ifndef TOLUA_RELEASE
  11644. tolua_lerror:
  11645. tolua_error(tolua_S,"#ferror in function 'GetClipBorder'.",&tolua_err);
  11646. return 0;
  11647. #endif
  11648. }
  11649. #endif //#ifndef TOLUA_DISABLE
  11650. /* method: GetColor of class UIElement */
  11651. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetColor00
  11652. static int tolua_UI_UIElement_GetColor00(lua_State* tolua_S)
  11653. {
  11654. #ifndef TOLUA_RELEASE
  11655. tolua_Error tolua_err;
  11656. if (
  11657. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11658. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11659. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11660. )
  11661. goto tolua_lerror;
  11662. else
  11663. #endif
  11664. {
  11665. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11666. Corner corner = ((Corner) (int) tolua_tonumber(tolua_S,2,0));
  11667. #ifndef TOLUA_RELEASE
  11668. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetColor'", NULL);
  11669. #endif
  11670. {
  11671. const Color& tolua_ret = (const Color&) self->GetColor(corner);
  11672. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  11673. }
  11674. }
  11675. return 1;
  11676. #ifndef TOLUA_RELEASE
  11677. tolua_lerror:
  11678. tolua_error(tolua_S,"#ferror in function 'GetColor'.",&tolua_err);
  11679. return 0;
  11680. #endif
  11681. }
  11682. #endif //#ifndef TOLUA_DISABLE
  11683. /* method: GetPriority of class UIElement */
  11684. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetPriority00
  11685. static int tolua_UI_UIElement_GetPriority00(lua_State* tolua_S)
  11686. {
  11687. #ifndef TOLUA_RELEASE
  11688. tolua_Error tolua_err;
  11689. if (
  11690. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11691. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11692. )
  11693. goto tolua_lerror;
  11694. else
  11695. #endif
  11696. {
  11697. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11698. #ifndef TOLUA_RELEASE
  11699. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPriority'", NULL);
  11700. #endif
  11701. {
  11702. int tolua_ret = (int) self->GetPriority();
  11703. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11704. }
  11705. }
  11706. return 1;
  11707. #ifndef TOLUA_RELEASE
  11708. tolua_lerror:
  11709. tolua_error(tolua_S,"#ferror in function 'GetPriority'.",&tolua_err);
  11710. return 0;
  11711. #endif
  11712. }
  11713. #endif //#ifndef TOLUA_DISABLE
  11714. /* method: GetOpacity of class UIElement */
  11715. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetOpacity00
  11716. static int tolua_UI_UIElement_GetOpacity00(lua_State* tolua_S)
  11717. {
  11718. #ifndef TOLUA_RELEASE
  11719. tolua_Error tolua_err;
  11720. if (
  11721. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11722. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11723. )
  11724. goto tolua_lerror;
  11725. else
  11726. #endif
  11727. {
  11728. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11729. #ifndef TOLUA_RELEASE
  11730. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOpacity'", NULL);
  11731. #endif
  11732. {
  11733. float tolua_ret = (float) self->GetOpacity();
  11734. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11735. }
  11736. }
  11737. return 1;
  11738. #ifndef TOLUA_RELEASE
  11739. tolua_lerror:
  11740. tolua_error(tolua_S,"#ferror in function 'GetOpacity'.",&tolua_err);
  11741. return 0;
  11742. #endif
  11743. }
  11744. #endif //#ifndef TOLUA_DISABLE
  11745. /* method: GetDerivedOpacity of class UIElement */
  11746. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetDerivedOpacity00
  11747. static int tolua_UI_UIElement_GetDerivedOpacity00(lua_State* tolua_S)
  11748. {
  11749. #ifndef TOLUA_RELEASE
  11750. tolua_Error tolua_err;
  11751. if (
  11752. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11753. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11754. )
  11755. goto tolua_lerror;
  11756. else
  11757. #endif
  11758. {
  11759. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11760. #ifndef TOLUA_RELEASE
  11761. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDerivedOpacity'", NULL);
  11762. #endif
  11763. {
  11764. float tolua_ret = (float) self->GetDerivedOpacity();
  11765. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11766. }
  11767. }
  11768. return 1;
  11769. #ifndef TOLUA_RELEASE
  11770. tolua_lerror:
  11771. tolua_error(tolua_S,"#ferror in function 'GetDerivedOpacity'.",&tolua_err);
  11772. return 0;
  11773. #endif
  11774. }
  11775. #endif //#ifndef TOLUA_DISABLE
  11776. /* method: GetBringToFront of class UIElement */
  11777. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetBringToFront00
  11778. static int tolua_UI_UIElement_GetBringToFront00(lua_State* tolua_S)
  11779. {
  11780. #ifndef TOLUA_RELEASE
  11781. tolua_Error tolua_err;
  11782. if (
  11783. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11784. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11785. )
  11786. goto tolua_lerror;
  11787. else
  11788. #endif
  11789. {
  11790. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11791. #ifndef TOLUA_RELEASE
  11792. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBringToFront'", NULL);
  11793. #endif
  11794. {
  11795. bool tolua_ret = (bool) self->GetBringToFront();
  11796. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  11797. }
  11798. }
  11799. return 1;
  11800. #ifndef TOLUA_RELEASE
  11801. tolua_lerror:
  11802. tolua_error(tolua_S,"#ferror in function 'GetBringToFront'.",&tolua_err);
  11803. return 0;
  11804. #endif
  11805. }
  11806. #endif //#ifndef TOLUA_DISABLE
  11807. /* method: GetBringToBack of class UIElement */
  11808. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetBringToBack00
  11809. static int tolua_UI_UIElement_GetBringToBack00(lua_State* tolua_S)
  11810. {
  11811. #ifndef TOLUA_RELEASE
  11812. tolua_Error tolua_err;
  11813. if (
  11814. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11815. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11816. )
  11817. goto tolua_lerror;
  11818. else
  11819. #endif
  11820. {
  11821. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11822. #ifndef TOLUA_RELEASE
  11823. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBringToBack'", NULL);
  11824. #endif
  11825. {
  11826. bool tolua_ret = (bool) self->GetBringToBack();
  11827. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  11828. }
  11829. }
  11830. return 1;
  11831. #ifndef TOLUA_RELEASE
  11832. tolua_lerror:
  11833. tolua_error(tolua_S,"#ferror in function 'GetBringToBack'.",&tolua_err);
  11834. return 0;
  11835. #endif
  11836. }
  11837. #endif //#ifndef TOLUA_DISABLE
  11838. /* method: GetClipChildren of class UIElement */
  11839. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetClipChildren00
  11840. static int tolua_UI_UIElement_GetClipChildren00(lua_State* tolua_S)
  11841. {
  11842. #ifndef TOLUA_RELEASE
  11843. tolua_Error tolua_err;
  11844. if (
  11845. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11846. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11847. )
  11848. goto tolua_lerror;
  11849. else
  11850. #endif
  11851. {
  11852. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11853. #ifndef TOLUA_RELEASE
  11854. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetClipChildren'", NULL);
  11855. #endif
  11856. {
  11857. bool tolua_ret = (bool) self->GetClipChildren();
  11858. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  11859. }
  11860. }
  11861. return 1;
  11862. #ifndef TOLUA_RELEASE
  11863. tolua_lerror:
  11864. tolua_error(tolua_S,"#ferror in function 'GetClipChildren'.",&tolua_err);
  11865. return 0;
  11866. #endif
  11867. }
  11868. #endif //#ifndef TOLUA_DISABLE
  11869. /* method: GetSortChildren of class UIElement */
  11870. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetSortChildren00
  11871. static int tolua_UI_UIElement_GetSortChildren00(lua_State* tolua_S)
  11872. {
  11873. #ifndef TOLUA_RELEASE
  11874. tolua_Error tolua_err;
  11875. if (
  11876. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11877. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11878. )
  11879. goto tolua_lerror;
  11880. else
  11881. #endif
  11882. {
  11883. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11884. #ifndef TOLUA_RELEASE
  11885. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSortChildren'", NULL);
  11886. #endif
  11887. {
  11888. bool tolua_ret = (bool) self->GetSortChildren();
  11889. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  11890. }
  11891. }
  11892. return 1;
  11893. #ifndef TOLUA_RELEASE
  11894. tolua_lerror:
  11895. tolua_error(tolua_S,"#ferror in function 'GetSortChildren'.",&tolua_err);
  11896. return 0;
  11897. #endif
  11898. }
  11899. #endif //#ifndef TOLUA_DISABLE
  11900. /* method: GetUseDerivedOpacity of class UIElement */
  11901. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetUseDerivedOpacity00
  11902. static int tolua_UI_UIElement_GetUseDerivedOpacity00(lua_State* tolua_S)
  11903. {
  11904. #ifndef TOLUA_RELEASE
  11905. tolua_Error tolua_err;
  11906. if (
  11907. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11908. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11909. )
  11910. goto tolua_lerror;
  11911. else
  11912. #endif
  11913. {
  11914. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11915. #ifndef TOLUA_RELEASE
  11916. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetUseDerivedOpacity'", NULL);
  11917. #endif
  11918. {
  11919. bool tolua_ret = (bool) self->GetUseDerivedOpacity();
  11920. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  11921. }
  11922. }
  11923. return 1;
  11924. #ifndef TOLUA_RELEASE
  11925. tolua_lerror:
  11926. tolua_error(tolua_S,"#ferror in function 'GetUseDerivedOpacity'.",&tolua_err);
  11927. return 0;
  11928. #endif
  11929. }
  11930. #endif //#ifndef TOLUA_DISABLE
  11931. /* method: HasFocus of class UIElement */
  11932. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_HasFocus00
  11933. static int tolua_UI_UIElement_HasFocus00(lua_State* tolua_S)
  11934. {
  11935. #ifndef TOLUA_RELEASE
  11936. tolua_Error tolua_err;
  11937. if (
  11938. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11939. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11940. )
  11941. goto tolua_lerror;
  11942. else
  11943. #endif
  11944. {
  11945. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11946. #ifndef TOLUA_RELEASE
  11947. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasFocus'", NULL);
  11948. #endif
  11949. {
  11950. bool tolua_ret = (bool) self->HasFocus();
  11951. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  11952. }
  11953. }
  11954. return 1;
  11955. #ifndef TOLUA_RELEASE
  11956. tolua_lerror:
  11957. tolua_error(tolua_S,"#ferror in function 'HasFocus'.",&tolua_err);
  11958. return 0;
  11959. #endif
  11960. }
  11961. #endif //#ifndef TOLUA_DISABLE
  11962. /* method: IsEnabled of class UIElement */
  11963. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsEnabled00
  11964. static int tolua_UI_UIElement_IsEnabled00(lua_State* tolua_S)
  11965. {
  11966. #ifndef TOLUA_RELEASE
  11967. tolua_Error tolua_err;
  11968. if (
  11969. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11970. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11971. )
  11972. goto tolua_lerror;
  11973. else
  11974. #endif
  11975. {
  11976. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11977. #ifndef TOLUA_RELEASE
  11978. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsEnabled'", NULL);
  11979. #endif
  11980. {
  11981. bool tolua_ret = (bool) self->IsEnabled();
  11982. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  11983. }
  11984. }
  11985. return 1;
  11986. #ifndef TOLUA_RELEASE
  11987. tolua_lerror:
  11988. tolua_error(tolua_S,"#ferror in function 'IsEnabled'.",&tolua_err);
  11989. return 0;
  11990. #endif
  11991. }
  11992. #endif //#ifndef TOLUA_DISABLE
  11993. /* method: IsSelected of class UIElement */
  11994. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsSelected00
  11995. static int tolua_UI_UIElement_IsSelected00(lua_State* tolua_S)
  11996. {
  11997. #ifndef TOLUA_RELEASE
  11998. tolua_Error tolua_err;
  11999. if (
  12000. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12001. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12002. )
  12003. goto tolua_lerror;
  12004. else
  12005. #endif
  12006. {
  12007. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12008. #ifndef TOLUA_RELEASE
  12009. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsSelected'", NULL);
  12010. #endif
  12011. {
  12012. bool tolua_ret = (bool) self->IsSelected();
  12013. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12014. }
  12015. }
  12016. return 1;
  12017. #ifndef TOLUA_RELEASE
  12018. tolua_lerror:
  12019. tolua_error(tolua_S,"#ferror in function 'IsSelected'.",&tolua_err);
  12020. return 0;
  12021. #endif
  12022. }
  12023. #endif //#ifndef TOLUA_DISABLE
  12024. /* method: IsVisible of class UIElement */
  12025. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsVisible00
  12026. static int tolua_UI_UIElement_IsVisible00(lua_State* tolua_S)
  12027. {
  12028. #ifndef TOLUA_RELEASE
  12029. tolua_Error tolua_err;
  12030. if (
  12031. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12032. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12033. )
  12034. goto tolua_lerror;
  12035. else
  12036. #endif
  12037. {
  12038. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12039. #ifndef TOLUA_RELEASE
  12040. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsVisible'", NULL);
  12041. #endif
  12042. {
  12043. bool tolua_ret = (bool) self->IsVisible();
  12044. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12045. }
  12046. }
  12047. return 1;
  12048. #ifndef TOLUA_RELEASE
  12049. tolua_lerror:
  12050. tolua_error(tolua_S,"#ferror in function 'IsVisible'.",&tolua_err);
  12051. return 0;
  12052. #endif
  12053. }
  12054. #endif //#ifndef TOLUA_DISABLE
  12055. /* method: IsHovering of class UIElement */
  12056. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsHovering00
  12057. static int tolua_UI_UIElement_IsHovering00(lua_State* tolua_S)
  12058. {
  12059. #ifndef TOLUA_RELEASE
  12060. tolua_Error tolua_err;
  12061. if (
  12062. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12063. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12064. )
  12065. goto tolua_lerror;
  12066. else
  12067. #endif
  12068. {
  12069. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12070. #ifndef TOLUA_RELEASE
  12071. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsHovering'", NULL);
  12072. #endif
  12073. {
  12074. bool tolua_ret = (bool) self->IsHovering();
  12075. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12076. }
  12077. }
  12078. return 1;
  12079. #ifndef TOLUA_RELEASE
  12080. tolua_lerror:
  12081. tolua_error(tolua_S,"#ferror in function 'IsHovering'.",&tolua_err);
  12082. return 0;
  12083. #endif
  12084. }
  12085. #endif //#ifndef TOLUA_DISABLE
  12086. /* method: IsInternal of class UIElement */
  12087. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsInternal00
  12088. static int tolua_UI_UIElement_IsInternal00(lua_State* tolua_S)
  12089. {
  12090. #ifndef TOLUA_RELEASE
  12091. tolua_Error tolua_err;
  12092. if (
  12093. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12094. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12095. )
  12096. goto tolua_lerror;
  12097. else
  12098. #endif
  12099. {
  12100. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12101. #ifndef TOLUA_RELEASE
  12102. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInternal'", NULL);
  12103. #endif
  12104. {
  12105. bool tolua_ret = (bool) self->IsInternal();
  12106. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12107. }
  12108. }
  12109. return 1;
  12110. #ifndef TOLUA_RELEASE
  12111. tolua_lerror:
  12112. tolua_error(tolua_S,"#ferror in function 'IsInternal'.",&tolua_err);
  12113. return 0;
  12114. #endif
  12115. }
  12116. #endif //#ifndef TOLUA_DISABLE
  12117. /* method: HasColorGradient of class UIElement */
  12118. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_HasColorGradient00
  12119. static int tolua_UI_UIElement_HasColorGradient00(lua_State* tolua_S)
  12120. {
  12121. #ifndef TOLUA_RELEASE
  12122. tolua_Error tolua_err;
  12123. if (
  12124. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12125. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12126. )
  12127. goto tolua_lerror;
  12128. else
  12129. #endif
  12130. {
  12131. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12132. #ifndef TOLUA_RELEASE
  12133. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasColorGradient'", NULL);
  12134. #endif
  12135. {
  12136. bool tolua_ret = (bool) self->HasColorGradient();
  12137. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12138. }
  12139. }
  12140. return 1;
  12141. #ifndef TOLUA_RELEASE
  12142. tolua_lerror:
  12143. tolua_error(tolua_S,"#ferror in function 'HasColorGradient'.",&tolua_err);
  12144. return 0;
  12145. #endif
  12146. }
  12147. #endif //#ifndef TOLUA_DISABLE
  12148. /* method: GetFocusMode of class UIElement */
  12149. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetFocusMode00
  12150. static int tolua_UI_UIElement_GetFocusMode00(lua_State* tolua_S)
  12151. {
  12152. #ifndef TOLUA_RELEASE
  12153. tolua_Error tolua_err;
  12154. if (
  12155. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12156. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12157. )
  12158. goto tolua_lerror;
  12159. else
  12160. #endif
  12161. {
  12162. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12163. #ifndef TOLUA_RELEASE
  12164. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFocusMode'", NULL);
  12165. #endif
  12166. {
  12167. FocusMode tolua_ret = (FocusMode) self->GetFocusMode();
  12168. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12169. }
  12170. }
  12171. return 1;
  12172. #ifndef TOLUA_RELEASE
  12173. tolua_lerror:
  12174. tolua_error(tolua_S,"#ferror in function 'GetFocusMode'.",&tolua_err);
  12175. return 0;
  12176. #endif
  12177. }
  12178. #endif //#ifndef TOLUA_DISABLE
  12179. /* method: GetDragDropMode of class UIElement */
  12180. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetDragDropMode00
  12181. static int tolua_UI_UIElement_GetDragDropMode00(lua_State* tolua_S)
  12182. {
  12183. #ifndef TOLUA_RELEASE
  12184. tolua_Error tolua_err;
  12185. if (
  12186. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12187. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12188. )
  12189. goto tolua_lerror;
  12190. else
  12191. #endif
  12192. {
  12193. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12194. #ifndef TOLUA_RELEASE
  12195. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDragDropMode'", NULL);
  12196. #endif
  12197. {
  12198. unsigned tolua_ret = (unsigned) self->GetDragDropMode();
  12199. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12200. }
  12201. }
  12202. return 1;
  12203. #ifndef TOLUA_RELEASE
  12204. tolua_lerror:
  12205. tolua_error(tolua_S,"#ferror in function 'GetDragDropMode'.",&tolua_err);
  12206. return 0;
  12207. #endif
  12208. }
  12209. #endif //#ifndef TOLUA_DISABLE
  12210. /* method: GetAppliedStyle of class UIElement */
  12211. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetAppliedStyle00
  12212. static int tolua_UI_UIElement_GetAppliedStyle00(lua_State* tolua_S)
  12213. {
  12214. #ifndef TOLUA_RELEASE
  12215. tolua_Error tolua_err;
  12216. if (
  12217. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12218. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12219. )
  12220. goto tolua_lerror;
  12221. else
  12222. #endif
  12223. {
  12224. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12225. #ifndef TOLUA_RELEASE
  12226. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAppliedStyle'", NULL);
  12227. #endif
  12228. {
  12229. const String& tolua_ret = (const String&) self->GetAppliedStyle();
  12230. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  12231. }
  12232. }
  12233. return 1;
  12234. #ifndef TOLUA_RELEASE
  12235. tolua_lerror:
  12236. tolua_error(tolua_S,"#ferror in function 'GetAppliedStyle'.",&tolua_err);
  12237. return 0;
  12238. #endif
  12239. }
  12240. #endif //#ifndef TOLUA_DISABLE
  12241. /* method: GetDefaultStyle of class UIElement */
  12242. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetDefaultStyle00
  12243. static int tolua_UI_UIElement_GetDefaultStyle00(lua_State* tolua_S)
  12244. {
  12245. #ifndef TOLUA_RELEASE
  12246. tolua_Error tolua_err;
  12247. if (
  12248. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12249. !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
  12250. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12251. )
  12252. goto tolua_lerror;
  12253. else
  12254. #endif
  12255. {
  12256. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12257. bool recursiveUp = ((bool) tolua_toboolean(tolua_S,2,true));
  12258. #ifndef TOLUA_RELEASE
  12259. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDefaultStyle'", NULL);
  12260. #endif
  12261. {
  12262. XMLFile* tolua_ret = (XMLFile*) self->GetDefaultStyle(recursiveUp);
  12263. tolua_pushusertype(tolua_S,(void*)tolua_ret,"XMLFile");
  12264. }
  12265. }
  12266. return 1;
  12267. #ifndef TOLUA_RELEASE
  12268. tolua_lerror:
  12269. tolua_error(tolua_S,"#ferror in function 'GetDefaultStyle'.",&tolua_err);
  12270. return 0;
  12271. #endif
  12272. }
  12273. #endif //#ifndef TOLUA_DISABLE
  12274. /* method: GetLayoutMode of class UIElement */
  12275. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetLayoutMode00
  12276. static int tolua_UI_UIElement_GetLayoutMode00(lua_State* tolua_S)
  12277. {
  12278. #ifndef TOLUA_RELEASE
  12279. tolua_Error tolua_err;
  12280. if (
  12281. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12282. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12283. )
  12284. goto tolua_lerror;
  12285. else
  12286. #endif
  12287. {
  12288. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12289. #ifndef TOLUA_RELEASE
  12290. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLayoutMode'", NULL);
  12291. #endif
  12292. {
  12293. LayoutMode tolua_ret = (LayoutMode) self->GetLayoutMode();
  12294. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12295. }
  12296. }
  12297. return 1;
  12298. #ifndef TOLUA_RELEASE
  12299. tolua_lerror:
  12300. tolua_error(tolua_S,"#ferror in function 'GetLayoutMode'.",&tolua_err);
  12301. return 0;
  12302. #endif
  12303. }
  12304. #endif //#ifndef TOLUA_DISABLE
  12305. /* method: GetLayoutSpacing of class UIElement */
  12306. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetLayoutSpacing00
  12307. static int tolua_UI_UIElement_GetLayoutSpacing00(lua_State* tolua_S)
  12308. {
  12309. #ifndef TOLUA_RELEASE
  12310. tolua_Error tolua_err;
  12311. if (
  12312. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12313. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12314. )
  12315. goto tolua_lerror;
  12316. else
  12317. #endif
  12318. {
  12319. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12320. #ifndef TOLUA_RELEASE
  12321. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLayoutSpacing'", NULL);
  12322. #endif
  12323. {
  12324. int tolua_ret = (int) self->GetLayoutSpacing();
  12325. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12326. }
  12327. }
  12328. return 1;
  12329. #ifndef TOLUA_RELEASE
  12330. tolua_lerror:
  12331. tolua_error(tolua_S,"#ferror in function 'GetLayoutSpacing'.",&tolua_err);
  12332. return 0;
  12333. #endif
  12334. }
  12335. #endif //#ifndef TOLUA_DISABLE
  12336. /* method: GetLayoutBorder of class UIElement */
  12337. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetLayoutBorder00
  12338. static int tolua_UI_UIElement_GetLayoutBorder00(lua_State* tolua_S)
  12339. {
  12340. #ifndef TOLUA_RELEASE
  12341. tolua_Error tolua_err;
  12342. if (
  12343. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12344. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12345. )
  12346. goto tolua_lerror;
  12347. else
  12348. #endif
  12349. {
  12350. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12351. #ifndef TOLUA_RELEASE
  12352. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLayoutBorder'", NULL);
  12353. #endif
  12354. {
  12355. const IntRect& tolua_ret = (const IntRect&) self->GetLayoutBorder();
  12356. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntRect");
  12357. }
  12358. }
  12359. return 1;
  12360. #ifndef TOLUA_RELEASE
  12361. tolua_lerror:
  12362. tolua_error(tolua_S,"#ferror in function 'GetLayoutBorder'.",&tolua_err);
  12363. return 0;
  12364. #endif
  12365. }
  12366. #endif //#ifndef TOLUA_DISABLE
  12367. /* method: GetNumChildren of class UIElement */
  12368. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetNumChildren00
  12369. static int tolua_UI_UIElement_GetNumChildren00(lua_State* tolua_S)
  12370. {
  12371. #ifndef TOLUA_RELEASE
  12372. tolua_Error tolua_err;
  12373. if (
  12374. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12375. !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
  12376. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12377. )
  12378. goto tolua_lerror;
  12379. else
  12380. #endif
  12381. {
  12382. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12383. bool recursive = ((bool) tolua_toboolean(tolua_S,2,false));
  12384. #ifndef TOLUA_RELEASE
  12385. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumChildren'", NULL);
  12386. #endif
  12387. {
  12388. unsigned tolua_ret = (unsigned) self->GetNumChildren(recursive);
  12389. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12390. }
  12391. }
  12392. return 1;
  12393. #ifndef TOLUA_RELEASE
  12394. tolua_lerror:
  12395. tolua_error(tolua_S,"#ferror in function 'GetNumChildren'.",&tolua_err);
  12396. return 0;
  12397. #endif
  12398. }
  12399. #endif //#ifndef TOLUA_DISABLE
  12400. /* method: GetChild of class UIElement */
  12401. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetChild00
  12402. static int tolua_UI_UIElement_GetChild00(lua_State* tolua_S)
  12403. {
  12404. #ifndef TOLUA_RELEASE
  12405. tolua_Error tolua_err;
  12406. if (
  12407. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12408. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12409. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12410. )
  12411. goto tolua_lerror;
  12412. else
  12413. #endif
  12414. {
  12415. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12416. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  12417. #ifndef TOLUA_RELEASE
  12418. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChild'", NULL);
  12419. #endif
  12420. {
  12421. UIElement* tolua_ret = (UIElement*) self->GetChild(index);
  12422. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  12423. }
  12424. }
  12425. return 1;
  12426. #ifndef TOLUA_RELEASE
  12427. tolua_lerror:
  12428. tolua_error(tolua_S,"#ferror in function 'GetChild'.",&tolua_err);
  12429. return 0;
  12430. #endif
  12431. }
  12432. #endif //#ifndef TOLUA_DISABLE
  12433. /* method: GetChild of class UIElement */
  12434. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetChild01
  12435. static int tolua_UI_UIElement_GetChild01(lua_State* tolua_S)
  12436. {
  12437. tolua_Error tolua_err;
  12438. if (
  12439. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12440. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  12441. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  12442. !tolua_isnoobj(tolua_S,4,&tolua_err)
  12443. )
  12444. goto tolua_lerror;
  12445. else
  12446. {
  12447. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12448. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  12449. bool recursive = ((bool) tolua_toboolean(tolua_S,3,false));
  12450. #ifndef TOLUA_RELEASE
  12451. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChild'", NULL);
  12452. #endif
  12453. {
  12454. UIElement* tolua_ret = (UIElement*) self->GetChild(*name,recursive);
  12455. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  12456. }
  12457. }
  12458. return 1;
  12459. tolua_lerror:
  12460. return tolua_UI_UIElement_GetChild00(tolua_S);
  12461. }
  12462. #endif //#ifndef TOLUA_DISABLE
  12463. /* method: GetChild of class UIElement */
  12464. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetChild02
  12465. static int tolua_UI_UIElement_GetChild02(lua_State* tolua_S)
  12466. {
  12467. tolua_Error tolua_err;
  12468. if (
  12469. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12470. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ShortStringHash",0,&tolua_err)) ||
  12471. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12472. )
  12473. goto tolua_lerror;
  12474. else
  12475. {
  12476. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12477. const ShortStringHash* key = ((const ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  12478. #ifndef TOLUA_RELEASE
  12479. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChild'", NULL);
  12480. #endif
  12481. {
  12482. UIElement* tolua_ret = (UIElement*) self->GetChild(*key);
  12483. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  12484. }
  12485. }
  12486. return 1;
  12487. tolua_lerror:
  12488. return tolua_UI_UIElement_GetChild01(tolua_S);
  12489. }
  12490. #endif //#ifndef TOLUA_DISABLE
  12491. /* method: GetChild of class UIElement */
  12492. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetChild03
  12493. static int tolua_UI_UIElement_GetChild03(lua_State* tolua_S)
  12494. {
  12495. tolua_Error tolua_err;
  12496. if (
  12497. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12498. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ShortStringHash",0,&tolua_err)) ||
  12499. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Variant",0,&tolua_err)) ||
  12500. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  12501. !tolua_isnoobj(tolua_S,5,&tolua_err)
  12502. )
  12503. goto tolua_lerror;
  12504. else
  12505. {
  12506. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12507. const ShortStringHash* key = ((const ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  12508. const Variant* value = ((const Variant*) tolua_tousertype(tolua_S,3,0));
  12509. bool recursive = ((bool) tolua_toboolean(tolua_S,4,false));
  12510. #ifndef TOLUA_RELEASE
  12511. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChild'", NULL);
  12512. #endif
  12513. {
  12514. UIElement* tolua_ret = (UIElement*) self->GetChild(*key,*value,recursive);
  12515. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  12516. }
  12517. }
  12518. return 1;
  12519. tolua_lerror:
  12520. return tolua_UI_UIElement_GetChild02(tolua_S);
  12521. }
  12522. #endif //#ifndef TOLUA_DISABLE
  12523. /* method: GetParent of class UIElement */
  12524. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetParent00
  12525. static int tolua_UI_UIElement_GetParent00(lua_State* tolua_S)
  12526. {
  12527. #ifndef TOLUA_RELEASE
  12528. tolua_Error tolua_err;
  12529. if (
  12530. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12531. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12532. )
  12533. goto tolua_lerror;
  12534. else
  12535. #endif
  12536. {
  12537. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12538. #ifndef TOLUA_RELEASE
  12539. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetParent'", NULL);
  12540. #endif
  12541. {
  12542. UIElement* tolua_ret = (UIElement*) self->GetParent();
  12543. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  12544. }
  12545. }
  12546. return 1;
  12547. #ifndef TOLUA_RELEASE
  12548. tolua_lerror:
  12549. tolua_error(tolua_S,"#ferror in function 'GetParent'.",&tolua_err);
  12550. return 0;
  12551. #endif
  12552. }
  12553. #endif //#ifndef TOLUA_DISABLE
  12554. /* method: GetRoot of class UIElement */
  12555. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetRoot00
  12556. static int tolua_UI_UIElement_GetRoot00(lua_State* tolua_S)
  12557. {
  12558. #ifndef TOLUA_RELEASE
  12559. tolua_Error tolua_err;
  12560. if (
  12561. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12562. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12563. )
  12564. goto tolua_lerror;
  12565. else
  12566. #endif
  12567. {
  12568. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12569. #ifndef TOLUA_RELEASE
  12570. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRoot'", NULL);
  12571. #endif
  12572. {
  12573. UIElement* tolua_ret = (UIElement*) self->GetRoot();
  12574. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  12575. }
  12576. }
  12577. return 1;
  12578. #ifndef TOLUA_RELEASE
  12579. tolua_lerror:
  12580. tolua_error(tolua_S,"#ferror in function 'GetRoot'.",&tolua_err);
  12581. return 0;
  12582. #endif
  12583. }
  12584. #endif //#ifndef TOLUA_DISABLE
  12585. /* method: GetDerivedColor of class UIElement */
  12586. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetDerivedColor00
  12587. static int tolua_UI_UIElement_GetDerivedColor00(lua_State* tolua_S)
  12588. {
  12589. #ifndef TOLUA_RELEASE
  12590. tolua_Error tolua_err;
  12591. if (
  12592. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12593. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12594. )
  12595. goto tolua_lerror;
  12596. else
  12597. #endif
  12598. {
  12599. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12600. #ifndef TOLUA_RELEASE
  12601. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDerivedColor'", NULL);
  12602. #endif
  12603. {
  12604. const Color& tolua_ret = (const Color&) self->GetDerivedColor();
  12605. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  12606. }
  12607. }
  12608. return 1;
  12609. #ifndef TOLUA_RELEASE
  12610. tolua_lerror:
  12611. tolua_error(tolua_S,"#ferror in function 'GetDerivedColor'.",&tolua_err);
  12612. return 0;
  12613. #endif
  12614. }
  12615. #endif //#ifndef TOLUA_DISABLE
  12616. /* method: ScreenToElement of class UIElement */
  12617. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_ScreenToElement00
  12618. static int tolua_UI_UIElement_ScreenToElement00(lua_State* tolua_S)
  12619. {
  12620. #ifndef TOLUA_RELEASE
  12621. tolua_Error tolua_err;
  12622. if (
  12623. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  12624. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  12625. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12626. )
  12627. goto tolua_lerror;
  12628. else
  12629. #endif
  12630. {
  12631. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  12632. const IntVector2* screenPosition = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  12633. #ifndef TOLUA_RELEASE
  12634. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ScreenToElement'", NULL);
  12635. #endif
  12636. {
  12637. IntVector2 tolua_ret = (IntVector2) self->ScreenToElement(*screenPosition);
  12638. {
  12639. #ifdef __cplusplus
  12640. void* tolua_obj = Mtolua_new((IntVector2)(tolua_ret));
  12641. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  12642. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  12643. #else
  12644. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(IntVector2));
  12645. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  12646. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  12647. #endif
  12648. }
  12649. }
  12650. }
  12651. return 1;
  12652. #ifndef TOLUA_RELEASE
  12653. tolua_lerror:
  12654. tolua_error(tolua_S,"#ferror in function 'ScreenToElement'.",&tolua_err);
  12655. return 0;
  12656. #endif
  12657. }
  12658. #endif //#ifndef TOLUA_DISABLE
  12659. /* method: ElementToScreen of class UIElement */
  12660. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_ElementToScreen00
  12661. static int tolua_UI_UIElement_ElementToScreen00(lua_State* tolua_S)
  12662. {
  12663. #ifndef TOLUA_RELEASE
  12664. tolua_Error tolua_err;
  12665. if (
  12666. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  12667. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  12668. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12669. )
  12670. goto tolua_lerror;
  12671. else
  12672. #endif
  12673. {
  12674. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  12675. const IntVector2* position = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  12676. #ifndef TOLUA_RELEASE
  12677. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ElementToScreen'", NULL);
  12678. #endif
  12679. {
  12680. IntVector2 tolua_ret = (IntVector2) self->ElementToScreen(*position);
  12681. {
  12682. #ifdef __cplusplus
  12683. void* tolua_obj = Mtolua_new((IntVector2)(tolua_ret));
  12684. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  12685. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  12686. #else
  12687. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(IntVector2));
  12688. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  12689. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  12690. #endif
  12691. }
  12692. }
  12693. }
  12694. return 1;
  12695. #ifndef TOLUA_RELEASE
  12696. tolua_lerror:
  12697. tolua_error(tolua_S,"#ferror in function 'ElementToScreen'.",&tolua_err);
  12698. return 0;
  12699. #endif
  12700. }
  12701. #endif //#ifndef TOLUA_DISABLE
  12702. /* method: IsInside of class UIElement */
  12703. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsInside00
  12704. static int tolua_UI_UIElement_IsInside00(lua_State* tolua_S)
  12705. {
  12706. #ifndef TOLUA_RELEASE
  12707. tolua_Error tolua_err;
  12708. if (
  12709. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  12710. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"IntVector2",0,&tolua_err)) ||
  12711. !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
  12712. !tolua_isnoobj(tolua_S,4,&tolua_err)
  12713. )
  12714. goto tolua_lerror;
  12715. else
  12716. #endif
  12717. {
  12718. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  12719. IntVector2 position = *((IntVector2*) tolua_tousertype(tolua_S,2,0));
  12720. bool isScreen = ((bool) tolua_toboolean(tolua_S,3,0));
  12721. #ifndef TOLUA_RELEASE
  12722. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInside'", NULL);
  12723. #endif
  12724. {
  12725. bool tolua_ret = (bool) self->IsInside(position,isScreen);
  12726. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12727. }
  12728. }
  12729. return 1;
  12730. #ifndef TOLUA_RELEASE
  12731. tolua_lerror:
  12732. tolua_error(tolua_S,"#ferror in function 'IsInside'.",&tolua_err);
  12733. return 0;
  12734. #endif
  12735. }
  12736. #endif //#ifndef TOLUA_DISABLE
  12737. /* method: IsInsideCombined of class UIElement */
  12738. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsInsideCombined00
  12739. static int tolua_UI_UIElement_IsInsideCombined00(lua_State* tolua_S)
  12740. {
  12741. #ifndef TOLUA_RELEASE
  12742. tolua_Error tolua_err;
  12743. if (
  12744. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  12745. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"IntVector2",0,&tolua_err)) ||
  12746. !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
  12747. !tolua_isnoobj(tolua_S,4,&tolua_err)
  12748. )
  12749. goto tolua_lerror;
  12750. else
  12751. #endif
  12752. {
  12753. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  12754. IntVector2 position = *((IntVector2*) tolua_tousertype(tolua_S,2,0));
  12755. bool isScreen = ((bool) tolua_toboolean(tolua_S,3,0));
  12756. #ifndef TOLUA_RELEASE
  12757. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInsideCombined'", NULL);
  12758. #endif
  12759. {
  12760. bool tolua_ret = (bool) self->IsInsideCombined(position,isScreen);
  12761. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12762. }
  12763. }
  12764. return 1;
  12765. #ifndef TOLUA_RELEASE
  12766. tolua_lerror:
  12767. tolua_error(tolua_S,"#ferror in function 'IsInsideCombined'.",&tolua_err);
  12768. return 0;
  12769. #endif
  12770. }
  12771. #endif //#ifndef TOLUA_DISABLE
  12772. /* method: GetCombinedScreenRect of class UIElement */
  12773. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetCombinedScreenRect00
  12774. static int tolua_UI_UIElement_GetCombinedScreenRect00(lua_State* tolua_S)
  12775. {
  12776. #ifndef TOLUA_RELEASE
  12777. tolua_Error tolua_err;
  12778. if (
  12779. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  12780. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12781. )
  12782. goto tolua_lerror;
  12783. else
  12784. #endif
  12785. {
  12786. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  12787. #ifndef TOLUA_RELEASE
  12788. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCombinedScreenRect'", NULL);
  12789. #endif
  12790. {
  12791. IntRect tolua_ret = (IntRect) self->GetCombinedScreenRect();
  12792. {
  12793. #ifdef __cplusplus
  12794. void* tolua_obj = Mtolua_new((IntRect)(tolua_ret));
  12795. tolua_pushusertype(tolua_S,tolua_obj,"IntRect");
  12796. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  12797. #else
  12798. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(IntRect));
  12799. tolua_pushusertype(tolua_S,tolua_obj,"IntRect");
  12800. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  12801. #endif
  12802. }
  12803. }
  12804. }
  12805. return 1;
  12806. #ifndef TOLUA_RELEASE
  12807. tolua_lerror:
  12808. tolua_error(tolua_S,"#ferror in function 'GetCombinedScreenRect'.",&tolua_err);
  12809. return 0;
  12810. #endif
  12811. }
  12812. #endif //#ifndef TOLUA_DISABLE
  12813. /* method: SortChildren of class UIElement */
  12814. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SortChildren00
  12815. static int tolua_UI_UIElement_SortChildren00(lua_State* tolua_S)
  12816. {
  12817. #ifndef TOLUA_RELEASE
  12818. tolua_Error tolua_err;
  12819. if (
  12820. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  12821. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12822. )
  12823. goto tolua_lerror;
  12824. else
  12825. #endif
  12826. {
  12827. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  12828. #ifndef TOLUA_RELEASE
  12829. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SortChildren'", NULL);
  12830. #endif
  12831. {
  12832. self->SortChildren();
  12833. }
  12834. }
  12835. return 0;
  12836. #ifndef TOLUA_RELEASE
  12837. tolua_lerror:
  12838. tolua_error(tolua_S,"#ferror in function 'SortChildren'.",&tolua_err);
  12839. return 0;
  12840. #endif
  12841. }
  12842. #endif //#ifndef TOLUA_DISABLE
  12843. /* method: GetLayoutMinSize of class UIElement */
  12844. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetLayoutMinSize00
  12845. static int tolua_UI_UIElement_GetLayoutMinSize00(lua_State* tolua_S)
  12846. {
  12847. #ifndef TOLUA_RELEASE
  12848. tolua_Error tolua_err;
  12849. if (
  12850. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12851. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12852. )
  12853. goto tolua_lerror;
  12854. else
  12855. #endif
  12856. {
  12857. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12858. #ifndef TOLUA_RELEASE
  12859. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLayoutMinSize'", NULL);
  12860. #endif
  12861. {
  12862. int tolua_ret = (int) self->GetLayoutMinSize();
  12863. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12864. }
  12865. }
  12866. return 1;
  12867. #ifndef TOLUA_RELEASE
  12868. tolua_lerror:
  12869. tolua_error(tolua_S,"#ferror in function 'GetLayoutMinSize'.",&tolua_err);
  12870. return 0;
  12871. #endif
  12872. }
  12873. #endif //#ifndef TOLUA_DISABLE
  12874. /* method: GetIndent of class UIElement */
  12875. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetIndent00
  12876. static int tolua_UI_UIElement_GetIndent00(lua_State* tolua_S)
  12877. {
  12878. #ifndef TOLUA_RELEASE
  12879. tolua_Error tolua_err;
  12880. if (
  12881. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12882. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12883. )
  12884. goto tolua_lerror;
  12885. else
  12886. #endif
  12887. {
  12888. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12889. #ifndef TOLUA_RELEASE
  12890. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetIndent'", NULL);
  12891. #endif
  12892. {
  12893. int tolua_ret = (int) self->GetIndent();
  12894. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12895. }
  12896. }
  12897. return 1;
  12898. #ifndef TOLUA_RELEASE
  12899. tolua_lerror:
  12900. tolua_error(tolua_S,"#ferror in function 'GetIndent'.",&tolua_err);
  12901. return 0;
  12902. #endif
  12903. }
  12904. #endif //#ifndef TOLUA_DISABLE
  12905. /* method: GetIndentSpacing of class UIElement */
  12906. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetIndentSpacing00
  12907. static int tolua_UI_UIElement_GetIndentSpacing00(lua_State* tolua_S)
  12908. {
  12909. #ifndef TOLUA_RELEASE
  12910. tolua_Error tolua_err;
  12911. if (
  12912. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12913. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12914. )
  12915. goto tolua_lerror;
  12916. else
  12917. #endif
  12918. {
  12919. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12920. #ifndef TOLUA_RELEASE
  12921. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetIndentSpacing'", NULL);
  12922. #endif
  12923. {
  12924. int tolua_ret = (int) self->GetIndentSpacing();
  12925. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12926. }
  12927. }
  12928. return 1;
  12929. #ifndef TOLUA_RELEASE
  12930. tolua_lerror:
  12931. tolua_error(tolua_S,"#ferror in function 'GetIndentSpacing'.",&tolua_err);
  12932. return 0;
  12933. #endif
  12934. }
  12935. #endif //#ifndef TOLUA_DISABLE
  12936. /* method: GetIndentWidth of class UIElement */
  12937. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetIndentWidth00
  12938. static int tolua_UI_UIElement_GetIndentWidth00(lua_State* tolua_S)
  12939. {
  12940. #ifndef TOLUA_RELEASE
  12941. tolua_Error tolua_err;
  12942. if (
  12943. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12944. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12945. )
  12946. goto tolua_lerror;
  12947. else
  12948. #endif
  12949. {
  12950. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12951. #ifndef TOLUA_RELEASE
  12952. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetIndentWidth'", NULL);
  12953. #endif
  12954. {
  12955. int tolua_ret = (int) self->GetIndentWidth();
  12956. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12957. }
  12958. }
  12959. return 1;
  12960. #ifndef TOLUA_RELEASE
  12961. tolua_lerror:
  12962. tolua_error(tolua_S,"#ferror in function 'GetIndentWidth'.",&tolua_err);
  12963. return 0;
  12964. #endif
  12965. }
  12966. #endif //#ifndef TOLUA_DISABLE
  12967. /* method: SetChildOffset of class UIElement */
  12968. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetChildOffset00
  12969. static int tolua_UI_UIElement_SetChildOffset00(lua_State* tolua_S)
  12970. {
  12971. #ifndef TOLUA_RELEASE
  12972. tolua_Error tolua_err;
  12973. if (
  12974. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  12975. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  12976. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12977. )
  12978. goto tolua_lerror;
  12979. else
  12980. #endif
  12981. {
  12982. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  12983. const IntVector2* offset = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  12984. #ifndef TOLUA_RELEASE
  12985. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetChildOffset'", NULL);
  12986. #endif
  12987. {
  12988. self->SetChildOffset(*offset);
  12989. }
  12990. }
  12991. return 0;
  12992. #ifndef TOLUA_RELEASE
  12993. tolua_lerror:
  12994. tolua_error(tolua_S,"#ferror in function 'SetChildOffset'.",&tolua_err);
  12995. return 0;
  12996. #endif
  12997. }
  12998. #endif //#ifndef TOLUA_DISABLE
  12999. /* method: SetHovering of class UIElement */
  13000. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetHovering00
  13001. static int tolua_UI_UIElement_SetHovering00(lua_State* tolua_S)
  13002. {
  13003. #ifndef TOLUA_RELEASE
  13004. tolua_Error tolua_err;
  13005. if (
  13006. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  13007. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  13008. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13009. )
  13010. goto tolua_lerror;
  13011. else
  13012. #endif
  13013. {
  13014. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  13015. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  13016. #ifndef TOLUA_RELEASE
  13017. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHovering'", NULL);
  13018. #endif
  13019. {
  13020. self->SetHovering(enable);
  13021. }
  13022. }
  13023. return 0;
  13024. #ifndef TOLUA_RELEASE
  13025. tolua_lerror:
  13026. tolua_error(tolua_S,"#ferror in function 'SetHovering'.",&tolua_err);
  13027. return 0;
  13028. #endif
  13029. }
  13030. #endif //#ifndef TOLUA_DISABLE
  13031. /* method: SetTempVisible of class UIElement */
  13032. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetTempVisible00
  13033. static int tolua_UI_UIElement_SetTempVisible00(lua_State* tolua_S)
  13034. {
  13035. #ifndef TOLUA_RELEASE
  13036. tolua_Error tolua_err;
  13037. if (
  13038. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  13039. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  13040. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13041. )
  13042. goto tolua_lerror;
  13043. else
  13044. #endif
  13045. {
  13046. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  13047. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  13048. #ifndef TOLUA_RELEASE
  13049. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTempVisible'", NULL);
  13050. #endif
  13051. {
  13052. self->SetTempVisible(enable);
  13053. }
  13054. }
  13055. return 0;
  13056. #ifndef TOLUA_RELEASE
  13057. tolua_lerror:
  13058. tolua_error(tolua_S,"#ferror in function 'SetTempVisible'.",&tolua_err);
  13059. return 0;
  13060. #endif
  13061. }
  13062. #endif //#ifndef TOLUA_DISABLE
  13063. /* method: AdjustScissor of class UIElement */
  13064. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_AdjustScissor00
  13065. static int tolua_UI_UIElement_AdjustScissor00(lua_State* tolua_S)
  13066. {
  13067. #ifndef TOLUA_RELEASE
  13068. tolua_Error tolua_err;
  13069. if (
  13070. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  13071. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"IntRect",0,&tolua_err)) ||
  13072. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13073. )
  13074. goto tolua_lerror;
  13075. else
  13076. #endif
  13077. {
  13078. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  13079. IntRect* currentScissor = ((IntRect*) tolua_tousertype(tolua_S,2,0));
  13080. #ifndef TOLUA_RELEASE
  13081. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AdjustScissor'", NULL);
  13082. #endif
  13083. {
  13084. self->AdjustScissor(*currentScissor);
  13085. }
  13086. }
  13087. return 0;
  13088. #ifndef TOLUA_RELEASE
  13089. tolua_lerror:
  13090. tolua_error(tolua_S,"#ferror in function 'AdjustScissor'.",&tolua_err);
  13091. return 0;
  13092. #endif
  13093. }
  13094. #endif //#ifndef TOLUA_DISABLE
  13095. /* method: GetBatchesWithOffset of class UIElement */
  13096. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetBatchesWithOffset00
  13097. static int tolua_UI_UIElement_GetBatchesWithOffset00(lua_State* tolua_S)
  13098. {
  13099. #ifndef TOLUA_RELEASE
  13100. tolua_Error tolua_err;
  13101. if (
  13102. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  13103. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"IntVector2",0,&tolua_err)) ||
  13104. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"PODVector<UIBatch>",0,&tolua_err)) ||
  13105. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"PODVector<float>",0,&tolua_err)) ||
  13106. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"IntRect",0,&tolua_err)) ||
  13107. !tolua_isnoobj(tolua_S,6,&tolua_err)
  13108. )
  13109. goto tolua_lerror;
  13110. else
  13111. #endif
  13112. {
  13113. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  13114. IntVector2* offset = ((IntVector2*) tolua_tousertype(tolua_S,2,0));
  13115. PODVector<UIBatch>* batches = ((PODVector<UIBatch>*) tolua_tousertype(tolua_S,3,0));
  13116. PODVector<float>* vertexData = ((PODVector<float>*) tolua_tousertype(tolua_S,4,0));
  13117. IntRect currentScissor = *((IntRect*) tolua_tousertype(tolua_S,5,0));
  13118. #ifndef TOLUA_RELEASE
  13119. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBatchesWithOffset'", NULL);
  13120. #endif
  13121. {
  13122. self->GetBatchesWithOffset(*offset,*batches,*vertexData,currentScissor);
  13123. }
  13124. }
  13125. return 0;
  13126. #ifndef TOLUA_RELEASE
  13127. tolua_lerror:
  13128. tolua_error(tolua_S,"#ferror in function 'GetBatchesWithOffset'.",&tolua_err);
  13129. return 0;
  13130. #endif
  13131. }
  13132. #endif //#ifndef TOLUA_DISABLE
  13133. /* method: GetColorAttr of class UIElement */
  13134. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetColorAttr00
  13135. static int tolua_UI_UIElement_GetColorAttr00(lua_State* tolua_S)
  13136. {
  13137. #ifndef TOLUA_RELEASE
  13138. tolua_Error tolua_err;
  13139. if (
  13140. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  13141. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13142. )
  13143. goto tolua_lerror;
  13144. else
  13145. #endif
  13146. {
  13147. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  13148. #ifndef TOLUA_RELEASE
  13149. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetColorAttr'", NULL);
  13150. #endif
  13151. {
  13152. const Color& tolua_ret = (const Color&) self->GetColorAttr();
  13153. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  13154. }
  13155. }
  13156. return 1;
  13157. #ifndef TOLUA_RELEASE
  13158. tolua_lerror:
  13159. tolua_error(tolua_S,"#ferror in function 'GetColorAttr'.",&tolua_err);
  13160. return 0;
  13161. #endif
  13162. }
  13163. #endif //#ifndef TOLUA_DISABLE
  13164. /* method: GetTraversalMode of class UIElement */
  13165. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetTraversalMode00
  13166. static int tolua_UI_UIElement_GetTraversalMode00(lua_State* tolua_S)
  13167. {
  13168. #ifndef TOLUA_RELEASE
  13169. tolua_Error tolua_err;
  13170. if (
  13171. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  13172. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13173. )
  13174. goto tolua_lerror;
  13175. else
  13176. #endif
  13177. {
  13178. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  13179. #ifndef TOLUA_RELEASE
  13180. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTraversalMode'", NULL);
  13181. #endif
  13182. {
  13183. TraversalMode tolua_ret = (TraversalMode) self->GetTraversalMode();
  13184. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13185. }
  13186. }
  13187. return 1;
  13188. #ifndef TOLUA_RELEASE
  13189. tolua_lerror:
  13190. tolua_error(tolua_S,"#ferror in function 'GetTraversalMode'.",&tolua_err);
  13191. return 0;
  13192. #endif
  13193. }
  13194. #endif //#ifndef TOLUA_DISABLE
  13195. /* method: IsElementEventSender of class UIElement */
  13196. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsElementEventSender00
  13197. static int tolua_UI_UIElement_IsElementEventSender00(lua_State* tolua_S)
  13198. {
  13199. #ifndef TOLUA_RELEASE
  13200. tolua_Error tolua_err;
  13201. if (
  13202. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  13203. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13204. )
  13205. goto tolua_lerror;
  13206. else
  13207. #endif
  13208. {
  13209. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  13210. #ifndef TOLUA_RELEASE
  13211. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsElementEventSender'", NULL);
  13212. #endif
  13213. {
  13214. bool tolua_ret = (bool) self->IsElementEventSender();
  13215. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  13216. }
  13217. }
  13218. return 1;
  13219. #ifndef TOLUA_RELEASE
  13220. tolua_lerror:
  13221. tolua_error(tolua_S,"#ferror in function 'IsElementEventSender'.",&tolua_err);
  13222. return 0;
  13223. #endif
  13224. }
  13225. #endif //#ifndef TOLUA_DISABLE
  13226. /* method: GetElementEventSender of class UIElement */
  13227. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetElementEventSender00
  13228. static int tolua_UI_UIElement_GetElementEventSender00(lua_State* tolua_S)
  13229. {
  13230. #ifndef TOLUA_RELEASE
  13231. tolua_Error tolua_err;
  13232. if (
  13233. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  13234. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13235. )
  13236. goto tolua_lerror;
  13237. else
  13238. #endif
  13239. {
  13240. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  13241. #ifndef TOLUA_RELEASE
  13242. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetElementEventSender'", NULL);
  13243. #endif
  13244. {
  13245. UIElement* tolua_ret = (UIElement*) self->GetElementEventSender();
  13246. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  13247. }
  13248. }
  13249. return 1;
  13250. #ifndef TOLUA_RELEASE
  13251. tolua_lerror:
  13252. tolua_error(tolua_S,"#ferror in function 'GetElementEventSender'.",&tolua_err);
  13253. return 0;
  13254. #endif
  13255. }
  13256. #endif //#ifndef TOLUA_DISABLE
  13257. /* method: SetMovable of class Window */
  13258. #ifndef TOLUA_DISABLE_tolua_UI_Window_SetMovable00
  13259. static int tolua_UI_Window_SetMovable00(lua_State* tolua_S)
  13260. {
  13261. #ifndef TOLUA_RELEASE
  13262. tolua_Error tolua_err;
  13263. if (
  13264. !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
  13265. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  13266. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13267. )
  13268. goto tolua_lerror;
  13269. else
  13270. #endif
  13271. {
  13272. Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
  13273. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  13274. #ifndef TOLUA_RELEASE
  13275. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMovable'", NULL);
  13276. #endif
  13277. {
  13278. self->SetMovable(enable);
  13279. }
  13280. }
  13281. return 0;
  13282. #ifndef TOLUA_RELEASE
  13283. tolua_lerror:
  13284. tolua_error(tolua_S,"#ferror in function 'SetMovable'.",&tolua_err);
  13285. return 0;
  13286. #endif
  13287. }
  13288. #endif //#ifndef TOLUA_DISABLE
  13289. /* method: SetResizable of class Window */
  13290. #ifndef TOLUA_DISABLE_tolua_UI_Window_SetResizable00
  13291. static int tolua_UI_Window_SetResizable00(lua_State* tolua_S)
  13292. {
  13293. #ifndef TOLUA_RELEASE
  13294. tolua_Error tolua_err;
  13295. if (
  13296. !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
  13297. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  13298. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13299. )
  13300. goto tolua_lerror;
  13301. else
  13302. #endif
  13303. {
  13304. Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
  13305. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  13306. #ifndef TOLUA_RELEASE
  13307. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetResizable'", NULL);
  13308. #endif
  13309. {
  13310. self->SetResizable(enable);
  13311. }
  13312. }
  13313. return 0;
  13314. #ifndef TOLUA_RELEASE
  13315. tolua_lerror:
  13316. tolua_error(tolua_S,"#ferror in function 'SetResizable'.",&tolua_err);
  13317. return 0;
  13318. #endif
  13319. }
  13320. #endif //#ifndef TOLUA_DISABLE
  13321. /* method: SetResizeBorder of class Window */
  13322. #ifndef TOLUA_DISABLE_tolua_UI_Window_SetResizeBorder00
  13323. static int tolua_UI_Window_SetResizeBorder00(lua_State* tolua_S)
  13324. {
  13325. #ifndef TOLUA_RELEASE
  13326. tolua_Error tolua_err;
  13327. if (
  13328. !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
  13329. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntRect",0,&tolua_err)) ||
  13330. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13331. )
  13332. goto tolua_lerror;
  13333. else
  13334. #endif
  13335. {
  13336. Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
  13337. const IntRect* rect = ((const IntRect*) tolua_tousertype(tolua_S,2,0));
  13338. #ifndef TOLUA_RELEASE
  13339. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetResizeBorder'", NULL);
  13340. #endif
  13341. {
  13342. self->SetResizeBorder(*rect);
  13343. }
  13344. }
  13345. return 0;
  13346. #ifndef TOLUA_RELEASE
  13347. tolua_lerror:
  13348. tolua_error(tolua_S,"#ferror in function 'SetResizeBorder'.",&tolua_err);
  13349. return 0;
  13350. #endif
  13351. }
  13352. #endif //#ifndef TOLUA_DISABLE
  13353. /* method: SetModal of class Window */
  13354. #ifndef TOLUA_DISABLE_tolua_UI_Window_SetModal00
  13355. static int tolua_UI_Window_SetModal00(lua_State* tolua_S)
  13356. {
  13357. #ifndef TOLUA_RELEASE
  13358. tolua_Error tolua_err;
  13359. if (
  13360. !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
  13361. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  13362. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13363. )
  13364. goto tolua_lerror;
  13365. else
  13366. #endif
  13367. {
  13368. Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
  13369. bool modal = ((bool) tolua_toboolean(tolua_S,2,0));
  13370. #ifndef TOLUA_RELEASE
  13371. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetModal'", NULL);
  13372. #endif
  13373. {
  13374. self->SetModal(modal);
  13375. }
  13376. }
  13377. return 0;
  13378. #ifndef TOLUA_RELEASE
  13379. tolua_lerror:
  13380. tolua_error(tolua_S,"#ferror in function 'SetModal'.",&tolua_err);
  13381. return 0;
  13382. #endif
  13383. }
  13384. #endif //#ifndef TOLUA_DISABLE
  13385. /* method: SetModalShadeColor of class Window */
  13386. #ifndef TOLUA_DISABLE_tolua_UI_Window_SetModalShadeColor00
  13387. static int tolua_UI_Window_SetModalShadeColor00(lua_State* tolua_S)
  13388. {
  13389. #ifndef TOLUA_RELEASE
  13390. tolua_Error tolua_err;
  13391. if (
  13392. !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
  13393. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  13394. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13395. )
  13396. goto tolua_lerror;
  13397. else
  13398. #endif
  13399. {
  13400. Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
  13401. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  13402. #ifndef TOLUA_RELEASE
  13403. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetModalShadeColor'", NULL);
  13404. #endif
  13405. {
  13406. self->SetModalShadeColor(*color);
  13407. }
  13408. }
  13409. return 0;
  13410. #ifndef TOLUA_RELEASE
  13411. tolua_lerror:
  13412. tolua_error(tolua_S,"#ferror in function 'SetModalShadeColor'.",&tolua_err);
  13413. return 0;
  13414. #endif
  13415. }
  13416. #endif //#ifndef TOLUA_DISABLE
  13417. /* method: SetModalFrameColor of class Window */
  13418. #ifndef TOLUA_DISABLE_tolua_UI_Window_SetModalFrameColor00
  13419. static int tolua_UI_Window_SetModalFrameColor00(lua_State* tolua_S)
  13420. {
  13421. #ifndef TOLUA_RELEASE
  13422. tolua_Error tolua_err;
  13423. if (
  13424. !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
  13425. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  13426. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13427. )
  13428. goto tolua_lerror;
  13429. else
  13430. #endif
  13431. {
  13432. Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
  13433. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  13434. #ifndef TOLUA_RELEASE
  13435. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetModalFrameColor'", NULL);
  13436. #endif
  13437. {
  13438. self->SetModalFrameColor(*color);
  13439. }
  13440. }
  13441. return 0;
  13442. #ifndef TOLUA_RELEASE
  13443. tolua_lerror:
  13444. tolua_error(tolua_S,"#ferror in function 'SetModalFrameColor'.",&tolua_err);
  13445. return 0;
  13446. #endif
  13447. }
  13448. #endif //#ifndef TOLUA_DISABLE
  13449. /* method: SetModalFrameSize of class Window */
  13450. #ifndef TOLUA_DISABLE_tolua_UI_Window_SetModalFrameSize00
  13451. static int tolua_UI_Window_SetModalFrameSize00(lua_State* tolua_S)
  13452. {
  13453. #ifndef TOLUA_RELEASE
  13454. tolua_Error tolua_err;
  13455. if (
  13456. !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
  13457. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  13458. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13459. )
  13460. goto tolua_lerror;
  13461. else
  13462. #endif
  13463. {
  13464. Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
  13465. const IntVector2* size = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  13466. #ifndef TOLUA_RELEASE
  13467. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetModalFrameSize'", NULL);
  13468. #endif
  13469. {
  13470. self->SetModalFrameSize(*size);
  13471. }
  13472. }
  13473. return 0;
  13474. #ifndef TOLUA_RELEASE
  13475. tolua_lerror:
  13476. tolua_error(tolua_S,"#ferror in function 'SetModalFrameSize'.",&tolua_err);
  13477. return 0;
  13478. #endif
  13479. }
  13480. #endif //#ifndef TOLUA_DISABLE
  13481. /* method: IsMovable of class Window */
  13482. #ifndef TOLUA_DISABLE_tolua_UI_Window_IsMovable00
  13483. static int tolua_UI_Window_IsMovable00(lua_State* tolua_S)
  13484. {
  13485. #ifndef TOLUA_RELEASE
  13486. tolua_Error tolua_err;
  13487. if (
  13488. !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
  13489. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13490. )
  13491. goto tolua_lerror;
  13492. else
  13493. #endif
  13494. {
  13495. const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
  13496. #ifndef TOLUA_RELEASE
  13497. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsMovable'", NULL);
  13498. #endif
  13499. {
  13500. bool tolua_ret = (bool) self->IsMovable();
  13501. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  13502. }
  13503. }
  13504. return 1;
  13505. #ifndef TOLUA_RELEASE
  13506. tolua_lerror:
  13507. tolua_error(tolua_S,"#ferror in function 'IsMovable'.",&tolua_err);
  13508. return 0;
  13509. #endif
  13510. }
  13511. #endif //#ifndef TOLUA_DISABLE
  13512. /* method: IsResizable of class Window */
  13513. #ifndef TOLUA_DISABLE_tolua_UI_Window_IsResizable00
  13514. static int tolua_UI_Window_IsResizable00(lua_State* tolua_S)
  13515. {
  13516. #ifndef TOLUA_RELEASE
  13517. tolua_Error tolua_err;
  13518. if (
  13519. !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
  13520. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13521. )
  13522. goto tolua_lerror;
  13523. else
  13524. #endif
  13525. {
  13526. const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
  13527. #ifndef TOLUA_RELEASE
  13528. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsResizable'", NULL);
  13529. #endif
  13530. {
  13531. bool tolua_ret = (bool) self->IsResizable();
  13532. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  13533. }
  13534. }
  13535. return 1;
  13536. #ifndef TOLUA_RELEASE
  13537. tolua_lerror:
  13538. tolua_error(tolua_S,"#ferror in function 'IsResizable'.",&tolua_err);
  13539. return 0;
  13540. #endif
  13541. }
  13542. #endif //#ifndef TOLUA_DISABLE
  13543. /* method: GetResizeBorder of class Window */
  13544. #ifndef TOLUA_DISABLE_tolua_UI_Window_GetResizeBorder00
  13545. static int tolua_UI_Window_GetResizeBorder00(lua_State* tolua_S)
  13546. {
  13547. #ifndef TOLUA_RELEASE
  13548. tolua_Error tolua_err;
  13549. if (
  13550. !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
  13551. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13552. )
  13553. goto tolua_lerror;
  13554. else
  13555. #endif
  13556. {
  13557. const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
  13558. #ifndef TOLUA_RELEASE
  13559. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetResizeBorder'", NULL);
  13560. #endif
  13561. {
  13562. const IntRect& tolua_ret = (const IntRect&) self->GetResizeBorder();
  13563. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntRect");
  13564. }
  13565. }
  13566. return 1;
  13567. #ifndef TOLUA_RELEASE
  13568. tolua_lerror:
  13569. tolua_error(tolua_S,"#ferror in function 'GetResizeBorder'.",&tolua_err);
  13570. return 0;
  13571. #endif
  13572. }
  13573. #endif //#ifndef TOLUA_DISABLE
  13574. /* method: IsModal of class Window */
  13575. #ifndef TOLUA_DISABLE_tolua_UI_Window_IsModal00
  13576. static int tolua_UI_Window_IsModal00(lua_State* tolua_S)
  13577. {
  13578. #ifndef TOLUA_RELEASE
  13579. tolua_Error tolua_err;
  13580. if (
  13581. !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
  13582. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13583. )
  13584. goto tolua_lerror;
  13585. else
  13586. #endif
  13587. {
  13588. const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
  13589. #ifndef TOLUA_RELEASE
  13590. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsModal'", NULL);
  13591. #endif
  13592. {
  13593. bool tolua_ret = (bool) self->IsModal();
  13594. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  13595. }
  13596. }
  13597. return 1;
  13598. #ifndef TOLUA_RELEASE
  13599. tolua_lerror:
  13600. tolua_error(tolua_S,"#ferror in function 'IsModal'.",&tolua_err);
  13601. return 0;
  13602. #endif
  13603. }
  13604. #endif //#ifndef TOLUA_DISABLE
  13605. /* method: GetModalShadeColor of class Window */
  13606. #ifndef TOLUA_DISABLE_tolua_UI_Window_GetModalShadeColor00
  13607. static int tolua_UI_Window_GetModalShadeColor00(lua_State* tolua_S)
  13608. {
  13609. #ifndef TOLUA_RELEASE
  13610. tolua_Error tolua_err;
  13611. if (
  13612. !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
  13613. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13614. )
  13615. goto tolua_lerror;
  13616. else
  13617. #endif
  13618. {
  13619. const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
  13620. #ifndef TOLUA_RELEASE
  13621. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetModalShadeColor'", NULL);
  13622. #endif
  13623. {
  13624. const Color& tolua_ret = (const Color&) self->GetModalShadeColor();
  13625. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  13626. }
  13627. }
  13628. return 1;
  13629. #ifndef TOLUA_RELEASE
  13630. tolua_lerror:
  13631. tolua_error(tolua_S,"#ferror in function 'GetModalShadeColor'.",&tolua_err);
  13632. return 0;
  13633. #endif
  13634. }
  13635. #endif //#ifndef TOLUA_DISABLE
  13636. /* method: GetModalFrameColor of class Window */
  13637. #ifndef TOLUA_DISABLE_tolua_UI_Window_GetModalFrameColor00
  13638. static int tolua_UI_Window_GetModalFrameColor00(lua_State* tolua_S)
  13639. {
  13640. #ifndef TOLUA_RELEASE
  13641. tolua_Error tolua_err;
  13642. if (
  13643. !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
  13644. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13645. )
  13646. goto tolua_lerror;
  13647. else
  13648. #endif
  13649. {
  13650. const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
  13651. #ifndef TOLUA_RELEASE
  13652. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetModalFrameColor'", NULL);
  13653. #endif
  13654. {
  13655. const Color& tolua_ret = (const Color&) self->GetModalFrameColor();
  13656. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  13657. }
  13658. }
  13659. return 1;
  13660. #ifndef TOLUA_RELEASE
  13661. tolua_lerror:
  13662. tolua_error(tolua_S,"#ferror in function 'GetModalFrameColor'.",&tolua_err);
  13663. return 0;
  13664. #endif
  13665. }
  13666. #endif //#ifndef TOLUA_DISABLE
  13667. /* method: GetModalFrameSize of class Window */
  13668. #ifndef TOLUA_DISABLE_tolua_UI_Window_GetModalFrameSize00
  13669. static int tolua_UI_Window_GetModalFrameSize00(lua_State* tolua_S)
  13670. {
  13671. #ifndef TOLUA_RELEASE
  13672. tolua_Error tolua_err;
  13673. if (
  13674. !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
  13675. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13676. )
  13677. goto tolua_lerror;
  13678. else
  13679. #endif
  13680. {
  13681. const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
  13682. #ifndef TOLUA_RELEASE
  13683. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetModalFrameSize'", NULL);
  13684. #endif
  13685. {
  13686. const IntVector2& tolua_ret = (const IntVector2&) self->GetModalFrameSize();
  13687. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  13688. }
  13689. }
  13690. return 1;
  13691. #ifndef TOLUA_RELEASE
  13692. tolua_lerror:
  13693. tolua_error(tolua_S,"#ferror in function 'GetModalFrameSize'.",&tolua_err);
  13694. return 0;
  13695. #endif
  13696. }
  13697. #endif //#ifndef TOLUA_DISABLE
  13698. /* Open function */
  13699. TOLUA_API int tolua_UI_open (lua_State* tolua_S)
  13700. {
  13701. tolua_open(tolua_S);
  13702. tolua_reg_types(tolua_S);
  13703. tolua_module(tolua_S,NULL,1);
  13704. tolua_beginmodule(tolua_S,NULL);
  13705. tolua_cclass(tolua_S,"BorderImage","BorderImage","UIElement",NULL);
  13706. tolua_beginmodule(tolua_S,"BorderImage");
  13707. tolua_function(tolua_S,"SetTexture",tolua_UI_BorderImage_SetTexture00);
  13708. tolua_function(tolua_S,"SetImageRect",tolua_UI_BorderImage_SetImageRect00);
  13709. tolua_function(tolua_S,"SetFullImageRect",tolua_UI_BorderImage_SetFullImageRect00);
  13710. tolua_function(tolua_S,"SetBorder",tolua_UI_BorderImage_SetBorder00);
  13711. tolua_function(tolua_S,"SetHoverOffset",tolua_UI_BorderImage_SetHoverOffset00);
  13712. tolua_function(tolua_S,"SetHoverOffset",tolua_UI_BorderImage_SetHoverOffset01);
  13713. tolua_function(tolua_S,"SetBlendMode",tolua_UI_BorderImage_SetBlendMode00);
  13714. tolua_function(tolua_S,"SetTiled",tolua_UI_BorderImage_SetTiled00);
  13715. tolua_function(tolua_S,"GetTexture",tolua_UI_BorderImage_GetTexture00);
  13716. tolua_function(tolua_S,"GetImageRect",tolua_UI_BorderImage_GetImageRect00);
  13717. tolua_function(tolua_S,"GetBorder",tolua_UI_BorderImage_GetBorder00);
  13718. tolua_function(tolua_S,"GetHoverOffset",tolua_UI_BorderImage_GetHoverOffset00);
  13719. tolua_function(tolua_S,"GetBlendMode",tolua_UI_BorderImage_GetBlendMode00);
  13720. tolua_function(tolua_S,"IsTiled",tolua_UI_BorderImage_IsTiled00);
  13721. tolua_endmodule(tolua_S);
  13722. tolua_cclass(tolua_S,"Button","Button","BorderImage",NULL);
  13723. tolua_beginmodule(tolua_S,"Button");
  13724. tolua_function(tolua_S,"SetPressedOffset",tolua_UI_Button_SetPressedOffset00);
  13725. tolua_function(tolua_S,"SetPressedOffset",tolua_UI_Button_SetPressedOffset01);
  13726. tolua_function(tolua_S,"SetLabelOffset",tolua_UI_Button_SetLabelOffset00);
  13727. tolua_function(tolua_S,"SetLabelOffset",tolua_UI_Button_SetLabelOffset01);
  13728. tolua_function(tolua_S,"SetRepeat",tolua_UI_Button_SetRepeat00);
  13729. tolua_function(tolua_S,"SetRepeatDelay",tolua_UI_Button_SetRepeatDelay00);
  13730. tolua_function(tolua_S,"SetRepeatRate",tolua_UI_Button_SetRepeatRate00);
  13731. tolua_function(tolua_S,"GetPressedOffset",tolua_UI_Button_GetPressedOffset00);
  13732. tolua_function(tolua_S,"GetLabelOffset",tolua_UI_Button_GetLabelOffset00);
  13733. tolua_function(tolua_S,"GetRepeatDelay",tolua_UI_Button_GetRepeatDelay00);
  13734. tolua_function(tolua_S,"GetRepeatRate",tolua_UI_Button_GetRepeatRate00);
  13735. tolua_endmodule(tolua_S);
  13736. tolua_cclass(tolua_S,"CheckBox","CheckBox","BorderImage",NULL);
  13737. tolua_beginmodule(tolua_S,"CheckBox");
  13738. tolua_function(tolua_S,"SetChecked",tolua_UI_CheckBox_SetChecked00);
  13739. tolua_function(tolua_S,"SetCheckedOffset",tolua_UI_CheckBox_SetCheckedOffset00);
  13740. tolua_function(tolua_S,"SetCheckedOffset",tolua_UI_CheckBox_SetCheckedOffset01);
  13741. tolua_function(tolua_S,"IsChecked",tolua_UI_CheckBox_IsChecked00);
  13742. tolua_function(tolua_S,"GetCheckedOffset",tolua_UI_CheckBox_GetCheckedOffset00);
  13743. tolua_endmodule(tolua_S);
  13744. tolua_constant(tolua_S,"CS_NORMAL",CS_NORMAL);
  13745. tolua_constant(tolua_S,"CS_RESIZEVERTICAL",CS_RESIZEVERTICAL);
  13746. tolua_constant(tolua_S,"CS_RESIZEDIAGONAL_TOPRIGHT",CS_RESIZEDIAGONAL_TOPRIGHT);
  13747. tolua_constant(tolua_S,"CS_RESIZEHORIZONTAL",CS_RESIZEHORIZONTAL);
  13748. tolua_constant(tolua_S,"CS_RESIZEDIAGONAL_TOPLEFT",CS_RESIZEDIAGONAL_TOPLEFT);
  13749. tolua_constant(tolua_S,"CS_ACCEPTDROP",CS_ACCEPTDROP);
  13750. tolua_constant(tolua_S,"CS_REJECTDROP",CS_REJECTDROP);
  13751. tolua_constant(tolua_S,"CS_BUSY",CS_BUSY);
  13752. tolua_constant(tolua_S,"CS_MAX_SHAPES",CS_MAX_SHAPES);
  13753. tolua_cclass(tolua_S,"Cursor","Cursor","BorderImage",NULL);
  13754. tolua_beginmodule(tolua_S,"Cursor");
  13755. tolua_function(tolua_S,"DefineShape",tolua_UI_Cursor_DefineShape00);
  13756. tolua_function(tolua_S,"SetShape",tolua_UI_Cursor_SetShape00);
  13757. tolua_function(tolua_S,"GetShape",tolua_UI_Cursor_GetShape00);
  13758. tolua_endmodule(tolua_S);
  13759. tolua_function(tolua_S,"Cursor",tolua_UI_Cursor00);
  13760. tolua_cclass(tolua_S,"DropDownList","DropDownList","Menu",NULL);
  13761. tolua_beginmodule(tolua_S,"DropDownList");
  13762. tolua_function(tolua_S,"AddItem",tolua_UI_DropDownList_AddItem00);
  13763. tolua_function(tolua_S,"InsertItem",tolua_UI_DropDownList_InsertItem00);
  13764. tolua_function(tolua_S,"RemoveItem",tolua_UI_DropDownList_RemoveItem00);
  13765. tolua_function(tolua_S,"RemoveItem",tolua_UI_DropDownList_RemoveItem01);
  13766. tolua_function(tolua_S,"RemoveAllItems",tolua_UI_DropDownList_RemoveAllItems00);
  13767. tolua_function(tolua_S,"SetSelection",tolua_UI_DropDownList_SetSelection00);
  13768. tolua_function(tolua_S,"SetPlaceholderText",tolua_UI_DropDownList_SetPlaceholderText00);
  13769. tolua_function(tolua_S,"SetResizePopup",tolua_UI_DropDownList_SetResizePopup00);
  13770. tolua_function(tolua_S,"GetNumItems",tolua_UI_DropDownList_GetNumItems00);
  13771. tolua_function(tolua_S,"GetItem",tolua_UI_DropDownList_GetItem00);
  13772. tolua_function(tolua_S,"GetSelection",tolua_UI_DropDownList_GetSelection00);
  13773. tolua_function(tolua_S,"GetSelectedItem",tolua_UI_DropDownList_GetSelectedItem00);
  13774. tolua_function(tolua_S,"GetListView",tolua_UI_DropDownList_GetListView00);
  13775. tolua_function(tolua_S,"GetPlaceholder",tolua_UI_DropDownList_GetPlaceholder00);
  13776. tolua_function(tolua_S,"GetPlaceholderText",tolua_UI_DropDownList_GetPlaceholderText00);
  13777. tolua_function(tolua_S,"GetResizePopup",tolua_UI_DropDownList_GetResizePopup00);
  13778. tolua_endmodule(tolua_S);
  13779. tolua_cclass(tolua_S,"FileSelectorEntry","FileSelectorEntry","",NULL);
  13780. tolua_beginmodule(tolua_S,"FileSelectorEntry");
  13781. tolua_variable(tolua_S,"name_",tolua_get_FileSelectorEntry_name_,tolua_set_FileSelectorEntry_name_);
  13782. tolua_variable(tolua_S,"directory_",tolua_get_FileSelectorEntry_directory_,tolua_set_FileSelectorEntry_directory_);
  13783. tolua_endmodule(tolua_S);
  13784. tolua_cclass(tolua_S,"FileSelector","FileSelector","Object",NULL);
  13785. tolua_beginmodule(tolua_S,"FileSelector");
  13786. tolua_function(tolua_S,"SetDefaultStyle",tolua_UI_FileSelector_SetDefaultStyle00);
  13787. tolua_function(tolua_S,"SetTitle",tolua_UI_FileSelector_SetTitle00);
  13788. tolua_function(tolua_S,"SetButtonTexts",tolua_UI_FileSelector_SetButtonTexts00);
  13789. tolua_function(tolua_S,"SetPath",tolua_UI_FileSelector_SetPath00);
  13790. tolua_function(tolua_S,"SetFileName",tolua_UI_FileSelector_SetFileName00);
  13791. tolua_function(tolua_S,"SetFilters",tolua_UI_FileSelector_SetFilters00);
  13792. tolua_function(tolua_S,"SetDirectoryMode",tolua_UI_FileSelector_SetDirectoryMode00);
  13793. tolua_function(tolua_S,"UpdateElements",tolua_UI_FileSelector_UpdateElements00);
  13794. tolua_function(tolua_S,"GetDefaultStyle",tolua_UI_FileSelector_GetDefaultStyle00);
  13795. tolua_function(tolua_S,"GetWindow",tolua_UI_FileSelector_GetWindow00);
  13796. tolua_function(tolua_S,"GetTitleText",tolua_UI_FileSelector_GetTitleText00);
  13797. tolua_function(tolua_S,"GetFileList",tolua_UI_FileSelector_GetFileList00);
  13798. tolua_function(tolua_S,"GetPathEdit",tolua_UI_FileSelector_GetPathEdit00);
  13799. tolua_function(tolua_S,"GetFileNameEdit",tolua_UI_FileSelector_GetFileNameEdit00);
  13800. tolua_function(tolua_S,"GetFilterList",tolua_UI_FileSelector_GetFilterList00);
  13801. tolua_function(tolua_S,"GetOKButton",tolua_UI_FileSelector_GetOKButton00);
  13802. tolua_function(tolua_S,"GetCancelButton",tolua_UI_FileSelector_GetCancelButton00);
  13803. tolua_function(tolua_S,"GetCloseButton",tolua_UI_FileSelector_GetCloseButton00);
  13804. tolua_function(tolua_S,"GetTitle",tolua_UI_FileSelector_GetTitle00);
  13805. tolua_function(tolua_S,"GetPath",tolua_UI_FileSelector_GetPath00);
  13806. tolua_function(tolua_S,"GetFileName",tolua_UI_FileSelector_GetFileName00);
  13807. tolua_function(tolua_S,"GetFilter",tolua_UI_FileSelector_GetFilter00);
  13808. tolua_function(tolua_S,"GetFilterIndex",tolua_UI_FileSelector_GetFilterIndex00);
  13809. tolua_function(tolua_S,"GetDirectoryMode",tolua_UI_FileSelector_GetDirectoryMode00);
  13810. tolua_endmodule(tolua_S);
  13811. tolua_cclass(tolua_S,"Font","Font","Resource",NULL);
  13812. tolua_beginmodule(tolua_S,"Font");
  13813. tolua_endmodule(tolua_S);
  13814. tolua_cclass(tolua_S,"LineEdit","LineEdit","BorderImage",NULL);
  13815. tolua_beginmodule(tolua_S,"LineEdit");
  13816. tolua_function(tolua_S,"SetText",tolua_UI_LineEdit_SetText00);
  13817. tolua_function(tolua_S,"SetCursorPosition",tolua_UI_LineEdit_SetCursorPosition00);
  13818. tolua_function(tolua_S,"SetCursorBlinkRate",tolua_UI_LineEdit_SetCursorBlinkRate00);
  13819. tolua_function(tolua_S,"SetMaxLength",tolua_UI_LineEdit_SetMaxLength00);
  13820. tolua_function(tolua_S,"SetEchoCharacter",tolua_UI_LineEdit_SetEchoCharacter00);
  13821. tolua_function(tolua_S,"SetCursorMovable",tolua_UI_LineEdit_SetCursorMovable00);
  13822. tolua_function(tolua_S,"SetTextSelectable",tolua_UI_LineEdit_SetTextSelectable00);
  13823. tolua_function(tolua_S,"SetTextCopyable",tolua_UI_LineEdit_SetTextCopyable00);
  13824. tolua_function(tolua_S,"SetDoubleClickInterval",tolua_UI_LineEdit_SetDoubleClickInterval00);
  13825. tolua_function(tolua_S,"GetText",tolua_UI_LineEdit_GetText00);
  13826. tolua_function(tolua_S,"GetCursorPosition",tolua_UI_LineEdit_GetCursorPosition00);
  13827. tolua_function(tolua_S,"GetCursorBlinkRate",tolua_UI_LineEdit_GetCursorBlinkRate00);
  13828. tolua_function(tolua_S,"GetMaxLength",tolua_UI_LineEdit_GetMaxLength00);
  13829. tolua_function(tolua_S,"GetEchoCharacter",tolua_UI_LineEdit_GetEchoCharacter00);
  13830. tolua_function(tolua_S,"IsCursorMovable",tolua_UI_LineEdit_IsCursorMovable00);
  13831. tolua_function(tolua_S,"IsTextSelectable",tolua_UI_LineEdit_IsTextSelectable00);
  13832. tolua_function(tolua_S,"IsTextCopyable",tolua_UI_LineEdit_IsTextCopyable00);
  13833. tolua_function(tolua_S,"GetTextElement",tolua_UI_LineEdit_GetTextElement00);
  13834. tolua_function(tolua_S,"GetCursor",tolua_UI_LineEdit_GetCursor00);
  13835. tolua_function(tolua_S,"GetDoubleClickInterval",tolua_UI_LineEdit_GetDoubleClickInterval00);
  13836. tolua_endmodule(tolua_S);
  13837. tolua_constant(tolua_S,"HM_NEVER",HM_NEVER);
  13838. tolua_constant(tolua_S,"HM_FOCUS",HM_FOCUS);
  13839. tolua_constant(tolua_S,"HM_ALWAYS",HM_ALWAYS);
  13840. tolua_cclass(tolua_S,"ListView","ListView","ScrollView",NULL);
  13841. tolua_beginmodule(tolua_S,"ListView");
  13842. tolua_function(tolua_S,"AddItem",tolua_UI_ListView_AddItem00);
  13843. tolua_function(tolua_S,"InsertItem",tolua_UI_ListView_InsertItem00);
  13844. tolua_function(tolua_S,"RemoveItem",tolua_UI_ListView_RemoveItem00);
  13845. tolua_function(tolua_S,"RemoveItem",tolua_UI_ListView_RemoveItem01);
  13846. tolua_function(tolua_S,"RemoveAllItems",tolua_UI_ListView_RemoveAllItems00);
  13847. tolua_function(tolua_S,"SetSelection",tolua_UI_ListView_SetSelection00);
  13848. tolua_function(tolua_S,"AddSelection",tolua_UI_ListView_AddSelection00);
  13849. tolua_function(tolua_S,"RemoveSelection",tolua_UI_ListView_RemoveSelection00);
  13850. tolua_function(tolua_S,"ToggleSelection",tolua_UI_ListView_ToggleSelection00);
  13851. tolua_function(tolua_S,"ChangeSelection",tolua_UI_ListView_ChangeSelection00);
  13852. tolua_function(tolua_S,"ClearSelection",tolua_UI_ListView_ClearSelection00);
  13853. tolua_function(tolua_S,"SetHighlightMode",tolua_UI_ListView_SetHighlightMode00);
  13854. tolua_function(tolua_S,"SetMultiselect",tolua_UI_ListView_SetMultiselect00);
  13855. tolua_function(tolua_S,"SetHierarchyMode",tolua_UI_ListView_SetHierarchyMode00);
  13856. tolua_function(tolua_S,"SetBaseIndent",tolua_UI_ListView_SetBaseIndent00);
  13857. tolua_function(tolua_S,"SetClearSelectionOnDefocus",tolua_UI_ListView_SetClearSelectionOnDefocus00);
  13858. tolua_function(tolua_S,"SetDoubleClickInterval",tolua_UI_ListView_SetDoubleClickInterval00);
  13859. tolua_function(tolua_S,"Expand",tolua_UI_ListView_Expand00);
  13860. tolua_function(tolua_S,"ToggleExpand",tolua_UI_ListView_ToggleExpand00);
  13861. tolua_function(tolua_S,"GetNumItems",tolua_UI_ListView_GetNumItems00);
  13862. tolua_function(tolua_S,"GetItem",tolua_UI_ListView_GetItem00);
  13863. tolua_function(tolua_S,"FindItem",tolua_UI_ListView_FindItem00);
  13864. tolua_function(tolua_S,"GetSelection",tolua_UI_ListView_GetSelection00);
  13865. tolua_function(tolua_S,"GetSelectedItem",tolua_UI_ListView_GetSelectedItem00);
  13866. tolua_function(tolua_S,"IsSelected",tolua_UI_ListView_IsSelected00);
  13867. tolua_function(tolua_S,"IsExpanded",tolua_UI_ListView_IsExpanded00);
  13868. tolua_function(tolua_S,"GetHighlightMode",tolua_UI_ListView_GetHighlightMode00);
  13869. tolua_function(tolua_S,"GetMultiselect",tolua_UI_ListView_GetMultiselect00);
  13870. tolua_function(tolua_S,"GetClearSelectionOnDefocus",tolua_UI_ListView_GetClearSelectionOnDefocus00);
  13871. tolua_function(tolua_S,"GetHierarchyMode",tolua_UI_ListView_GetHierarchyMode00);
  13872. tolua_function(tolua_S,"GetBaseIndent",tolua_UI_ListView_GetBaseIndent00);
  13873. tolua_function(tolua_S,"GetDoubleClickInterval",tolua_UI_ListView_GetDoubleClickInterval00);
  13874. tolua_endmodule(tolua_S);
  13875. tolua_cclass(tolua_S,"Menu","Menu","Button",NULL);
  13876. tolua_beginmodule(tolua_S,"Menu");
  13877. tolua_function(tolua_S,"SetPopup",tolua_UI_Menu_SetPopup00);
  13878. tolua_function(tolua_S,"SetPopupOffset",tolua_UI_Menu_SetPopupOffset00);
  13879. tolua_function(tolua_S,"SetPopupOffset",tolua_UI_Menu_SetPopupOffset01);
  13880. tolua_function(tolua_S,"ShowPopup",tolua_UI_Menu_ShowPopup00);
  13881. tolua_function(tolua_S,"SetAccelerator",tolua_UI_Menu_SetAccelerator00);
  13882. tolua_function(tolua_S,"GetPopup",tolua_UI_Menu_GetPopup00);
  13883. tolua_function(tolua_S,"GetPopupOffset",tolua_UI_Menu_GetPopupOffset00);
  13884. tolua_function(tolua_S,"GetShowPopup",tolua_UI_Menu_GetShowPopup00);
  13885. tolua_function(tolua_S,"GetAcceleratorKey",tolua_UI_Menu_GetAcceleratorKey00);
  13886. tolua_function(tolua_S,"GetAcceleratorQualifiers",tolua_UI_Menu_GetAcceleratorQualifiers00);
  13887. tolua_endmodule(tolua_S);
  13888. tolua_cclass(tolua_S,"ScrollBar","ScrollBar","UIElement",NULL);
  13889. tolua_beginmodule(tolua_S,"ScrollBar");
  13890. tolua_function(tolua_S,"SetOrientation",tolua_UI_ScrollBar_SetOrientation00);
  13891. tolua_function(tolua_S,"SetRange",tolua_UI_ScrollBar_SetRange00);
  13892. tolua_function(tolua_S,"SetValue",tolua_UI_ScrollBar_SetValue00);
  13893. tolua_function(tolua_S,"ChangeValue",tolua_UI_ScrollBar_ChangeValue00);
  13894. tolua_function(tolua_S,"SetScrollStep",tolua_UI_ScrollBar_SetScrollStep00);
  13895. tolua_function(tolua_S,"SetStepFactor",tolua_UI_ScrollBar_SetStepFactor00);
  13896. tolua_function(tolua_S,"StepBack",tolua_UI_ScrollBar_StepBack00);
  13897. tolua_function(tolua_S,"StepForward",tolua_UI_ScrollBar_StepForward00);
  13898. tolua_function(tolua_S,"GetOrientation",tolua_UI_ScrollBar_GetOrientation00);
  13899. tolua_function(tolua_S,"GetRange",tolua_UI_ScrollBar_GetRange00);
  13900. tolua_function(tolua_S,"GetValue",tolua_UI_ScrollBar_GetValue00);
  13901. tolua_function(tolua_S,"GetScrollStep",tolua_UI_ScrollBar_GetScrollStep00);
  13902. tolua_function(tolua_S,"GetStepFactor",tolua_UI_ScrollBar_GetStepFactor00);
  13903. tolua_function(tolua_S,"GetEffectiveScrollStep",tolua_UI_ScrollBar_GetEffectiveScrollStep00);
  13904. tolua_function(tolua_S,"GetBackButton",tolua_UI_ScrollBar_GetBackButton00);
  13905. tolua_function(tolua_S,"GetForwardButton",tolua_UI_ScrollBar_GetForwardButton00);
  13906. tolua_function(tolua_S,"GetSlider",tolua_UI_ScrollBar_GetSlider00);
  13907. tolua_endmodule(tolua_S);
  13908. tolua_cclass(tolua_S,"ScrollView","ScrollView","UIElement",NULL);
  13909. tolua_beginmodule(tolua_S,"ScrollView");
  13910. tolua_function(tolua_S,"SetContentElement",tolua_UI_ScrollView_SetContentElement00);
  13911. tolua_function(tolua_S,"SetViewPosition",tolua_UI_ScrollView_SetViewPosition00);
  13912. tolua_function(tolua_S,"SetViewPosition",tolua_UI_ScrollView_SetViewPosition01);
  13913. tolua_function(tolua_S,"SetScrollBarsVisible",tolua_UI_ScrollView_SetScrollBarsVisible00);
  13914. tolua_function(tolua_S,"SetScrollBarsAutoVisible",tolua_UI_ScrollView_SetScrollBarsAutoVisible00);
  13915. tolua_function(tolua_S,"SetScrollStep",tolua_UI_ScrollView_SetScrollStep00);
  13916. tolua_function(tolua_S,"SetPageStep",tolua_UI_ScrollView_SetPageStep00);
  13917. tolua_function(tolua_S,"GetViewPosition",tolua_UI_ScrollView_GetViewPosition00);
  13918. tolua_function(tolua_S,"GetContentElement",tolua_UI_ScrollView_GetContentElement00);
  13919. tolua_function(tolua_S,"GetHorizontalScrollBar",tolua_UI_ScrollView_GetHorizontalScrollBar00);
  13920. tolua_function(tolua_S,"GetVerticalScrollBar",tolua_UI_ScrollView_GetVerticalScrollBar00);
  13921. tolua_function(tolua_S,"GetScrollPanel",tolua_UI_ScrollView_GetScrollPanel00);
  13922. tolua_function(tolua_S,"GetScrollBarsAutoVisible",tolua_UI_ScrollView_GetScrollBarsAutoVisible00);
  13923. tolua_function(tolua_S,"GetScrollStep",tolua_UI_ScrollView_GetScrollStep00);
  13924. tolua_function(tolua_S,"GetPageStep",tolua_UI_ScrollView_GetPageStep00);
  13925. tolua_function(tolua_S,"SetViewPositionAttr",tolua_UI_ScrollView_SetViewPositionAttr00);
  13926. tolua_endmodule(tolua_S);
  13927. tolua_cclass(tolua_S,"Slider","Slider","BorderImage",NULL);
  13928. tolua_beginmodule(tolua_S,"Slider");
  13929. tolua_function(tolua_S,"SetOrientation",tolua_UI_Slider_SetOrientation00);
  13930. tolua_function(tolua_S,"SetRange",tolua_UI_Slider_SetRange00);
  13931. tolua_function(tolua_S,"SetValue",tolua_UI_Slider_SetValue00);
  13932. tolua_function(tolua_S,"ChangeValue",tolua_UI_Slider_ChangeValue00);
  13933. tolua_function(tolua_S,"SetRepeatRate",tolua_UI_Slider_SetRepeatRate00);
  13934. tolua_function(tolua_S,"GetOrientation",tolua_UI_Slider_GetOrientation00);
  13935. tolua_function(tolua_S,"GetRange",tolua_UI_Slider_GetRange00);
  13936. tolua_function(tolua_S,"GetValue",tolua_UI_Slider_GetValue00);
  13937. tolua_function(tolua_S,"GetKnob",tolua_UI_Slider_GetKnob00);
  13938. tolua_function(tolua_S,"GetRepeatRate",tolua_UI_Slider_GetRepeatRate00);
  13939. tolua_endmodule(tolua_S);
  13940. tolua_cclass(tolua_S,"Sprite","Sprite","UIElement",NULL);
  13941. tolua_beginmodule(tolua_S,"Sprite");
  13942. tolua_function(tolua_S,"SetPosition",tolua_UI_Sprite_SetPosition00);
  13943. tolua_function(tolua_S,"SetPosition",tolua_UI_Sprite_SetPosition01);
  13944. tolua_function(tolua_S,"SetHotSpot",tolua_UI_Sprite_SetHotSpot00);
  13945. tolua_function(tolua_S,"SetHotSpot",tolua_UI_Sprite_SetHotSpot01);
  13946. tolua_function(tolua_S,"SetScale",tolua_UI_Sprite_SetScale00);
  13947. tolua_function(tolua_S,"SetScale",tolua_UI_Sprite_SetScale01);
  13948. tolua_function(tolua_S,"SetScale",tolua_UI_Sprite_SetScale02);
  13949. tolua_function(tolua_S,"SetRotation",tolua_UI_Sprite_SetRotation00);
  13950. tolua_function(tolua_S,"SetTexture",tolua_UI_Sprite_SetTexture00);
  13951. tolua_function(tolua_S,"SetImageRect",tolua_UI_Sprite_SetImageRect00);
  13952. tolua_function(tolua_S,"SetFullImageRect",tolua_UI_Sprite_SetFullImageRect00);
  13953. tolua_function(tolua_S,"SetBlendMode",tolua_UI_Sprite_SetBlendMode00);
  13954. tolua_function(tolua_S,"GetPosition",tolua_UI_Sprite_GetPosition00);
  13955. tolua_function(tolua_S,"GetHotSpot",tolua_UI_Sprite_GetHotSpot00);
  13956. tolua_function(tolua_S,"GetScale",tolua_UI_Sprite_GetScale00);
  13957. tolua_function(tolua_S,"GetRotation",tolua_UI_Sprite_GetRotation00);
  13958. tolua_function(tolua_S,"GetTexture",tolua_UI_Sprite_GetTexture00);
  13959. tolua_function(tolua_S,"GetImageRect",tolua_UI_Sprite_GetImageRect00);
  13960. tolua_function(tolua_S,"GetBlendMode",tolua_UI_Sprite_GetBlendMode00);
  13961. tolua_function(tolua_S,"SetTextureAttr",tolua_UI_Sprite_SetTextureAttr00);
  13962. tolua_function(tolua_S,"GetTextureAttr",tolua_UI_Sprite_GetTextureAttr00);
  13963. tolua_function(tolua_S,"GetTransform",tolua_UI_Sprite_GetTransform00);
  13964. tolua_endmodule(tolua_S);
  13965. tolua_function(tolua_S,"Sprite",tolua_UI_Sprite00);
  13966. tolua_cclass(tolua_S,"Text","Text","UIElement",NULL);
  13967. tolua_beginmodule(tolua_S,"Text");
  13968. tolua_function(tolua_S,"SetFont",tolua_UI_Text_SetFont00);
  13969. tolua_function(tolua_S,"SetFont",tolua_UI_Text_SetFont01);
  13970. tolua_function(tolua_S,"SetText",tolua_UI_Text_SetText00);
  13971. tolua_function(tolua_S,"SetTextAlignment",tolua_UI_Text_SetTextAlignment00);
  13972. tolua_function(tolua_S,"SetRowSpacing",tolua_UI_Text_SetRowSpacing00);
  13973. tolua_function(tolua_S,"SetWordwrap",tolua_UI_Text_SetWordwrap00);
  13974. tolua_function(tolua_S,"SetSelection",tolua_UI_Text_SetSelection00);
  13975. tolua_function(tolua_S,"ClearSelection",tolua_UI_Text_ClearSelection00);
  13976. tolua_function(tolua_S,"SetSelectionColor",tolua_UI_Text_SetSelectionColor00);
  13977. tolua_function(tolua_S,"SetHoverColor",tolua_UI_Text_SetHoverColor00);
  13978. tolua_function(tolua_S,"GetFont",tolua_UI_Text_GetFont00);
  13979. tolua_function(tolua_S,"GetFontSize",tolua_UI_Text_GetFontSize00);
  13980. tolua_function(tolua_S,"GetText",tolua_UI_Text_GetText00);
  13981. tolua_function(tolua_S,"GetTextAlignment",tolua_UI_Text_GetTextAlignment00);
  13982. tolua_function(tolua_S,"GetRowSpacing",tolua_UI_Text_GetRowSpacing00);
  13983. tolua_function(tolua_S,"GetWordwrap",tolua_UI_Text_GetWordwrap00);
  13984. tolua_function(tolua_S,"GetSelectionStart",tolua_UI_Text_GetSelectionStart00);
  13985. tolua_function(tolua_S,"GetSelectionLength",tolua_UI_Text_GetSelectionLength00);
  13986. tolua_function(tolua_S,"GetSelectionColor",tolua_UI_Text_GetSelectionColor00);
  13987. tolua_function(tolua_S,"GetHoverColor",tolua_UI_Text_GetHoverColor00);
  13988. tolua_function(tolua_S,"GetRowHeight",tolua_UI_Text_GetRowHeight00);
  13989. tolua_function(tolua_S,"GetNumRows",tolua_UI_Text_GetNumRows00);
  13990. tolua_endmodule(tolua_S);
  13991. tolua_cclass(tolua_S,"Text3D","Text3D","Drawable",NULL);
  13992. tolua_beginmodule(tolua_S,"Text3D");
  13993. tolua_function(tolua_S,"SetFont",tolua_UI_Text3D_SetFont00);
  13994. tolua_function(tolua_S,"SetFont",tolua_UI_Text3D_SetFont01);
  13995. tolua_function(tolua_S,"SetMaterial",tolua_UI_Text3D_SetMaterial00);
  13996. tolua_function(tolua_S,"SetText",tolua_UI_Text3D_SetText00);
  13997. tolua_function(tolua_S,"SetAlignment",tolua_UI_Text3D_SetAlignment00);
  13998. tolua_function(tolua_S,"SetHorizontalAlignment",tolua_UI_Text3D_SetHorizontalAlignment00);
  13999. tolua_function(tolua_S,"SetVerticalAlignment",tolua_UI_Text3D_SetVerticalAlignment00);
  14000. tolua_function(tolua_S,"SetTextAlignment",tolua_UI_Text3D_SetTextAlignment00);
  14001. tolua_function(tolua_S,"SetRowSpacing",tolua_UI_Text3D_SetRowSpacing00);
  14002. tolua_function(tolua_S,"SetWordwrap",tolua_UI_Text3D_SetWordwrap00);
  14003. tolua_function(tolua_S,"SetWidth",tolua_UI_Text3D_SetWidth00);
  14004. tolua_function(tolua_S,"SetColor",tolua_UI_Text3D_SetColor00);
  14005. tolua_function(tolua_S,"SetColor",tolua_UI_Text3D_SetColor01);
  14006. tolua_function(tolua_S,"SetOpacity",tolua_UI_Text3D_SetOpacity00);
  14007. tolua_function(tolua_S,"SetFaceCamera",tolua_UI_Text3D_SetFaceCamera00);
  14008. tolua_function(tolua_S,"GetFont",tolua_UI_Text3D_GetFont00);
  14009. tolua_function(tolua_S,"GetMaterial",tolua_UI_Text3D_GetMaterial00);
  14010. tolua_function(tolua_S,"GetFontSize",tolua_UI_Text3D_GetFontSize00);
  14011. tolua_function(tolua_S,"GetText",tolua_UI_Text3D_GetText00);
  14012. tolua_function(tolua_S,"GetTextAlignment",tolua_UI_Text3D_GetTextAlignment00);
  14013. tolua_function(tolua_S,"GetHorizontalAlignment",tolua_UI_Text3D_GetHorizontalAlignment00);
  14014. tolua_function(tolua_S,"GetVerticalAlignment",tolua_UI_Text3D_GetVerticalAlignment00);
  14015. tolua_function(tolua_S,"GetRowSpacing",tolua_UI_Text3D_GetRowSpacing00);
  14016. tolua_function(tolua_S,"GetWordwrap",tolua_UI_Text3D_GetWordwrap00);
  14017. tolua_function(tolua_S,"GetWidth",tolua_UI_Text3D_GetWidth00);
  14018. tolua_function(tolua_S,"GetRowHeight",tolua_UI_Text3D_GetRowHeight00);
  14019. tolua_function(tolua_S,"GetNumRows",tolua_UI_Text3D_GetNumRows00);
  14020. tolua_function(tolua_S,"GetRowWidths",tolua_UI_Text3D_GetRowWidths00);
  14021. tolua_function(tolua_S,"GetColor",tolua_UI_Text3D_GetColor00);
  14022. tolua_function(tolua_S,"GetOpacity",tolua_UI_Text3D_GetOpacity00);
  14023. tolua_function(tolua_S,"GetFaceCamera",tolua_UI_Text3D_GetFaceCamera00);
  14024. tolua_endmodule(tolua_S);
  14025. tolua_cclass(tolua_S,"UI","UI","Object",NULL);
  14026. tolua_beginmodule(tolua_S,"UI");
  14027. tolua_function(tolua_S,"SetCursor",tolua_UI_UI_SetCursor00);
  14028. tolua_function(tolua_S,"SetFocusElement",tolua_UI_UI_SetFocusElement00);
  14029. tolua_function(tolua_S,"SetModalElement",tolua_UI_UI_SetModalElement00);
  14030. tolua_function(tolua_S,"Clear",tolua_UI_UI_Clear00);
  14031. tolua_function(tolua_S,"Update",tolua_UI_UI_Update00);
  14032. tolua_function(tolua_S,"RenderUpdate",tolua_UI_UI_RenderUpdate00);
  14033. tolua_function(tolua_S,"Render",tolua_UI_UI_Render00);
  14034. tolua_function(tolua_S,"DebugDraw",tolua_UI_UI_DebugDraw00);
  14035. tolua_function(tolua_S,"SaveLayout",tolua_UI_UI_SaveLayout00);
  14036. tolua_function(tolua_S,"SetClipBoardText",tolua_UI_UI_SetClipBoardText00);
  14037. tolua_function(tolua_S,"SetNonFocusedMouseWheel",tolua_UI_UI_SetNonFocusedMouseWheel00);
  14038. tolua_function(tolua_S,"GetRoot",tolua_UI_UI_GetRoot00);
  14039. tolua_function(tolua_S,"GetRootModalElement",tolua_UI_UI_GetRootModalElement00);
  14040. tolua_function(tolua_S,"GetCursor",tolua_UI_UI_GetCursor00);
  14041. tolua_function(tolua_S,"GetElementAt",tolua_UI_UI_GetElementAt00);
  14042. tolua_function(tolua_S,"GetElementAt",tolua_UI_UI_GetElementAt01);
  14043. tolua_function(tolua_S,"GetFocusElement",tolua_UI_UI_GetFocusElement00);
  14044. tolua_function(tolua_S,"GetFrontElement",tolua_UI_UI_GetFrontElement00);
  14045. tolua_function(tolua_S,"GetCursorPosition",tolua_UI_UI_GetCursorPosition00);
  14046. tolua_function(tolua_S,"GetClipBoardText",tolua_UI_UI_GetClipBoardText00);
  14047. tolua_function(tolua_S,"IsNonFocusedMouseWheel",tolua_UI_UI_IsNonFocusedMouseWheel00);
  14048. tolua_function(tolua_S,"HasModalElement",tolua_UI_UI_HasModalElement00);
  14049. tolua_endmodule(tolua_S);
  14050. tolua_function(tolua_S,"GetUI",tolua_UI_GetUI00);
  14051. tolua_constant(tolua_S,"HA_LEFT",HA_LEFT);
  14052. tolua_constant(tolua_S,"HA_CENTER",HA_CENTER);
  14053. tolua_constant(tolua_S,"HA_RIGHT",HA_RIGHT);
  14054. tolua_constant(tolua_S,"VA_TOP",VA_TOP);
  14055. tolua_constant(tolua_S,"VA_CENTER",VA_CENTER);
  14056. tolua_constant(tolua_S,"VA_BOTTOM",VA_BOTTOM);
  14057. tolua_constant(tolua_S,"C_TOPLEFT",C_TOPLEFT);
  14058. tolua_constant(tolua_S,"C_TOPRIGHT",C_TOPRIGHT);
  14059. tolua_constant(tolua_S,"C_BOTTOMLEFT",C_BOTTOMLEFT);
  14060. tolua_constant(tolua_S,"C_BOTTOMRIGHT",C_BOTTOMRIGHT);
  14061. tolua_constant(tolua_S,"MAX_UIELEMENT_CORNERS",MAX_UIELEMENT_CORNERS);
  14062. tolua_constant(tolua_S,"O_HORIZONTAL",O_HORIZONTAL);
  14063. tolua_constant(tolua_S,"O_VERTICAL",O_VERTICAL);
  14064. tolua_constant(tolua_S,"FM_NOTFOCUSABLE",FM_NOTFOCUSABLE);
  14065. tolua_constant(tolua_S,"FM_RESETFOCUS",FM_RESETFOCUS);
  14066. tolua_constant(tolua_S,"FM_FOCUSABLE",FM_FOCUSABLE);
  14067. tolua_constant(tolua_S,"FM_FOCUSABLE_DEFOCUSABLE",FM_FOCUSABLE_DEFOCUSABLE);
  14068. tolua_constant(tolua_S,"LM_FREE",LM_FREE);
  14069. tolua_constant(tolua_S,"LM_HORIZONTAL",LM_HORIZONTAL);
  14070. tolua_constant(tolua_S,"LM_VERTICAL",LM_VERTICAL);
  14071. tolua_constant(tolua_S,"TM_BREADTH_FIRST",TM_BREADTH_FIRST);
  14072. tolua_constant(tolua_S,"TM_DEPTH_FIRST",TM_DEPTH_FIRST);
  14073. tolua_variable(tolua_S,"DD_DISABLED",tolua_get_DD_DISABLED,NULL);
  14074. tolua_variable(tolua_S,"DD_SOURCE",tolua_get_DD_SOURCE,NULL);
  14075. tolua_variable(tolua_S,"DD_TARGET",tolua_get_DD_TARGET,NULL);
  14076. tolua_variable(tolua_S,"DD_SOURCE_AND_TARGET",tolua_get_DD_SOURCE_AND_TARGET,NULL);
  14077. tolua_cclass(tolua_S,"UIElement","UIElement","Serializable",NULL);
  14078. tolua_beginmodule(tolua_S,"UIElement");
  14079. tolua_function(tolua_S,"SetName",tolua_UI_UIElement_SetName00);
  14080. tolua_function(tolua_S,"SetPosition",tolua_UI_UIElement_SetPosition00);
  14081. tolua_function(tolua_S,"SetPosition",tolua_UI_UIElement_SetPosition01);
  14082. tolua_function(tolua_S,"SetSize",tolua_UI_UIElement_SetSize00);
  14083. tolua_function(tolua_S,"SetSize",tolua_UI_UIElement_SetSize01);
  14084. tolua_function(tolua_S,"SetWidth",tolua_UI_UIElement_SetWidth00);
  14085. tolua_function(tolua_S,"SetHeight",tolua_UI_UIElement_SetHeight00);
  14086. tolua_function(tolua_S,"SetMinSize",tolua_UI_UIElement_SetMinSize00);
  14087. tolua_function(tolua_S,"SetMinSize",tolua_UI_UIElement_SetMinSize01);
  14088. tolua_function(tolua_S,"SetMinWidth",tolua_UI_UIElement_SetMinWidth00);
  14089. tolua_function(tolua_S,"SetMinHeight",tolua_UI_UIElement_SetMinHeight00);
  14090. tolua_function(tolua_S,"SetMaxSize",tolua_UI_UIElement_SetMaxSize00);
  14091. tolua_function(tolua_S,"SetMaxSize",tolua_UI_UIElement_SetMaxSize01);
  14092. tolua_function(tolua_S,"SetMaxWidth",tolua_UI_UIElement_SetMaxWidth00);
  14093. tolua_function(tolua_S,"SetMaxHeight",tolua_UI_UIElement_SetMaxHeight00);
  14094. tolua_function(tolua_S,"SetFixedSize",tolua_UI_UIElement_SetFixedSize00);
  14095. tolua_function(tolua_S,"SetFixedSize",tolua_UI_UIElement_SetFixedSize01);
  14096. tolua_function(tolua_S,"SetFixedWidth",tolua_UI_UIElement_SetFixedWidth00);
  14097. tolua_function(tolua_S,"SetFixedHeight",tolua_UI_UIElement_SetFixedHeight00);
  14098. tolua_function(tolua_S,"SetAlignment",tolua_UI_UIElement_SetAlignment00);
  14099. tolua_function(tolua_S,"SetHorizontalAlignment",tolua_UI_UIElement_SetHorizontalAlignment00);
  14100. tolua_function(tolua_S,"SetVerticalAlignment",tolua_UI_UIElement_SetVerticalAlignment00);
  14101. tolua_function(tolua_S,"SetClipBorder",tolua_UI_UIElement_SetClipBorder00);
  14102. tolua_function(tolua_S,"SetColor",tolua_UI_UIElement_SetColor00);
  14103. tolua_function(tolua_S,"SetColor",tolua_UI_UIElement_SetColor01);
  14104. tolua_function(tolua_S,"SetPriority",tolua_UI_UIElement_SetPriority00);
  14105. tolua_function(tolua_S,"SetOpacity",tolua_UI_UIElement_SetOpacity00);
  14106. tolua_function(tolua_S,"SetBringToFront",tolua_UI_UIElement_SetBringToFront00);
  14107. tolua_function(tolua_S,"SetBringToBack",tolua_UI_UIElement_SetBringToBack00);
  14108. tolua_function(tolua_S,"SetClipChildren",tolua_UI_UIElement_SetClipChildren00);
  14109. tolua_function(tolua_S,"SetSortChildren",tolua_UI_UIElement_SetSortChildren00);
  14110. tolua_function(tolua_S,"SetUseDerivedOpacity",tolua_UI_UIElement_SetUseDerivedOpacity00);
  14111. tolua_function(tolua_S,"SetEnabled",tolua_UI_UIElement_SetEnabled00);
  14112. tolua_function(tolua_S,"SetFocus",tolua_UI_UIElement_SetFocus00);
  14113. tolua_function(tolua_S,"SetSelected",tolua_UI_UIElement_SetSelected00);
  14114. tolua_function(tolua_S,"SetVisible",tolua_UI_UIElement_SetVisible00);
  14115. tolua_function(tolua_S,"SetFocusMode",tolua_UI_UIElement_SetFocusMode00);
  14116. tolua_function(tolua_S,"SetDragDropMode",tolua_UI_UIElement_SetDragDropMode00);
  14117. tolua_function(tolua_S,"SetStyle",tolua_UI_UIElement_SetStyle00);
  14118. tolua_function(tolua_S,"SetStyle",tolua_UI_UIElement_SetStyle01);
  14119. tolua_function(tolua_S,"SetStyleAuto",tolua_UI_UIElement_SetStyleAuto00);
  14120. tolua_function(tolua_S,"SetDefaultStyle",tolua_UI_UIElement_SetDefaultStyle00);
  14121. tolua_function(tolua_S,"SetLayout",tolua_UI_UIElement_SetLayout00);
  14122. tolua_function(tolua_S,"SetLayout",tolua_UI_UIElement_SetLayout01);
  14123. tolua_function(tolua_S,"SetLayoutMode",tolua_UI_UIElement_SetLayoutMode00);
  14124. tolua_function(tolua_S,"SetLayoutSpacing",tolua_UI_UIElement_SetLayoutSpacing00);
  14125. tolua_function(tolua_S,"SetLayoutBorder",tolua_UI_UIElement_SetLayoutBorder00);
  14126. tolua_function(tolua_S,"SetIndent",tolua_UI_UIElement_SetIndent00);
  14127. tolua_function(tolua_S,"SetIndentSpacing",tolua_UI_UIElement_SetIndentSpacing00);
  14128. tolua_function(tolua_S,"UpdateLayout",tolua_UI_UIElement_UpdateLayout00);
  14129. tolua_function(tolua_S,"DisableLayoutUpdate",tolua_UI_UIElement_DisableLayoutUpdate00);
  14130. tolua_function(tolua_S,"EnableLayoutUpdate",tolua_UI_UIElement_EnableLayoutUpdate00);
  14131. tolua_function(tolua_S,"BringToFront",tolua_UI_UIElement_BringToFront00);
  14132. tolua_function(tolua_S,"CreateChild",tolua_UI_UIElement_CreateChild00);
  14133. tolua_function(tolua_S,"CreateChild",tolua_UI_UIElement_CreateChild01);
  14134. tolua_function(tolua_S,"AddChild",tolua_UI_UIElement_AddChild00);
  14135. tolua_function(tolua_S,"InsertChild",tolua_UI_UIElement_InsertChild00);
  14136. tolua_function(tolua_S,"RemoveChild",tolua_UI_UIElement_RemoveChild00);
  14137. tolua_function(tolua_S,"RemoveChildAtIndex",tolua_UI_UIElement_RemoveChildAtIndex00);
  14138. tolua_function(tolua_S,"RemoveAllChildren",tolua_UI_UIElement_RemoveAllChildren00);
  14139. tolua_function(tolua_S,"Remove",tolua_UI_UIElement_Remove00);
  14140. tolua_function(tolua_S,"FindChild",tolua_UI_UIElement_FindChild00);
  14141. tolua_function(tolua_S,"SetParent",tolua_UI_UIElement_SetParent00);
  14142. tolua_function(tolua_S,"SetVar",tolua_UI_UIElement_SetVar00);
  14143. tolua_function(tolua_S,"SetInternal",tolua_UI_UIElement_SetInternal00);
  14144. tolua_function(tolua_S,"SetTraversalMode",tolua_UI_UIElement_SetTraversalMode00);
  14145. tolua_function(tolua_S,"SetElementEventSender",tolua_UI_UIElement_SetElementEventSender00);
  14146. tolua_function(tolua_S,"GetName",tolua_UI_UIElement_GetName00);
  14147. tolua_function(tolua_S,"GetPosition",tolua_UI_UIElement_GetPosition00);
  14148. tolua_function(tolua_S,"GetSize",tolua_UI_UIElement_GetSize00);
  14149. tolua_function(tolua_S,"GetWidth",tolua_UI_UIElement_GetWidth00);
  14150. tolua_function(tolua_S,"GetHeight",tolua_UI_UIElement_GetHeight00);
  14151. tolua_function(tolua_S,"GetMinSize",tolua_UI_UIElement_GetMinSize00);
  14152. tolua_function(tolua_S,"GetMinWidth",tolua_UI_UIElement_GetMinWidth00);
  14153. tolua_function(tolua_S,"GetMinHeight",tolua_UI_UIElement_GetMinHeight00);
  14154. tolua_function(tolua_S,"GetMaxSize",tolua_UI_UIElement_GetMaxSize00);
  14155. tolua_function(tolua_S,"GetMaxWidth",tolua_UI_UIElement_GetMaxWidth00);
  14156. tolua_function(tolua_S,"GetMaxHeight",tolua_UI_UIElement_GetMaxHeight00);
  14157. tolua_function(tolua_S,"IsFixedSize",tolua_UI_UIElement_IsFixedSize00);
  14158. tolua_function(tolua_S,"IsFixedWidth",tolua_UI_UIElement_IsFixedWidth00);
  14159. tolua_function(tolua_S,"IsFixedHeight",tolua_UI_UIElement_IsFixedHeight00);
  14160. tolua_function(tolua_S,"GetChildOffset",tolua_UI_UIElement_GetChildOffset00);
  14161. tolua_function(tolua_S,"GetHorizontalAlignment",tolua_UI_UIElement_GetHorizontalAlignment00);
  14162. tolua_function(tolua_S,"GetVerticalAlignment",tolua_UI_UIElement_GetVerticalAlignment00);
  14163. tolua_function(tolua_S,"GetClipBorder",tolua_UI_UIElement_GetClipBorder00);
  14164. tolua_function(tolua_S,"GetColor",tolua_UI_UIElement_GetColor00);
  14165. tolua_function(tolua_S,"GetPriority",tolua_UI_UIElement_GetPriority00);
  14166. tolua_function(tolua_S,"GetOpacity",tolua_UI_UIElement_GetOpacity00);
  14167. tolua_function(tolua_S,"GetDerivedOpacity",tolua_UI_UIElement_GetDerivedOpacity00);
  14168. tolua_function(tolua_S,"GetBringToFront",tolua_UI_UIElement_GetBringToFront00);
  14169. tolua_function(tolua_S,"GetBringToBack",tolua_UI_UIElement_GetBringToBack00);
  14170. tolua_function(tolua_S,"GetClipChildren",tolua_UI_UIElement_GetClipChildren00);
  14171. tolua_function(tolua_S,"GetSortChildren",tolua_UI_UIElement_GetSortChildren00);
  14172. tolua_function(tolua_S,"GetUseDerivedOpacity",tolua_UI_UIElement_GetUseDerivedOpacity00);
  14173. tolua_function(tolua_S,"HasFocus",tolua_UI_UIElement_HasFocus00);
  14174. tolua_function(tolua_S,"IsEnabled",tolua_UI_UIElement_IsEnabled00);
  14175. tolua_function(tolua_S,"IsSelected",tolua_UI_UIElement_IsSelected00);
  14176. tolua_function(tolua_S,"IsVisible",tolua_UI_UIElement_IsVisible00);
  14177. tolua_function(tolua_S,"IsHovering",tolua_UI_UIElement_IsHovering00);
  14178. tolua_function(tolua_S,"IsInternal",tolua_UI_UIElement_IsInternal00);
  14179. tolua_function(tolua_S,"HasColorGradient",tolua_UI_UIElement_HasColorGradient00);
  14180. tolua_function(tolua_S,"GetFocusMode",tolua_UI_UIElement_GetFocusMode00);
  14181. tolua_function(tolua_S,"GetDragDropMode",tolua_UI_UIElement_GetDragDropMode00);
  14182. tolua_function(tolua_S,"GetAppliedStyle",tolua_UI_UIElement_GetAppliedStyle00);
  14183. tolua_function(tolua_S,"GetDefaultStyle",tolua_UI_UIElement_GetDefaultStyle00);
  14184. tolua_function(tolua_S,"GetLayoutMode",tolua_UI_UIElement_GetLayoutMode00);
  14185. tolua_function(tolua_S,"GetLayoutSpacing",tolua_UI_UIElement_GetLayoutSpacing00);
  14186. tolua_function(tolua_S,"GetLayoutBorder",tolua_UI_UIElement_GetLayoutBorder00);
  14187. tolua_function(tolua_S,"GetNumChildren",tolua_UI_UIElement_GetNumChildren00);
  14188. tolua_function(tolua_S,"GetChild",tolua_UI_UIElement_GetChild00);
  14189. tolua_function(tolua_S,"GetChild",tolua_UI_UIElement_GetChild01);
  14190. tolua_function(tolua_S,"GetChild",tolua_UI_UIElement_GetChild02);
  14191. tolua_function(tolua_S,"GetChild",tolua_UI_UIElement_GetChild03);
  14192. tolua_function(tolua_S,"GetParent",tolua_UI_UIElement_GetParent00);
  14193. tolua_function(tolua_S,"GetRoot",tolua_UI_UIElement_GetRoot00);
  14194. tolua_function(tolua_S,"GetDerivedColor",tolua_UI_UIElement_GetDerivedColor00);
  14195. tolua_function(tolua_S,"ScreenToElement",tolua_UI_UIElement_ScreenToElement00);
  14196. tolua_function(tolua_S,"ElementToScreen",tolua_UI_UIElement_ElementToScreen00);
  14197. tolua_function(tolua_S,"IsInside",tolua_UI_UIElement_IsInside00);
  14198. tolua_function(tolua_S,"IsInsideCombined",tolua_UI_UIElement_IsInsideCombined00);
  14199. tolua_function(tolua_S,"GetCombinedScreenRect",tolua_UI_UIElement_GetCombinedScreenRect00);
  14200. tolua_function(tolua_S,"SortChildren",tolua_UI_UIElement_SortChildren00);
  14201. tolua_function(tolua_S,"GetLayoutMinSize",tolua_UI_UIElement_GetLayoutMinSize00);
  14202. tolua_function(tolua_S,"GetIndent",tolua_UI_UIElement_GetIndent00);
  14203. tolua_function(tolua_S,"GetIndentSpacing",tolua_UI_UIElement_GetIndentSpacing00);
  14204. tolua_function(tolua_S,"GetIndentWidth",tolua_UI_UIElement_GetIndentWidth00);
  14205. tolua_function(tolua_S,"SetChildOffset",tolua_UI_UIElement_SetChildOffset00);
  14206. tolua_function(tolua_S,"SetHovering",tolua_UI_UIElement_SetHovering00);
  14207. tolua_function(tolua_S,"SetTempVisible",tolua_UI_UIElement_SetTempVisible00);
  14208. tolua_function(tolua_S,"AdjustScissor",tolua_UI_UIElement_AdjustScissor00);
  14209. tolua_function(tolua_S,"GetBatchesWithOffset",tolua_UI_UIElement_GetBatchesWithOffset00);
  14210. tolua_function(tolua_S,"GetColorAttr",tolua_UI_UIElement_GetColorAttr00);
  14211. tolua_function(tolua_S,"GetTraversalMode",tolua_UI_UIElement_GetTraversalMode00);
  14212. tolua_function(tolua_S,"IsElementEventSender",tolua_UI_UIElement_IsElementEventSender00);
  14213. tolua_function(tolua_S,"GetElementEventSender",tolua_UI_UIElement_GetElementEventSender00);
  14214. tolua_endmodule(tolua_S);
  14215. tolua_constant(tolua_S,"DRAG_NONE",DRAG_NONE);
  14216. tolua_constant(tolua_S,"DRAG_MOVE",DRAG_MOVE);
  14217. tolua_constant(tolua_S,"DRAG_RESIZE_TOPLEFT",DRAG_RESIZE_TOPLEFT);
  14218. tolua_constant(tolua_S,"DRAG_RESIZE_TOP",DRAG_RESIZE_TOP);
  14219. tolua_constant(tolua_S,"DRAG_RESIZE_TOPRIGHT",DRAG_RESIZE_TOPRIGHT);
  14220. tolua_constant(tolua_S,"DRAG_RESIZE_RIGHT",DRAG_RESIZE_RIGHT);
  14221. tolua_constant(tolua_S,"DRAG_RESIZE_BOTTOMRIGHT",DRAG_RESIZE_BOTTOMRIGHT);
  14222. tolua_constant(tolua_S,"DRAG_RESIZE_BOTTOM",DRAG_RESIZE_BOTTOM);
  14223. tolua_constant(tolua_S,"DRAG_RESIZE_BOTTOMLEFT",DRAG_RESIZE_BOTTOMLEFT);
  14224. tolua_constant(tolua_S,"DRAG_RESIZE_LEFT",DRAG_RESIZE_LEFT);
  14225. tolua_cclass(tolua_S,"Window","Window","BorderImage",NULL);
  14226. tolua_beginmodule(tolua_S,"Window");
  14227. tolua_function(tolua_S,"SetMovable",tolua_UI_Window_SetMovable00);
  14228. tolua_function(tolua_S,"SetResizable",tolua_UI_Window_SetResizable00);
  14229. tolua_function(tolua_S,"SetResizeBorder",tolua_UI_Window_SetResizeBorder00);
  14230. tolua_function(tolua_S,"SetModal",tolua_UI_Window_SetModal00);
  14231. tolua_function(tolua_S,"SetModalShadeColor",tolua_UI_Window_SetModalShadeColor00);
  14232. tolua_function(tolua_S,"SetModalFrameColor",tolua_UI_Window_SetModalFrameColor00);
  14233. tolua_function(tolua_S,"SetModalFrameSize",tolua_UI_Window_SetModalFrameSize00);
  14234. tolua_function(tolua_S,"IsMovable",tolua_UI_Window_IsMovable00);
  14235. tolua_function(tolua_S,"IsResizable",tolua_UI_Window_IsResizable00);
  14236. tolua_function(tolua_S,"GetResizeBorder",tolua_UI_Window_GetResizeBorder00);
  14237. tolua_function(tolua_S,"IsModal",tolua_UI_Window_IsModal00);
  14238. tolua_function(tolua_S,"GetModalShadeColor",tolua_UI_Window_GetModalShadeColor00);
  14239. tolua_function(tolua_S,"GetModalFrameColor",tolua_UI_Window_GetModalFrameColor00);
  14240. tolua_function(tolua_S,"GetModalFrameSize",tolua_UI_Window_GetModalFrameSize00);
  14241. tolua_endmodule(tolua_S);
  14242. tolua_endmodule(tolua_S);
  14243. return 1;
  14244. }
  14245. #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
  14246. TOLUA_API int luaopen_UI (lua_State* tolua_S) {
  14247. return tolua_UI_open(tolua_S);
  14248. };
  14249. #endif