lua_RadioButton.cpp 147 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483
  1. #include "Base.h"
  2. #include "ScriptController.h"
  3. #include "lua_RadioButton.h"
  4. #include "Animation.h"
  5. #include "AnimationTarget.h"
  6. #include "Base.h"
  7. #include "Button.h"
  8. #include "Control.h"
  9. #include "Game.h"
  10. #include "Label.h"
  11. #include "Node.h"
  12. #include "RadioButton.h"
  13. #include "Ref.h"
  14. #include "lua_ControlAlignment.h"
  15. #include "lua_ControlListenerEventType.h"
  16. #include "lua_ControlState.h"
  17. #include "lua_CurveInterpolationType.h"
  18. #include "lua_FontJustify.h"
  19. namespace gameplay
  20. {
  21. void luaRegister_RadioButton()
  22. {
  23. const luaL_Reg lua_members[] =
  24. {
  25. {"addListener", lua_RadioButton_addListener},
  26. {"addRef", lua_RadioButton_addRef},
  27. {"createAnimation", lua_RadioButton_createAnimation},
  28. {"createAnimationFromBy", lua_RadioButton_createAnimationFromBy},
  29. {"createAnimationFromTo", lua_RadioButton_createAnimationFromTo},
  30. {"destroyAnimation", lua_RadioButton_destroyAnimation},
  31. {"disable", lua_RadioButton_disable},
  32. {"enable", lua_RadioButton_enable},
  33. {"getAlignment", lua_RadioButton_getAlignment},
  34. {"getAnimation", lua_RadioButton_getAnimation},
  35. {"getAnimationPropertyComponentCount", lua_RadioButton_getAnimationPropertyComponentCount},
  36. {"getAnimationPropertyValue", lua_RadioButton_getAnimationPropertyValue},
  37. {"getAutoHeight", lua_RadioButton_getAutoHeight},
  38. {"getAutoWidth", lua_RadioButton_getAutoWidth},
  39. {"getBorder", lua_RadioButton_getBorder},
  40. {"getBounds", lua_RadioButton_getBounds},
  41. {"getClip", lua_RadioButton_getClip},
  42. {"getClipBounds", lua_RadioButton_getClipBounds},
  43. {"getConsumeInputEvents", lua_RadioButton_getConsumeInputEvents},
  44. {"getCursorColor", lua_RadioButton_getCursorColor},
  45. {"getCursorRegion", lua_RadioButton_getCursorRegion},
  46. {"getCursorUVs", lua_RadioButton_getCursorUVs},
  47. {"getFocusIndex", lua_RadioButton_getFocusIndex},
  48. {"getFont", lua_RadioButton_getFont},
  49. {"getFontSize", lua_RadioButton_getFontSize},
  50. {"getHeight", lua_RadioButton_getHeight},
  51. {"getId", lua_RadioButton_getId},
  52. {"getImageColor", lua_RadioButton_getImageColor},
  53. {"getImageRegion", lua_RadioButton_getImageRegion},
  54. {"getImageSize", lua_RadioButton_getImageSize},
  55. {"getImageUVs", lua_RadioButton_getImageUVs},
  56. {"getMargin", lua_RadioButton_getMargin},
  57. {"getOpacity", lua_RadioButton_getOpacity},
  58. {"getPadding", lua_RadioButton_getPadding},
  59. {"getRefCount", lua_RadioButton_getRefCount},
  60. {"getSkinColor", lua_RadioButton_getSkinColor},
  61. {"getSkinRegion", lua_RadioButton_getSkinRegion},
  62. {"getState", lua_RadioButton_getState},
  63. {"getStyle", lua_RadioButton_getStyle},
  64. {"getText", lua_RadioButton_getText},
  65. {"getTextAlignment", lua_RadioButton_getTextAlignment},
  66. {"getTextColor", lua_RadioButton_getTextColor},
  67. {"getTextRightToLeft", lua_RadioButton_getTextRightToLeft},
  68. {"getType", lua_RadioButton_getType},
  69. {"getWidth", lua_RadioButton_getWidth},
  70. {"getX", lua_RadioButton_getX},
  71. {"getY", lua_RadioButton_getY},
  72. {"getZIndex", lua_RadioButton_getZIndex},
  73. {"isContainer", lua_RadioButton_isContainer},
  74. {"isEnabled", lua_RadioButton_isEnabled},
  75. {"isSelected", lua_RadioButton_isSelected},
  76. {"release", lua_RadioButton_release},
  77. {"setAlignment", lua_RadioButton_setAlignment},
  78. {"setAnimationPropertyValue", lua_RadioButton_setAnimationPropertyValue},
  79. {"setAutoHeight", lua_RadioButton_setAutoHeight},
  80. {"setAutoWidth", lua_RadioButton_setAutoWidth},
  81. {"setBorder", lua_RadioButton_setBorder},
  82. {"setBounds", lua_RadioButton_setBounds},
  83. {"setConsumeInputEvents", lua_RadioButton_setConsumeInputEvents},
  84. {"setCursorColor", lua_RadioButton_setCursorColor},
  85. {"setCursorRegion", lua_RadioButton_setCursorRegion},
  86. {"setFocusIndex", lua_RadioButton_setFocusIndex},
  87. {"setFont", lua_RadioButton_setFont},
  88. {"setFontSize", lua_RadioButton_setFontSize},
  89. {"setImageColor", lua_RadioButton_setImageColor},
  90. {"setImageRegion", lua_RadioButton_setImageRegion},
  91. {"setImageSize", lua_RadioButton_setImageSize},
  92. {"setMargin", lua_RadioButton_setMargin},
  93. {"setOpacity", lua_RadioButton_setOpacity},
  94. {"setPadding", lua_RadioButton_setPadding},
  95. {"setPosition", lua_RadioButton_setPosition},
  96. {"setSize", lua_RadioButton_setSize},
  97. {"setSkinColor", lua_RadioButton_setSkinColor},
  98. {"setSkinRegion", lua_RadioButton_setSkinRegion},
  99. {"setState", lua_RadioButton_setState},
  100. {"setStyle", lua_RadioButton_setStyle},
  101. {"setText", lua_RadioButton_setText},
  102. {"setTextAlignment", lua_RadioButton_setTextAlignment},
  103. {"setTextColor", lua_RadioButton_setTextColor},
  104. {"setTextRightToLeft", lua_RadioButton_setTextRightToLeft},
  105. {"setZIndex", lua_RadioButton_setZIndex},
  106. {NULL, NULL}
  107. };
  108. const luaL_Reg lua_statics[] =
  109. {
  110. {"ANIMATE_OPACITY", lua_RadioButton_static_ANIMATE_OPACITY},
  111. {"ANIMATE_POSITION", lua_RadioButton_static_ANIMATE_POSITION},
  112. {"ANIMATE_POSITION_X", lua_RadioButton_static_ANIMATE_POSITION_X},
  113. {"ANIMATE_POSITION_Y", lua_RadioButton_static_ANIMATE_POSITION_Y},
  114. {"ANIMATE_SIZE", lua_RadioButton_static_ANIMATE_SIZE},
  115. {"ANIMATE_SIZE_HEIGHT", lua_RadioButton_static_ANIMATE_SIZE_HEIGHT},
  116. {"ANIMATE_SIZE_WIDTH", lua_RadioButton_static_ANIMATE_SIZE_WIDTH},
  117. {"create", lua_RadioButton_static_create},
  118. {NULL, NULL}
  119. };
  120. std::vector<std::string> scopePath;
  121. ScriptUtil::registerClass("RadioButton", lua_members, NULL, lua_RadioButton__gc, lua_statics, scopePath);
  122. }
  123. static RadioButton* getInstance(lua_State* state)
  124. {
  125. void* userdata = luaL_checkudata(state, 1, "RadioButton");
  126. luaL_argcheck(state, userdata != NULL, 1, "'RadioButton' expected.");
  127. return (RadioButton*)((ScriptUtil::LuaObject*)userdata)->instance;
  128. }
  129. int lua_RadioButton__gc(lua_State* state)
  130. {
  131. // Get the number of parameters.
  132. int paramCount = lua_gettop(state);
  133. // Attempt to match the parameters to a valid binding.
  134. switch (paramCount)
  135. {
  136. case 1:
  137. {
  138. if ((lua_type(state, 1) == LUA_TUSERDATA))
  139. {
  140. void* userdata = luaL_checkudata(state, 1, "RadioButton");
  141. luaL_argcheck(state, userdata != NULL, 1, "'RadioButton' expected.");
  142. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)userdata;
  143. if (object->owns)
  144. {
  145. RadioButton* instance = (RadioButton*)object->instance;
  146. SAFE_RELEASE(instance);
  147. }
  148. return 0;
  149. }
  150. else
  151. {
  152. lua_pushstring(state, "lua_RadioButton__gc - Failed to match the given parameters to a valid function signature.");
  153. lua_error(state);
  154. }
  155. break;
  156. }
  157. default:
  158. {
  159. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  160. lua_error(state);
  161. break;
  162. }
  163. }
  164. return 0;
  165. }
  166. int lua_RadioButton_addListener(lua_State* state)
  167. {
  168. // Get the number of parameters.
  169. int paramCount = lua_gettop(state);
  170. // Attempt to match the parameters to a valid binding.
  171. switch (paramCount)
  172. {
  173. case 3:
  174. {
  175. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  176. (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TTABLE || lua_type(state, 2) == LUA_TNIL) &&
  177. lua_type(state, 3) == LUA_TNUMBER)
  178. {
  179. // Get parameter 1 off the stack.
  180. Control::Listener* param1 = ScriptUtil::getObjectPointer<Control::Listener>(2, "ControlListener", false);
  181. // Get parameter 2 off the stack.
  182. int param2 = (int)luaL_checkint(state, 3);
  183. RadioButton* instance = getInstance(state);
  184. instance->addListener(param1, param2);
  185. return 0;
  186. }
  187. else
  188. {
  189. lua_pushstring(state, "lua_RadioButton_addListener - Failed to match the given parameters to a valid function signature.");
  190. lua_error(state);
  191. }
  192. break;
  193. }
  194. default:
  195. {
  196. lua_pushstring(state, "Invalid number of parameters (expected 3).");
  197. lua_error(state);
  198. break;
  199. }
  200. }
  201. return 0;
  202. }
  203. int lua_RadioButton_addRef(lua_State* state)
  204. {
  205. // Get the number of parameters.
  206. int paramCount = lua_gettop(state);
  207. // Attempt to match the parameters to a valid binding.
  208. switch (paramCount)
  209. {
  210. case 1:
  211. {
  212. if ((lua_type(state, 1) == LUA_TUSERDATA))
  213. {
  214. RadioButton* instance = getInstance(state);
  215. instance->addRef();
  216. return 0;
  217. }
  218. else
  219. {
  220. lua_pushstring(state, "lua_RadioButton_addRef - Failed to match the given parameters to a valid function signature.");
  221. lua_error(state);
  222. }
  223. break;
  224. }
  225. default:
  226. {
  227. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  228. lua_error(state);
  229. break;
  230. }
  231. }
  232. return 0;
  233. }
  234. int lua_RadioButton_createAnimation(lua_State* state)
  235. {
  236. // Get the number of parameters.
  237. int paramCount = lua_gettop(state);
  238. // Attempt to match the parameters to a valid binding.
  239. switch (paramCount)
  240. {
  241. case 3:
  242. {
  243. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  244. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
  245. (lua_type(state, 3) == LUA_TSTRING || lua_type(state, 3) == LUA_TNIL))
  246. {
  247. // Get parameter 1 off the stack.
  248. const char* param1 = ScriptUtil::getString(2, false);
  249. // Get parameter 2 off the stack.
  250. const char* param2 = ScriptUtil::getString(3, false);
  251. RadioButton* instance = getInstance(state);
  252. void* returnPtr = (void*)instance->createAnimation(param1, param2);
  253. if (returnPtr)
  254. {
  255. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  256. object->instance = returnPtr;
  257. object->owns = false;
  258. luaL_getmetatable(state, "Animation");
  259. lua_setmetatable(state, -2);
  260. }
  261. else
  262. {
  263. lua_pushnil(state);
  264. }
  265. return 1;
  266. }
  267. else if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  268. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
  269. (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TTABLE || lua_type(state, 3) == LUA_TNIL))
  270. {
  271. // Get parameter 1 off the stack.
  272. const char* param1 = ScriptUtil::getString(2, false);
  273. // Get parameter 2 off the stack.
  274. Properties* param2 = ScriptUtil::getObjectPointer<Properties>(3, "Properties", false);
  275. RadioButton* instance = getInstance(state);
  276. void* returnPtr = (void*)instance->createAnimation(param1, param2);
  277. if (returnPtr)
  278. {
  279. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  280. object->instance = returnPtr;
  281. object->owns = false;
  282. luaL_getmetatable(state, "Animation");
  283. lua_setmetatable(state, -2);
  284. }
  285. else
  286. {
  287. lua_pushnil(state);
  288. }
  289. return 1;
  290. }
  291. else
  292. {
  293. lua_pushstring(state, "lua_RadioButton_createAnimation - Failed to match the given parameters to a valid function signature.");
  294. lua_error(state);
  295. }
  296. break;
  297. }
  298. case 7:
  299. {
  300. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  301. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
  302. lua_type(state, 3) == LUA_TNUMBER &&
  303. lua_type(state, 4) == LUA_TNUMBER &&
  304. (lua_type(state, 5) == LUA_TTABLE || lua_type(state, 5) == LUA_TLIGHTUSERDATA) &&
  305. (lua_type(state, 6) == LUA_TTABLE || lua_type(state, 6) == LUA_TLIGHTUSERDATA) &&
  306. (lua_type(state, 7) == LUA_TSTRING || lua_type(state, 7) == LUA_TNIL))
  307. {
  308. // Get parameter 1 off the stack.
  309. const char* param1 = ScriptUtil::getString(2, false);
  310. // Get parameter 2 off the stack.
  311. int param2 = (int)luaL_checkint(state, 3);
  312. // Get parameter 3 off the stack.
  313. unsigned int param3 = (unsigned int)luaL_checkunsigned(state, 4);
  314. // Get parameter 4 off the stack.
  315. unsigned long* param4 = ScriptUtil::getUnsignedLongPointer(5);
  316. // Get parameter 5 off the stack.
  317. float* param5 = ScriptUtil::getFloatPointer(6);
  318. // Get parameter 6 off the stack.
  319. Curve::InterpolationType param6 = (Curve::InterpolationType)lua_enumFromString_CurveInterpolationType(luaL_checkstring(state, 7));
  320. RadioButton* instance = getInstance(state);
  321. void* returnPtr = (void*)instance->createAnimation(param1, param2, param3, param4, param5, param6);
  322. if (returnPtr)
  323. {
  324. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  325. object->instance = returnPtr;
  326. object->owns = false;
  327. luaL_getmetatable(state, "Animation");
  328. lua_setmetatable(state, -2);
  329. }
  330. else
  331. {
  332. lua_pushnil(state);
  333. }
  334. return 1;
  335. }
  336. else
  337. {
  338. lua_pushstring(state, "lua_RadioButton_createAnimation - Failed to match the given parameters to a valid function signature.");
  339. lua_error(state);
  340. }
  341. break;
  342. }
  343. case 9:
  344. {
  345. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  346. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
  347. lua_type(state, 3) == LUA_TNUMBER &&
  348. lua_type(state, 4) == LUA_TNUMBER &&
  349. (lua_type(state, 5) == LUA_TTABLE || lua_type(state, 5) == LUA_TLIGHTUSERDATA) &&
  350. (lua_type(state, 6) == LUA_TTABLE || lua_type(state, 6) == LUA_TLIGHTUSERDATA) &&
  351. (lua_type(state, 7) == LUA_TTABLE || lua_type(state, 7) == LUA_TLIGHTUSERDATA) &&
  352. (lua_type(state, 8) == LUA_TTABLE || lua_type(state, 8) == LUA_TLIGHTUSERDATA) &&
  353. (lua_type(state, 9) == LUA_TSTRING || lua_type(state, 9) == LUA_TNIL))
  354. {
  355. // Get parameter 1 off the stack.
  356. const char* param1 = ScriptUtil::getString(2, false);
  357. // Get parameter 2 off the stack.
  358. int param2 = (int)luaL_checkint(state, 3);
  359. // Get parameter 3 off the stack.
  360. unsigned int param3 = (unsigned int)luaL_checkunsigned(state, 4);
  361. // Get parameter 4 off the stack.
  362. unsigned long* param4 = ScriptUtil::getUnsignedLongPointer(5);
  363. // Get parameter 5 off the stack.
  364. float* param5 = ScriptUtil::getFloatPointer(6);
  365. // Get parameter 6 off the stack.
  366. float* param6 = ScriptUtil::getFloatPointer(7);
  367. // Get parameter 7 off the stack.
  368. float* param7 = ScriptUtil::getFloatPointer(8);
  369. // Get parameter 8 off the stack.
  370. Curve::InterpolationType param8 = (Curve::InterpolationType)lua_enumFromString_CurveInterpolationType(luaL_checkstring(state, 9));
  371. RadioButton* instance = getInstance(state);
  372. void* returnPtr = (void*)instance->createAnimation(param1, param2, param3, param4, param5, param6, param7, param8);
  373. if (returnPtr)
  374. {
  375. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  376. object->instance = returnPtr;
  377. object->owns = false;
  378. luaL_getmetatable(state, "Animation");
  379. lua_setmetatable(state, -2);
  380. }
  381. else
  382. {
  383. lua_pushnil(state);
  384. }
  385. return 1;
  386. }
  387. else
  388. {
  389. lua_pushstring(state, "lua_RadioButton_createAnimation - Failed to match the given parameters to a valid function signature.");
  390. lua_error(state);
  391. }
  392. break;
  393. }
  394. default:
  395. {
  396. lua_pushstring(state, "Invalid number of parameters (expected 3, 7 or 9).");
  397. lua_error(state);
  398. break;
  399. }
  400. }
  401. return 0;
  402. }
  403. int lua_RadioButton_createAnimationFromBy(lua_State* state)
  404. {
  405. // Get the number of parameters.
  406. int paramCount = lua_gettop(state);
  407. // Attempt to match the parameters to a valid binding.
  408. switch (paramCount)
  409. {
  410. case 7:
  411. {
  412. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  413. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
  414. lua_type(state, 3) == LUA_TNUMBER &&
  415. (lua_type(state, 4) == LUA_TTABLE || lua_type(state, 4) == LUA_TLIGHTUSERDATA) &&
  416. (lua_type(state, 5) == LUA_TTABLE || lua_type(state, 5) == LUA_TLIGHTUSERDATA) &&
  417. (lua_type(state, 6) == LUA_TSTRING || lua_type(state, 6) == LUA_TNIL) &&
  418. lua_type(state, 7) == LUA_TNUMBER)
  419. {
  420. // Get parameter 1 off the stack.
  421. const char* param1 = ScriptUtil::getString(2, false);
  422. // Get parameter 2 off the stack.
  423. int param2 = (int)luaL_checkint(state, 3);
  424. // Get parameter 3 off the stack.
  425. float* param3 = ScriptUtil::getFloatPointer(4);
  426. // Get parameter 4 off the stack.
  427. float* param4 = ScriptUtil::getFloatPointer(5);
  428. // Get parameter 5 off the stack.
  429. Curve::InterpolationType param5 = (Curve::InterpolationType)lua_enumFromString_CurveInterpolationType(luaL_checkstring(state, 6));
  430. // Get parameter 6 off the stack.
  431. unsigned long param6 = (unsigned long)luaL_checkunsigned(state, 7);
  432. RadioButton* instance = getInstance(state);
  433. void* returnPtr = (void*)instance->createAnimationFromBy(param1, param2, param3, param4, param5, param6);
  434. if (returnPtr)
  435. {
  436. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  437. object->instance = returnPtr;
  438. object->owns = false;
  439. luaL_getmetatable(state, "Animation");
  440. lua_setmetatable(state, -2);
  441. }
  442. else
  443. {
  444. lua_pushnil(state);
  445. }
  446. return 1;
  447. }
  448. else
  449. {
  450. lua_pushstring(state, "lua_RadioButton_createAnimationFromBy - Failed to match the given parameters to a valid function signature.");
  451. lua_error(state);
  452. }
  453. break;
  454. }
  455. default:
  456. {
  457. lua_pushstring(state, "Invalid number of parameters (expected 7).");
  458. lua_error(state);
  459. break;
  460. }
  461. }
  462. return 0;
  463. }
  464. int lua_RadioButton_createAnimationFromTo(lua_State* state)
  465. {
  466. // Get the number of parameters.
  467. int paramCount = lua_gettop(state);
  468. // Attempt to match the parameters to a valid binding.
  469. switch (paramCount)
  470. {
  471. case 7:
  472. {
  473. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  474. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
  475. lua_type(state, 3) == LUA_TNUMBER &&
  476. (lua_type(state, 4) == LUA_TTABLE || lua_type(state, 4) == LUA_TLIGHTUSERDATA) &&
  477. (lua_type(state, 5) == LUA_TTABLE || lua_type(state, 5) == LUA_TLIGHTUSERDATA) &&
  478. (lua_type(state, 6) == LUA_TSTRING || lua_type(state, 6) == LUA_TNIL) &&
  479. lua_type(state, 7) == LUA_TNUMBER)
  480. {
  481. // Get parameter 1 off the stack.
  482. const char* param1 = ScriptUtil::getString(2, false);
  483. // Get parameter 2 off the stack.
  484. int param2 = (int)luaL_checkint(state, 3);
  485. // Get parameter 3 off the stack.
  486. float* param3 = ScriptUtil::getFloatPointer(4);
  487. // Get parameter 4 off the stack.
  488. float* param4 = ScriptUtil::getFloatPointer(5);
  489. // Get parameter 5 off the stack.
  490. Curve::InterpolationType param5 = (Curve::InterpolationType)lua_enumFromString_CurveInterpolationType(luaL_checkstring(state, 6));
  491. // Get parameter 6 off the stack.
  492. unsigned long param6 = (unsigned long)luaL_checkunsigned(state, 7);
  493. RadioButton* instance = getInstance(state);
  494. void* returnPtr = (void*)instance->createAnimationFromTo(param1, param2, param3, param4, param5, param6);
  495. if (returnPtr)
  496. {
  497. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  498. object->instance = returnPtr;
  499. object->owns = false;
  500. luaL_getmetatable(state, "Animation");
  501. lua_setmetatable(state, -2);
  502. }
  503. else
  504. {
  505. lua_pushnil(state);
  506. }
  507. return 1;
  508. }
  509. else
  510. {
  511. lua_pushstring(state, "lua_RadioButton_createAnimationFromTo - Failed to match the given parameters to a valid function signature.");
  512. lua_error(state);
  513. }
  514. break;
  515. }
  516. default:
  517. {
  518. lua_pushstring(state, "Invalid number of parameters (expected 7).");
  519. lua_error(state);
  520. break;
  521. }
  522. }
  523. return 0;
  524. }
  525. int lua_RadioButton_destroyAnimation(lua_State* state)
  526. {
  527. // Get the number of parameters.
  528. int paramCount = lua_gettop(state);
  529. // Attempt to match the parameters to a valid binding.
  530. switch (paramCount)
  531. {
  532. case 1:
  533. {
  534. if ((lua_type(state, 1) == LUA_TUSERDATA))
  535. {
  536. RadioButton* instance = getInstance(state);
  537. instance->destroyAnimation();
  538. return 0;
  539. }
  540. else
  541. {
  542. lua_pushstring(state, "lua_RadioButton_destroyAnimation - Failed to match the given parameters to a valid function signature.");
  543. lua_error(state);
  544. }
  545. break;
  546. }
  547. case 2:
  548. {
  549. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  550. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
  551. {
  552. // Get parameter 1 off the stack.
  553. const char* param1 = ScriptUtil::getString(2, false);
  554. RadioButton* instance = getInstance(state);
  555. instance->destroyAnimation(param1);
  556. return 0;
  557. }
  558. else
  559. {
  560. lua_pushstring(state, "lua_RadioButton_destroyAnimation - Failed to match the given parameters to a valid function signature.");
  561. lua_error(state);
  562. }
  563. break;
  564. }
  565. default:
  566. {
  567. lua_pushstring(state, "Invalid number of parameters (expected 1 or 2).");
  568. lua_error(state);
  569. break;
  570. }
  571. }
  572. return 0;
  573. }
  574. int lua_RadioButton_disable(lua_State* state)
  575. {
  576. // Get the number of parameters.
  577. int paramCount = lua_gettop(state);
  578. // Attempt to match the parameters to a valid binding.
  579. switch (paramCount)
  580. {
  581. case 1:
  582. {
  583. if ((lua_type(state, 1) == LUA_TUSERDATA))
  584. {
  585. RadioButton* instance = getInstance(state);
  586. instance->disable();
  587. return 0;
  588. }
  589. else
  590. {
  591. lua_pushstring(state, "lua_RadioButton_disable - Failed to match the given parameters to a valid function signature.");
  592. lua_error(state);
  593. }
  594. break;
  595. }
  596. default:
  597. {
  598. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  599. lua_error(state);
  600. break;
  601. }
  602. }
  603. return 0;
  604. }
  605. int lua_RadioButton_enable(lua_State* state)
  606. {
  607. // Get the number of parameters.
  608. int paramCount = lua_gettop(state);
  609. // Attempt to match the parameters to a valid binding.
  610. switch (paramCount)
  611. {
  612. case 1:
  613. {
  614. if ((lua_type(state, 1) == LUA_TUSERDATA))
  615. {
  616. RadioButton* instance = getInstance(state);
  617. instance->enable();
  618. return 0;
  619. }
  620. else
  621. {
  622. lua_pushstring(state, "lua_RadioButton_enable - Failed to match the given parameters to a valid function signature.");
  623. lua_error(state);
  624. }
  625. break;
  626. }
  627. default:
  628. {
  629. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  630. lua_error(state);
  631. break;
  632. }
  633. }
  634. return 0;
  635. }
  636. int lua_RadioButton_getAlignment(lua_State* state)
  637. {
  638. // Get the number of parameters.
  639. int paramCount = lua_gettop(state);
  640. // Attempt to match the parameters to a valid binding.
  641. switch (paramCount)
  642. {
  643. case 1:
  644. {
  645. if ((lua_type(state, 1) == LUA_TUSERDATA))
  646. {
  647. RadioButton* instance = getInstance(state);
  648. Control::Alignment result = instance->getAlignment();
  649. // Push the return value onto the stack.
  650. lua_pushstring(state, lua_stringFromEnum_ControlAlignment(result));
  651. return 1;
  652. }
  653. else
  654. {
  655. lua_pushstring(state, "lua_RadioButton_getAlignment - Failed to match the given parameters to a valid function signature.");
  656. lua_error(state);
  657. }
  658. break;
  659. }
  660. default:
  661. {
  662. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  663. lua_error(state);
  664. break;
  665. }
  666. }
  667. return 0;
  668. }
  669. int lua_RadioButton_getAnimation(lua_State* state)
  670. {
  671. // Get the number of parameters.
  672. int paramCount = lua_gettop(state);
  673. // Attempt to match the parameters to a valid binding.
  674. switch (paramCount)
  675. {
  676. case 1:
  677. {
  678. if ((lua_type(state, 1) == LUA_TUSERDATA))
  679. {
  680. RadioButton* instance = getInstance(state);
  681. void* returnPtr = (void*)instance->getAnimation();
  682. if (returnPtr)
  683. {
  684. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  685. object->instance = returnPtr;
  686. object->owns = false;
  687. luaL_getmetatable(state, "Animation");
  688. lua_setmetatable(state, -2);
  689. }
  690. else
  691. {
  692. lua_pushnil(state);
  693. }
  694. return 1;
  695. }
  696. else
  697. {
  698. lua_pushstring(state, "lua_RadioButton_getAnimation - Failed to match the given parameters to a valid function signature.");
  699. lua_error(state);
  700. }
  701. break;
  702. }
  703. case 2:
  704. {
  705. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  706. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
  707. {
  708. // Get parameter 1 off the stack.
  709. const char* param1 = ScriptUtil::getString(2, false);
  710. RadioButton* instance = getInstance(state);
  711. void* returnPtr = (void*)instance->getAnimation(param1);
  712. if (returnPtr)
  713. {
  714. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  715. object->instance = returnPtr;
  716. object->owns = false;
  717. luaL_getmetatable(state, "Animation");
  718. lua_setmetatable(state, -2);
  719. }
  720. else
  721. {
  722. lua_pushnil(state);
  723. }
  724. return 1;
  725. }
  726. else
  727. {
  728. lua_pushstring(state, "lua_RadioButton_getAnimation - Failed to match the given parameters to a valid function signature.");
  729. lua_error(state);
  730. }
  731. break;
  732. }
  733. default:
  734. {
  735. lua_pushstring(state, "Invalid number of parameters (expected 1 or 2).");
  736. lua_error(state);
  737. break;
  738. }
  739. }
  740. return 0;
  741. }
  742. int lua_RadioButton_getAnimationPropertyComponentCount(lua_State* state)
  743. {
  744. // Get the number of parameters.
  745. int paramCount = lua_gettop(state);
  746. // Attempt to match the parameters to a valid binding.
  747. switch (paramCount)
  748. {
  749. case 2:
  750. {
  751. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  752. lua_type(state, 2) == LUA_TNUMBER)
  753. {
  754. // Get parameter 1 off the stack.
  755. int param1 = (int)luaL_checkint(state, 2);
  756. RadioButton* instance = getInstance(state);
  757. unsigned int result = instance->getAnimationPropertyComponentCount(param1);
  758. // Push the return value onto the stack.
  759. lua_pushunsigned(state, result);
  760. return 1;
  761. }
  762. else
  763. {
  764. lua_pushstring(state, "lua_RadioButton_getAnimationPropertyComponentCount - Failed to match the given parameters to a valid function signature.");
  765. lua_error(state);
  766. }
  767. break;
  768. }
  769. default:
  770. {
  771. lua_pushstring(state, "Invalid number of parameters (expected 2).");
  772. lua_error(state);
  773. break;
  774. }
  775. }
  776. return 0;
  777. }
  778. int lua_RadioButton_getAnimationPropertyValue(lua_State* state)
  779. {
  780. // Get the number of parameters.
  781. int paramCount = lua_gettop(state);
  782. // Attempt to match the parameters to a valid binding.
  783. switch (paramCount)
  784. {
  785. case 3:
  786. {
  787. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  788. lua_type(state, 2) == LUA_TNUMBER &&
  789. (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TTABLE || lua_type(state, 3) == LUA_TNIL))
  790. {
  791. // Get parameter 1 off the stack.
  792. int param1 = (int)luaL_checkint(state, 2);
  793. // Get parameter 2 off the stack.
  794. AnimationValue* param2 = ScriptUtil::getObjectPointer<AnimationValue>(3, "AnimationValue", false);
  795. RadioButton* instance = getInstance(state);
  796. instance->getAnimationPropertyValue(param1, param2);
  797. return 0;
  798. }
  799. else
  800. {
  801. lua_pushstring(state, "lua_RadioButton_getAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
  802. lua_error(state);
  803. }
  804. break;
  805. }
  806. default:
  807. {
  808. lua_pushstring(state, "Invalid number of parameters (expected 3).");
  809. lua_error(state);
  810. break;
  811. }
  812. }
  813. return 0;
  814. }
  815. int lua_RadioButton_getAutoHeight(lua_State* state)
  816. {
  817. // Get the number of parameters.
  818. int paramCount = lua_gettop(state);
  819. // Attempt to match the parameters to a valid binding.
  820. switch (paramCount)
  821. {
  822. case 1:
  823. {
  824. if ((lua_type(state, 1) == LUA_TUSERDATA))
  825. {
  826. RadioButton* instance = getInstance(state);
  827. bool result = instance->getAutoHeight();
  828. // Push the return value onto the stack.
  829. lua_pushboolean(state, result);
  830. return 1;
  831. }
  832. else
  833. {
  834. lua_pushstring(state, "lua_RadioButton_getAutoHeight - Failed to match the given parameters to a valid function signature.");
  835. lua_error(state);
  836. }
  837. break;
  838. }
  839. default:
  840. {
  841. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  842. lua_error(state);
  843. break;
  844. }
  845. }
  846. return 0;
  847. }
  848. int lua_RadioButton_getAutoWidth(lua_State* state)
  849. {
  850. // Get the number of parameters.
  851. int paramCount = lua_gettop(state);
  852. // Attempt to match the parameters to a valid binding.
  853. switch (paramCount)
  854. {
  855. case 1:
  856. {
  857. if ((lua_type(state, 1) == LUA_TUSERDATA))
  858. {
  859. RadioButton* instance = getInstance(state);
  860. bool result = instance->getAutoWidth();
  861. // Push the return value onto the stack.
  862. lua_pushboolean(state, result);
  863. return 1;
  864. }
  865. else
  866. {
  867. lua_pushstring(state, "lua_RadioButton_getAutoWidth - Failed to match the given parameters to a valid function signature.");
  868. lua_error(state);
  869. }
  870. break;
  871. }
  872. default:
  873. {
  874. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  875. lua_error(state);
  876. break;
  877. }
  878. }
  879. return 0;
  880. }
  881. int lua_RadioButton_getBorder(lua_State* state)
  882. {
  883. // Get the number of parameters.
  884. int paramCount = lua_gettop(state);
  885. // Attempt to match the parameters to a valid binding.
  886. switch (paramCount)
  887. {
  888. case 1:
  889. {
  890. if ((lua_type(state, 1) == LUA_TUSERDATA))
  891. {
  892. RadioButton* instance = getInstance(state);
  893. void* returnPtr = (void*)&(instance->getBorder());
  894. if (returnPtr)
  895. {
  896. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  897. object->instance = returnPtr;
  898. object->owns = false;
  899. luaL_getmetatable(state, "ThemeSideRegions");
  900. lua_setmetatable(state, -2);
  901. }
  902. else
  903. {
  904. lua_pushnil(state);
  905. }
  906. return 1;
  907. }
  908. else
  909. {
  910. lua_pushstring(state, "lua_RadioButton_getBorder - Failed to match the given parameters to a valid function signature.");
  911. lua_error(state);
  912. }
  913. break;
  914. }
  915. case 2:
  916. {
  917. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  918. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
  919. {
  920. // Get parameter 1 off the stack.
  921. Control::State param1 = (Control::State)lua_enumFromString_ControlState(luaL_checkstring(state, 2));
  922. RadioButton* instance = getInstance(state);
  923. void* returnPtr = (void*)&(instance->getBorder(param1));
  924. if (returnPtr)
  925. {
  926. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  927. object->instance = returnPtr;
  928. object->owns = false;
  929. luaL_getmetatable(state, "ThemeSideRegions");
  930. lua_setmetatable(state, -2);
  931. }
  932. else
  933. {
  934. lua_pushnil(state);
  935. }
  936. return 1;
  937. }
  938. else
  939. {
  940. lua_pushstring(state, "lua_RadioButton_getBorder - Failed to match the given parameters to a valid function signature.");
  941. lua_error(state);
  942. }
  943. break;
  944. }
  945. default:
  946. {
  947. lua_pushstring(state, "Invalid number of parameters (expected 1 or 2).");
  948. lua_error(state);
  949. break;
  950. }
  951. }
  952. return 0;
  953. }
  954. int lua_RadioButton_getBounds(lua_State* state)
  955. {
  956. // Get the number of parameters.
  957. int paramCount = lua_gettop(state);
  958. // Attempt to match the parameters to a valid binding.
  959. switch (paramCount)
  960. {
  961. case 1:
  962. {
  963. if ((lua_type(state, 1) == LUA_TUSERDATA))
  964. {
  965. RadioButton* instance = getInstance(state);
  966. void* returnPtr = (void*)&(instance->getBounds());
  967. if (returnPtr)
  968. {
  969. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  970. object->instance = returnPtr;
  971. object->owns = false;
  972. luaL_getmetatable(state, "Rectangle");
  973. lua_setmetatable(state, -2);
  974. }
  975. else
  976. {
  977. lua_pushnil(state);
  978. }
  979. return 1;
  980. }
  981. else
  982. {
  983. lua_pushstring(state, "lua_RadioButton_getBounds - Failed to match the given parameters to a valid function signature.");
  984. lua_error(state);
  985. }
  986. break;
  987. }
  988. default:
  989. {
  990. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  991. lua_error(state);
  992. break;
  993. }
  994. }
  995. return 0;
  996. }
  997. int lua_RadioButton_getClip(lua_State* state)
  998. {
  999. // Get the number of parameters.
  1000. int paramCount = lua_gettop(state);
  1001. // Attempt to match the parameters to a valid binding.
  1002. switch (paramCount)
  1003. {
  1004. case 1:
  1005. {
  1006. if ((lua_type(state, 1) == LUA_TUSERDATA))
  1007. {
  1008. RadioButton* instance = getInstance(state);
  1009. void* returnPtr = (void*)&(instance->getClip());
  1010. if (returnPtr)
  1011. {
  1012. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  1013. object->instance = returnPtr;
  1014. object->owns = false;
  1015. luaL_getmetatable(state, "Rectangle");
  1016. lua_setmetatable(state, -2);
  1017. }
  1018. else
  1019. {
  1020. lua_pushnil(state);
  1021. }
  1022. return 1;
  1023. }
  1024. else
  1025. {
  1026. lua_pushstring(state, "lua_RadioButton_getClip - Failed to match the given parameters to a valid function signature.");
  1027. lua_error(state);
  1028. }
  1029. break;
  1030. }
  1031. default:
  1032. {
  1033. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  1034. lua_error(state);
  1035. break;
  1036. }
  1037. }
  1038. return 0;
  1039. }
  1040. int lua_RadioButton_getClipBounds(lua_State* state)
  1041. {
  1042. // Get the number of parameters.
  1043. int paramCount = lua_gettop(state);
  1044. // Attempt to match the parameters to a valid binding.
  1045. switch (paramCount)
  1046. {
  1047. case 1:
  1048. {
  1049. if ((lua_type(state, 1) == LUA_TUSERDATA))
  1050. {
  1051. RadioButton* instance = getInstance(state);
  1052. void* returnPtr = (void*)&(instance->getClipBounds());
  1053. if (returnPtr)
  1054. {
  1055. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  1056. object->instance = returnPtr;
  1057. object->owns = false;
  1058. luaL_getmetatable(state, "Rectangle");
  1059. lua_setmetatable(state, -2);
  1060. }
  1061. else
  1062. {
  1063. lua_pushnil(state);
  1064. }
  1065. return 1;
  1066. }
  1067. else
  1068. {
  1069. lua_pushstring(state, "lua_RadioButton_getClipBounds - Failed to match the given parameters to a valid function signature.");
  1070. lua_error(state);
  1071. }
  1072. break;
  1073. }
  1074. default:
  1075. {
  1076. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  1077. lua_error(state);
  1078. break;
  1079. }
  1080. }
  1081. return 0;
  1082. }
  1083. int lua_RadioButton_getConsumeInputEvents(lua_State* state)
  1084. {
  1085. // Get the number of parameters.
  1086. int paramCount = lua_gettop(state);
  1087. // Attempt to match the parameters to a valid binding.
  1088. switch (paramCount)
  1089. {
  1090. case 1:
  1091. {
  1092. if ((lua_type(state, 1) == LUA_TUSERDATA))
  1093. {
  1094. RadioButton* instance = getInstance(state);
  1095. bool result = instance->getConsumeInputEvents();
  1096. // Push the return value onto the stack.
  1097. lua_pushboolean(state, result);
  1098. return 1;
  1099. }
  1100. else
  1101. {
  1102. lua_pushstring(state, "lua_RadioButton_getConsumeInputEvents - Failed to match the given parameters to a valid function signature.");
  1103. lua_error(state);
  1104. }
  1105. break;
  1106. }
  1107. default:
  1108. {
  1109. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  1110. lua_error(state);
  1111. break;
  1112. }
  1113. }
  1114. return 0;
  1115. }
  1116. int lua_RadioButton_getCursorColor(lua_State* state)
  1117. {
  1118. // Get the number of parameters.
  1119. int paramCount = lua_gettop(state);
  1120. // Attempt to match the parameters to a valid binding.
  1121. switch (paramCount)
  1122. {
  1123. case 2:
  1124. {
  1125. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  1126. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
  1127. {
  1128. // Get parameter 1 off the stack.
  1129. Control::State param1 = (Control::State)lua_enumFromString_ControlState(luaL_checkstring(state, 2));
  1130. RadioButton* instance = getInstance(state);
  1131. void* returnPtr = (void*)&(instance->getCursorColor(param1));
  1132. if (returnPtr)
  1133. {
  1134. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  1135. object->instance = returnPtr;
  1136. object->owns = false;
  1137. luaL_getmetatable(state, "Vector4");
  1138. lua_setmetatable(state, -2);
  1139. }
  1140. else
  1141. {
  1142. lua_pushnil(state);
  1143. }
  1144. return 1;
  1145. }
  1146. else
  1147. {
  1148. lua_pushstring(state, "lua_RadioButton_getCursorColor - Failed to match the given parameters to a valid function signature.");
  1149. lua_error(state);
  1150. }
  1151. break;
  1152. }
  1153. default:
  1154. {
  1155. lua_pushstring(state, "Invalid number of parameters (expected 2).");
  1156. lua_error(state);
  1157. break;
  1158. }
  1159. }
  1160. return 0;
  1161. }
  1162. int lua_RadioButton_getCursorRegion(lua_State* state)
  1163. {
  1164. // Get the number of parameters.
  1165. int paramCount = lua_gettop(state);
  1166. // Attempt to match the parameters to a valid binding.
  1167. switch (paramCount)
  1168. {
  1169. case 2:
  1170. {
  1171. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  1172. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
  1173. {
  1174. // Get parameter 1 off the stack.
  1175. Control::State param1 = (Control::State)lua_enumFromString_ControlState(luaL_checkstring(state, 2));
  1176. RadioButton* instance = getInstance(state);
  1177. void* returnPtr = (void*)&(instance->getCursorRegion(param1));
  1178. if (returnPtr)
  1179. {
  1180. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  1181. object->instance = returnPtr;
  1182. object->owns = false;
  1183. luaL_getmetatable(state, "Rectangle");
  1184. lua_setmetatable(state, -2);
  1185. }
  1186. else
  1187. {
  1188. lua_pushnil(state);
  1189. }
  1190. return 1;
  1191. }
  1192. else
  1193. {
  1194. lua_pushstring(state, "lua_RadioButton_getCursorRegion - Failed to match the given parameters to a valid function signature.");
  1195. lua_error(state);
  1196. }
  1197. break;
  1198. }
  1199. default:
  1200. {
  1201. lua_pushstring(state, "Invalid number of parameters (expected 2).");
  1202. lua_error(state);
  1203. break;
  1204. }
  1205. }
  1206. return 0;
  1207. }
  1208. int lua_RadioButton_getCursorUVs(lua_State* state)
  1209. {
  1210. // Get the number of parameters.
  1211. int paramCount = lua_gettop(state);
  1212. // Attempt to match the parameters to a valid binding.
  1213. switch (paramCount)
  1214. {
  1215. case 2:
  1216. {
  1217. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  1218. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
  1219. {
  1220. // Get parameter 1 off the stack.
  1221. Control::State param1 = (Control::State)lua_enumFromString_ControlState(luaL_checkstring(state, 2));
  1222. RadioButton* instance = getInstance(state);
  1223. void* returnPtr = (void*)&(instance->getCursorUVs(param1));
  1224. if (returnPtr)
  1225. {
  1226. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  1227. object->instance = returnPtr;
  1228. object->owns = false;
  1229. luaL_getmetatable(state, "ThemeUVs");
  1230. lua_setmetatable(state, -2);
  1231. }
  1232. else
  1233. {
  1234. lua_pushnil(state);
  1235. }
  1236. return 1;
  1237. }
  1238. else
  1239. {
  1240. lua_pushstring(state, "lua_RadioButton_getCursorUVs - Failed to match the given parameters to a valid function signature.");
  1241. lua_error(state);
  1242. }
  1243. break;
  1244. }
  1245. default:
  1246. {
  1247. lua_pushstring(state, "Invalid number of parameters (expected 2).");
  1248. lua_error(state);
  1249. break;
  1250. }
  1251. }
  1252. return 0;
  1253. }
  1254. int lua_RadioButton_getFocusIndex(lua_State* state)
  1255. {
  1256. // Get the number of parameters.
  1257. int paramCount = lua_gettop(state);
  1258. // Attempt to match the parameters to a valid binding.
  1259. switch (paramCount)
  1260. {
  1261. case 1:
  1262. {
  1263. if ((lua_type(state, 1) == LUA_TUSERDATA))
  1264. {
  1265. RadioButton* instance = getInstance(state);
  1266. int result = instance->getFocusIndex();
  1267. // Push the return value onto the stack.
  1268. lua_pushinteger(state, result);
  1269. return 1;
  1270. }
  1271. else
  1272. {
  1273. lua_pushstring(state, "lua_RadioButton_getFocusIndex - Failed to match the given parameters to a valid function signature.");
  1274. lua_error(state);
  1275. }
  1276. break;
  1277. }
  1278. default:
  1279. {
  1280. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  1281. lua_error(state);
  1282. break;
  1283. }
  1284. }
  1285. return 0;
  1286. }
  1287. int lua_RadioButton_getFont(lua_State* state)
  1288. {
  1289. // Get the number of parameters.
  1290. int paramCount = lua_gettop(state);
  1291. // Attempt to match the parameters to a valid binding.
  1292. switch (paramCount)
  1293. {
  1294. case 1:
  1295. {
  1296. if ((lua_type(state, 1) == LUA_TUSERDATA))
  1297. {
  1298. RadioButton* instance = getInstance(state);
  1299. void* returnPtr = (void*)instance->getFont();
  1300. if (returnPtr)
  1301. {
  1302. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  1303. object->instance = returnPtr;
  1304. object->owns = false;
  1305. luaL_getmetatable(state, "Font");
  1306. lua_setmetatable(state, -2);
  1307. }
  1308. else
  1309. {
  1310. lua_pushnil(state);
  1311. }
  1312. return 1;
  1313. }
  1314. else
  1315. {
  1316. lua_pushstring(state, "lua_RadioButton_getFont - Failed to match the given parameters to a valid function signature.");
  1317. lua_error(state);
  1318. }
  1319. break;
  1320. }
  1321. case 2:
  1322. {
  1323. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  1324. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
  1325. {
  1326. // Get parameter 1 off the stack.
  1327. Control::State param1 = (Control::State)lua_enumFromString_ControlState(luaL_checkstring(state, 2));
  1328. RadioButton* instance = getInstance(state);
  1329. void* returnPtr = (void*)instance->getFont(param1);
  1330. if (returnPtr)
  1331. {
  1332. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  1333. object->instance = returnPtr;
  1334. object->owns = false;
  1335. luaL_getmetatable(state, "Font");
  1336. lua_setmetatable(state, -2);
  1337. }
  1338. else
  1339. {
  1340. lua_pushnil(state);
  1341. }
  1342. return 1;
  1343. }
  1344. else
  1345. {
  1346. lua_pushstring(state, "lua_RadioButton_getFont - Failed to match the given parameters to a valid function signature.");
  1347. lua_error(state);
  1348. }
  1349. break;
  1350. }
  1351. default:
  1352. {
  1353. lua_pushstring(state, "Invalid number of parameters (expected 1 or 2).");
  1354. lua_error(state);
  1355. break;
  1356. }
  1357. }
  1358. return 0;
  1359. }
  1360. int lua_RadioButton_getFontSize(lua_State* state)
  1361. {
  1362. // Get the number of parameters.
  1363. int paramCount = lua_gettop(state);
  1364. // Attempt to match the parameters to a valid binding.
  1365. switch (paramCount)
  1366. {
  1367. case 1:
  1368. {
  1369. if ((lua_type(state, 1) == LUA_TUSERDATA))
  1370. {
  1371. RadioButton* instance = getInstance(state);
  1372. unsigned int result = instance->getFontSize();
  1373. // Push the return value onto the stack.
  1374. lua_pushunsigned(state, result);
  1375. return 1;
  1376. }
  1377. else
  1378. {
  1379. lua_pushstring(state, "lua_RadioButton_getFontSize - Failed to match the given parameters to a valid function signature.");
  1380. lua_error(state);
  1381. }
  1382. break;
  1383. }
  1384. case 2:
  1385. {
  1386. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  1387. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
  1388. {
  1389. // Get parameter 1 off the stack.
  1390. Control::State param1 = (Control::State)lua_enumFromString_ControlState(luaL_checkstring(state, 2));
  1391. RadioButton* instance = getInstance(state);
  1392. unsigned int result = instance->getFontSize(param1);
  1393. // Push the return value onto the stack.
  1394. lua_pushunsigned(state, result);
  1395. return 1;
  1396. }
  1397. else
  1398. {
  1399. lua_pushstring(state, "lua_RadioButton_getFontSize - Failed to match the given parameters to a valid function signature.");
  1400. lua_error(state);
  1401. }
  1402. break;
  1403. }
  1404. default:
  1405. {
  1406. lua_pushstring(state, "Invalid number of parameters (expected 1 or 2).");
  1407. lua_error(state);
  1408. break;
  1409. }
  1410. }
  1411. return 0;
  1412. }
  1413. int lua_RadioButton_getHeight(lua_State* state)
  1414. {
  1415. // Get the number of parameters.
  1416. int paramCount = lua_gettop(state);
  1417. // Attempt to match the parameters to a valid binding.
  1418. switch (paramCount)
  1419. {
  1420. case 1:
  1421. {
  1422. if ((lua_type(state, 1) == LUA_TUSERDATA))
  1423. {
  1424. RadioButton* instance = getInstance(state);
  1425. float result = instance->getHeight();
  1426. // Push the return value onto the stack.
  1427. lua_pushnumber(state, result);
  1428. return 1;
  1429. }
  1430. else
  1431. {
  1432. lua_pushstring(state, "lua_RadioButton_getHeight - Failed to match the given parameters to a valid function signature.");
  1433. lua_error(state);
  1434. }
  1435. break;
  1436. }
  1437. default:
  1438. {
  1439. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  1440. lua_error(state);
  1441. break;
  1442. }
  1443. }
  1444. return 0;
  1445. }
  1446. int lua_RadioButton_getId(lua_State* state)
  1447. {
  1448. // Get the number of parameters.
  1449. int paramCount = lua_gettop(state);
  1450. // Attempt to match the parameters to a valid binding.
  1451. switch (paramCount)
  1452. {
  1453. case 1:
  1454. {
  1455. if ((lua_type(state, 1) == LUA_TUSERDATA))
  1456. {
  1457. RadioButton* instance = getInstance(state);
  1458. const char* result = instance->getId();
  1459. // Push the return value onto the stack.
  1460. lua_pushstring(state, result);
  1461. return 1;
  1462. }
  1463. else
  1464. {
  1465. lua_pushstring(state, "lua_RadioButton_getId - Failed to match the given parameters to a valid function signature.");
  1466. lua_error(state);
  1467. }
  1468. break;
  1469. }
  1470. default:
  1471. {
  1472. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  1473. lua_error(state);
  1474. break;
  1475. }
  1476. }
  1477. return 0;
  1478. }
  1479. int lua_RadioButton_getImageColor(lua_State* state)
  1480. {
  1481. // Get the number of parameters.
  1482. int paramCount = lua_gettop(state);
  1483. // Attempt to match the parameters to a valid binding.
  1484. switch (paramCount)
  1485. {
  1486. case 3:
  1487. {
  1488. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  1489. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
  1490. (lua_type(state, 3) == LUA_TSTRING || lua_type(state, 3) == LUA_TNIL))
  1491. {
  1492. // Get parameter 1 off the stack.
  1493. const char* param1 = ScriptUtil::getString(2, false);
  1494. // Get parameter 2 off the stack.
  1495. Control::State param2 = (Control::State)lua_enumFromString_ControlState(luaL_checkstring(state, 3));
  1496. RadioButton* instance = getInstance(state);
  1497. void* returnPtr = (void*)&(instance->getImageColor(param1, param2));
  1498. if (returnPtr)
  1499. {
  1500. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  1501. object->instance = returnPtr;
  1502. object->owns = false;
  1503. luaL_getmetatable(state, "Vector4");
  1504. lua_setmetatable(state, -2);
  1505. }
  1506. else
  1507. {
  1508. lua_pushnil(state);
  1509. }
  1510. return 1;
  1511. }
  1512. else
  1513. {
  1514. lua_pushstring(state, "lua_RadioButton_getImageColor - Failed to match the given parameters to a valid function signature.");
  1515. lua_error(state);
  1516. }
  1517. break;
  1518. }
  1519. default:
  1520. {
  1521. lua_pushstring(state, "Invalid number of parameters (expected 3).");
  1522. lua_error(state);
  1523. break;
  1524. }
  1525. }
  1526. return 0;
  1527. }
  1528. int lua_RadioButton_getImageRegion(lua_State* state)
  1529. {
  1530. // Get the number of parameters.
  1531. int paramCount = lua_gettop(state);
  1532. // Attempt to match the parameters to a valid binding.
  1533. switch (paramCount)
  1534. {
  1535. case 3:
  1536. {
  1537. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  1538. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
  1539. (lua_type(state, 3) == LUA_TSTRING || lua_type(state, 3) == LUA_TNIL))
  1540. {
  1541. // Get parameter 1 off the stack.
  1542. const char* param1 = ScriptUtil::getString(2, false);
  1543. // Get parameter 2 off the stack.
  1544. Control::State param2 = (Control::State)lua_enumFromString_ControlState(luaL_checkstring(state, 3));
  1545. RadioButton* instance = getInstance(state);
  1546. void* returnPtr = (void*)&(instance->getImageRegion(param1, param2));
  1547. if (returnPtr)
  1548. {
  1549. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  1550. object->instance = returnPtr;
  1551. object->owns = false;
  1552. luaL_getmetatable(state, "Rectangle");
  1553. lua_setmetatable(state, -2);
  1554. }
  1555. else
  1556. {
  1557. lua_pushnil(state);
  1558. }
  1559. return 1;
  1560. }
  1561. else
  1562. {
  1563. lua_pushstring(state, "lua_RadioButton_getImageRegion - Failed to match the given parameters to a valid function signature.");
  1564. lua_error(state);
  1565. }
  1566. break;
  1567. }
  1568. default:
  1569. {
  1570. lua_pushstring(state, "Invalid number of parameters (expected 3).");
  1571. lua_error(state);
  1572. break;
  1573. }
  1574. }
  1575. return 0;
  1576. }
  1577. int lua_RadioButton_getImageSize(lua_State* state)
  1578. {
  1579. // Get the number of parameters.
  1580. int paramCount = lua_gettop(state);
  1581. // Attempt to match the parameters to a valid binding.
  1582. switch (paramCount)
  1583. {
  1584. case 1:
  1585. {
  1586. if ((lua_type(state, 1) == LUA_TUSERDATA))
  1587. {
  1588. RadioButton* instance = getInstance(state);
  1589. void* returnPtr = (void*)&(instance->getImageSize());
  1590. if (returnPtr)
  1591. {
  1592. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  1593. object->instance = returnPtr;
  1594. object->owns = false;
  1595. luaL_getmetatable(state, "Vector2");
  1596. lua_setmetatable(state, -2);
  1597. }
  1598. else
  1599. {
  1600. lua_pushnil(state);
  1601. }
  1602. return 1;
  1603. }
  1604. else
  1605. {
  1606. lua_pushstring(state, "lua_RadioButton_getImageSize - Failed to match the given parameters to a valid function signature.");
  1607. lua_error(state);
  1608. }
  1609. break;
  1610. }
  1611. default:
  1612. {
  1613. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  1614. lua_error(state);
  1615. break;
  1616. }
  1617. }
  1618. return 0;
  1619. }
  1620. int lua_RadioButton_getImageUVs(lua_State* state)
  1621. {
  1622. // Get the number of parameters.
  1623. int paramCount = lua_gettop(state);
  1624. // Attempt to match the parameters to a valid binding.
  1625. switch (paramCount)
  1626. {
  1627. case 3:
  1628. {
  1629. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  1630. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
  1631. (lua_type(state, 3) == LUA_TSTRING || lua_type(state, 3) == LUA_TNIL))
  1632. {
  1633. // Get parameter 1 off the stack.
  1634. const char* param1 = ScriptUtil::getString(2, false);
  1635. // Get parameter 2 off the stack.
  1636. Control::State param2 = (Control::State)lua_enumFromString_ControlState(luaL_checkstring(state, 3));
  1637. RadioButton* instance = getInstance(state);
  1638. void* returnPtr = (void*)&(instance->getImageUVs(param1, param2));
  1639. if (returnPtr)
  1640. {
  1641. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  1642. object->instance = returnPtr;
  1643. object->owns = false;
  1644. luaL_getmetatable(state, "ThemeUVs");
  1645. lua_setmetatable(state, -2);
  1646. }
  1647. else
  1648. {
  1649. lua_pushnil(state);
  1650. }
  1651. return 1;
  1652. }
  1653. else
  1654. {
  1655. lua_pushstring(state, "lua_RadioButton_getImageUVs - Failed to match the given parameters to a valid function signature.");
  1656. lua_error(state);
  1657. }
  1658. break;
  1659. }
  1660. default:
  1661. {
  1662. lua_pushstring(state, "Invalid number of parameters (expected 3).");
  1663. lua_error(state);
  1664. break;
  1665. }
  1666. }
  1667. return 0;
  1668. }
  1669. int lua_RadioButton_getMargin(lua_State* state)
  1670. {
  1671. // Get the number of parameters.
  1672. int paramCount = lua_gettop(state);
  1673. // Attempt to match the parameters to a valid binding.
  1674. switch (paramCount)
  1675. {
  1676. case 1:
  1677. {
  1678. if ((lua_type(state, 1) == LUA_TUSERDATA))
  1679. {
  1680. RadioButton* instance = getInstance(state);
  1681. void* returnPtr = (void*)&(instance->getMargin());
  1682. if (returnPtr)
  1683. {
  1684. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  1685. object->instance = returnPtr;
  1686. object->owns = false;
  1687. luaL_getmetatable(state, "ThemeSideRegions");
  1688. lua_setmetatable(state, -2);
  1689. }
  1690. else
  1691. {
  1692. lua_pushnil(state);
  1693. }
  1694. return 1;
  1695. }
  1696. else
  1697. {
  1698. lua_pushstring(state, "lua_RadioButton_getMargin - Failed to match the given parameters to a valid function signature.");
  1699. lua_error(state);
  1700. }
  1701. break;
  1702. }
  1703. default:
  1704. {
  1705. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  1706. lua_error(state);
  1707. break;
  1708. }
  1709. }
  1710. return 0;
  1711. }
  1712. int lua_RadioButton_getOpacity(lua_State* state)
  1713. {
  1714. // Get the number of parameters.
  1715. int paramCount = lua_gettop(state);
  1716. // Attempt to match the parameters to a valid binding.
  1717. switch (paramCount)
  1718. {
  1719. case 1:
  1720. {
  1721. if ((lua_type(state, 1) == LUA_TUSERDATA))
  1722. {
  1723. RadioButton* instance = getInstance(state);
  1724. float result = instance->getOpacity();
  1725. // Push the return value onto the stack.
  1726. lua_pushnumber(state, result);
  1727. return 1;
  1728. }
  1729. else
  1730. {
  1731. lua_pushstring(state, "lua_RadioButton_getOpacity - Failed to match the given parameters to a valid function signature.");
  1732. lua_error(state);
  1733. }
  1734. break;
  1735. }
  1736. case 2:
  1737. {
  1738. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  1739. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
  1740. {
  1741. // Get parameter 1 off the stack.
  1742. Control::State param1 = (Control::State)lua_enumFromString_ControlState(luaL_checkstring(state, 2));
  1743. RadioButton* instance = getInstance(state);
  1744. float result = instance->getOpacity(param1);
  1745. // Push the return value onto the stack.
  1746. lua_pushnumber(state, result);
  1747. return 1;
  1748. }
  1749. else
  1750. {
  1751. lua_pushstring(state, "lua_RadioButton_getOpacity - Failed to match the given parameters to a valid function signature.");
  1752. lua_error(state);
  1753. }
  1754. break;
  1755. }
  1756. default:
  1757. {
  1758. lua_pushstring(state, "Invalid number of parameters (expected 1 or 2).");
  1759. lua_error(state);
  1760. break;
  1761. }
  1762. }
  1763. return 0;
  1764. }
  1765. int lua_RadioButton_getPadding(lua_State* state)
  1766. {
  1767. // Get the number of parameters.
  1768. int paramCount = lua_gettop(state);
  1769. // Attempt to match the parameters to a valid binding.
  1770. switch (paramCount)
  1771. {
  1772. case 1:
  1773. {
  1774. if ((lua_type(state, 1) == LUA_TUSERDATA))
  1775. {
  1776. RadioButton* instance = getInstance(state);
  1777. void* returnPtr = (void*)&(instance->getPadding());
  1778. if (returnPtr)
  1779. {
  1780. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  1781. object->instance = returnPtr;
  1782. object->owns = false;
  1783. luaL_getmetatable(state, "ThemeSideRegions");
  1784. lua_setmetatable(state, -2);
  1785. }
  1786. else
  1787. {
  1788. lua_pushnil(state);
  1789. }
  1790. return 1;
  1791. }
  1792. else
  1793. {
  1794. lua_pushstring(state, "lua_RadioButton_getPadding - Failed to match the given parameters to a valid function signature.");
  1795. lua_error(state);
  1796. }
  1797. break;
  1798. }
  1799. default:
  1800. {
  1801. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  1802. lua_error(state);
  1803. break;
  1804. }
  1805. }
  1806. return 0;
  1807. }
  1808. int lua_RadioButton_getRefCount(lua_State* state)
  1809. {
  1810. // Get the number of parameters.
  1811. int paramCount = lua_gettop(state);
  1812. // Attempt to match the parameters to a valid binding.
  1813. switch (paramCount)
  1814. {
  1815. case 1:
  1816. {
  1817. if ((lua_type(state, 1) == LUA_TUSERDATA))
  1818. {
  1819. RadioButton* instance = getInstance(state);
  1820. unsigned int result = instance->getRefCount();
  1821. // Push the return value onto the stack.
  1822. lua_pushunsigned(state, result);
  1823. return 1;
  1824. }
  1825. else
  1826. {
  1827. lua_pushstring(state, "lua_RadioButton_getRefCount - Failed to match the given parameters to a valid function signature.");
  1828. lua_error(state);
  1829. }
  1830. break;
  1831. }
  1832. default:
  1833. {
  1834. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  1835. lua_error(state);
  1836. break;
  1837. }
  1838. }
  1839. return 0;
  1840. }
  1841. int lua_RadioButton_getSkinColor(lua_State* state)
  1842. {
  1843. // Get the number of parameters.
  1844. int paramCount = lua_gettop(state);
  1845. // Attempt to match the parameters to a valid binding.
  1846. switch (paramCount)
  1847. {
  1848. case 1:
  1849. {
  1850. if ((lua_type(state, 1) == LUA_TUSERDATA))
  1851. {
  1852. RadioButton* instance = getInstance(state);
  1853. void* returnPtr = (void*)&(instance->getSkinColor());
  1854. if (returnPtr)
  1855. {
  1856. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  1857. object->instance = returnPtr;
  1858. object->owns = false;
  1859. luaL_getmetatable(state, "Vector4");
  1860. lua_setmetatable(state, -2);
  1861. }
  1862. else
  1863. {
  1864. lua_pushnil(state);
  1865. }
  1866. return 1;
  1867. }
  1868. else
  1869. {
  1870. lua_pushstring(state, "lua_RadioButton_getSkinColor - Failed to match the given parameters to a valid function signature.");
  1871. lua_error(state);
  1872. }
  1873. break;
  1874. }
  1875. case 2:
  1876. {
  1877. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  1878. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
  1879. {
  1880. // Get parameter 1 off the stack.
  1881. Control::State param1 = (Control::State)lua_enumFromString_ControlState(luaL_checkstring(state, 2));
  1882. RadioButton* instance = getInstance(state);
  1883. void* returnPtr = (void*)&(instance->getSkinColor(param1));
  1884. if (returnPtr)
  1885. {
  1886. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  1887. object->instance = returnPtr;
  1888. object->owns = false;
  1889. luaL_getmetatable(state, "Vector4");
  1890. lua_setmetatable(state, -2);
  1891. }
  1892. else
  1893. {
  1894. lua_pushnil(state);
  1895. }
  1896. return 1;
  1897. }
  1898. else
  1899. {
  1900. lua_pushstring(state, "lua_RadioButton_getSkinColor - Failed to match the given parameters to a valid function signature.");
  1901. lua_error(state);
  1902. }
  1903. break;
  1904. }
  1905. default:
  1906. {
  1907. lua_pushstring(state, "Invalid number of parameters (expected 1 or 2).");
  1908. lua_error(state);
  1909. break;
  1910. }
  1911. }
  1912. return 0;
  1913. }
  1914. int lua_RadioButton_getSkinRegion(lua_State* state)
  1915. {
  1916. // Get the number of parameters.
  1917. int paramCount = lua_gettop(state);
  1918. // Attempt to match the parameters to a valid binding.
  1919. switch (paramCount)
  1920. {
  1921. case 1:
  1922. {
  1923. if ((lua_type(state, 1) == LUA_TUSERDATA))
  1924. {
  1925. RadioButton* instance = getInstance(state);
  1926. void* returnPtr = (void*)&(instance->getSkinRegion());
  1927. if (returnPtr)
  1928. {
  1929. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  1930. object->instance = returnPtr;
  1931. object->owns = false;
  1932. luaL_getmetatable(state, "Rectangle");
  1933. lua_setmetatable(state, -2);
  1934. }
  1935. else
  1936. {
  1937. lua_pushnil(state);
  1938. }
  1939. return 1;
  1940. }
  1941. else
  1942. {
  1943. lua_pushstring(state, "lua_RadioButton_getSkinRegion - Failed to match the given parameters to a valid function signature.");
  1944. lua_error(state);
  1945. }
  1946. break;
  1947. }
  1948. case 2:
  1949. {
  1950. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  1951. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
  1952. {
  1953. // Get parameter 1 off the stack.
  1954. Control::State param1 = (Control::State)lua_enumFromString_ControlState(luaL_checkstring(state, 2));
  1955. RadioButton* instance = getInstance(state);
  1956. void* returnPtr = (void*)&(instance->getSkinRegion(param1));
  1957. if (returnPtr)
  1958. {
  1959. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  1960. object->instance = returnPtr;
  1961. object->owns = false;
  1962. luaL_getmetatable(state, "Rectangle");
  1963. lua_setmetatable(state, -2);
  1964. }
  1965. else
  1966. {
  1967. lua_pushnil(state);
  1968. }
  1969. return 1;
  1970. }
  1971. else
  1972. {
  1973. lua_pushstring(state, "lua_RadioButton_getSkinRegion - Failed to match the given parameters to a valid function signature.");
  1974. lua_error(state);
  1975. }
  1976. break;
  1977. }
  1978. default:
  1979. {
  1980. lua_pushstring(state, "Invalid number of parameters (expected 1 or 2).");
  1981. lua_error(state);
  1982. break;
  1983. }
  1984. }
  1985. return 0;
  1986. }
  1987. int lua_RadioButton_getState(lua_State* state)
  1988. {
  1989. // Get the number of parameters.
  1990. int paramCount = lua_gettop(state);
  1991. // Attempt to match the parameters to a valid binding.
  1992. switch (paramCount)
  1993. {
  1994. case 1:
  1995. {
  1996. if ((lua_type(state, 1) == LUA_TUSERDATA))
  1997. {
  1998. RadioButton* instance = getInstance(state);
  1999. Control::State result = instance->getState();
  2000. // Push the return value onto the stack.
  2001. lua_pushstring(state, lua_stringFromEnum_ControlState(result));
  2002. return 1;
  2003. }
  2004. else
  2005. {
  2006. lua_pushstring(state, "lua_RadioButton_getState - Failed to match the given parameters to a valid function signature.");
  2007. lua_error(state);
  2008. }
  2009. break;
  2010. }
  2011. default:
  2012. {
  2013. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  2014. lua_error(state);
  2015. break;
  2016. }
  2017. }
  2018. return 0;
  2019. }
  2020. int lua_RadioButton_getStyle(lua_State* state)
  2021. {
  2022. // Get the number of parameters.
  2023. int paramCount = lua_gettop(state);
  2024. // Attempt to match the parameters to a valid binding.
  2025. switch (paramCount)
  2026. {
  2027. case 1:
  2028. {
  2029. if ((lua_type(state, 1) == LUA_TUSERDATA))
  2030. {
  2031. RadioButton* instance = getInstance(state);
  2032. void* returnPtr = (void*)instance->getStyle();
  2033. if (returnPtr)
  2034. {
  2035. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  2036. object->instance = returnPtr;
  2037. object->owns = false;
  2038. luaL_getmetatable(state, "ThemeStyle");
  2039. lua_setmetatable(state, -2);
  2040. }
  2041. else
  2042. {
  2043. lua_pushnil(state);
  2044. }
  2045. return 1;
  2046. }
  2047. else
  2048. {
  2049. lua_pushstring(state, "lua_RadioButton_getStyle - Failed to match the given parameters to a valid function signature.");
  2050. lua_error(state);
  2051. }
  2052. break;
  2053. }
  2054. default:
  2055. {
  2056. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  2057. lua_error(state);
  2058. break;
  2059. }
  2060. }
  2061. return 0;
  2062. }
  2063. int lua_RadioButton_getText(lua_State* state)
  2064. {
  2065. // Get the number of parameters.
  2066. int paramCount = lua_gettop(state);
  2067. // Attempt to match the parameters to a valid binding.
  2068. switch (paramCount)
  2069. {
  2070. case 1:
  2071. {
  2072. if ((lua_type(state, 1) == LUA_TUSERDATA))
  2073. {
  2074. RadioButton* instance = getInstance(state);
  2075. const char* result = instance->getText();
  2076. // Push the return value onto the stack.
  2077. lua_pushstring(state, result);
  2078. return 1;
  2079. }
  2080. else
  2081. {
  2082. lua_pushstring(state, "lua_RadioButton_getText - Failed to match the given parameters to a valid function signature.");
  2083. lua_error(state);
  2084. }
  2085. break;
  2086. }
  2087. default:
  2088. {
  2089. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  2090. lua_error(state);
  2091. break;
  2092. }
  2093. }
  2094. return 0;
  2095. }
  2096. int lua_RadioButton_getTextAlignment(lua_State* state)
  2097. {
  2098. // Get the number of parameters.
  2099. int paramCount = lua_gettop(state);
  2100. // Attempt to match the parameters to a valid binding.
  2101. switch (paramCount)
  2102. {
  2103. case 1:
  2104. {
  2105. if ((lua_type(state, 1) == LUA_TUSERDATA))
  2106. {
  2107. RadioButton* instance = getInstance(state);
  2108. Font::Justify result = instance->getTextAlignment();
  2109. // Push the return value onto the stack.
  2110. lua_pushstring(state, lua_stringFromEnum_FontJustify(result));
  2111. return 1;
  2112. }
  2113. else
  2114. {
  2115. lua_pushstring(state, "lua_RadioButton_getTextAlignment - Failed to match the given parameters to a valid function signature.");
  2116. lua_error(state);
  2117. }
  2118. break;
  2119. }
  2120. case 2:
  2121. {
  2122. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  2123. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
  2124. {
  2125. // Get parameter 1 off the stack.
  2126. Control::State param1 = (Control::State)lua_enumFromString_ControlState(luaL_checkstring(state, 2));
  2127. RadioButton* instance = getInstance(state);
  2128. Font::Justify result = instance->getTextAlignment(param1);
  2129. // Push the return value onto the stack.
  2130. lua_pushstring(state, lua_stringFromEnum_FontJustify(result));
  2131. return 1;
  2132. }
  2133. else
  2134. {
  2135. lua_pushstring(state, "lua_RadioButton_getTextAlignment - Failed to match the given parameters to a valid function signature.");
  2136. lua_error(state);
  2137. }
  2138. break;
  2139. }
  2140. default:
  2141. {
  2142. lua_pushstring(state, "Invalid number of parameters (expected 1 or 2).");
  2143. lua_error(state);
  2144. break;
  2145. }
  2146. }
  2147. return 0;
  2148. }
  2149. int lua_RadioButton_getTextColor(lua_State* state)
  2150. {
  2151. // Get the number of parameters.
  2152. int paramCount = lua_gettop(state);
  2153. // Attempt to match the parameters to a valid binding.
  2154. switch (paramCount)
  2155. {
  2156. case 1:
  2157. {
  2158. if ((lua_type(state, 1) == LUA_TUSERDATA))
  2159. {
  2160. RadioButton* instance = getInstance(state);
  2161. void* returnPtr = (void*)&(instance->getTextColor());
  2162. if (returnPtr)
  2163. {
  2164. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  2165. object->instance = returnPtr;
  2166. object->owns = false;
  2167. luaL_getmetatable(state, "Vector4");
  2168. lua_setmetatable(state, -2);
  2169. }
  2170. else
  2171. {
  2172. lua_pushnil(state);
  2173. }
  2174. return 1;
  2175. }
  2176. else
  2177. {
  2178. lua_pushstring(state, "lua_RadioButton_getTextColor - Failed to match the given parameters to a valid function signature.");
  2179. lua_error(state);
  2180. }
  2181. break;
  2182. }
  2183. case 2:
  2184. {
  2185. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  2186. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
  2187. {
  2188. // Get parameter 1 off the stack.
  2189. Control::State param1 = (Control::State)lua_enumFromString_ControlState(luaL_checkstring(state, 2));
  2190. RadioButton* instance = getInstance(state);
  2191. void* returnPtr = (void*)&(instance->getTextColor(param1));
  2192. if (returnPtr)
  2193. {
  2194. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  2195. object->instance = returnPtr;
  2196. object->owns = false;
  2197. luaL_getmetatable(state, "Vector4");
  2198. lua_setmetatable(state, -2);
  2199. }
  2200. else
  2201. {
  2202. lua_pushnil(state);
  2203. }
  2204. return 1;
  2205. }
  2206. else
  2207. {
  2208. lua_pushstring(state, "lua_RadioButton_getTextColor - Failed to match the given parameters to a valid function signature.");
  2209. lua_error(state);
  2210. }
  2211. break;
  2212. }
  2213. default:
  2214. {
  2215. lua_pushstring(state, "Invalid number of parameters (expected 1 or 2).");
  2216. lua_error(state);
  2217. break;
  2218. }
  2219. }
  2220. return 0;
  2221. }
  2222. int lua_RadioButton_getTextRightToLeft(lua_State* state)
  2223. {
  2224. // Get the number of parameters.
  2225. int paramCount = lua_gettop(state);
  2226. // Attempt to match the parameters to a valid binding.
  2227. switch (paramCount)
  2228. {
  2229. case 1:
  2230. {
  2231. if ((lua_type(state, 1) == LUA_TUSERDATA))
  2232. {
  2233. RadioButton* instance = getInstance(state);
  2234. bool result = instance->getTextRightToLeft();
  2235. // Push the return value onto the stack.
  2236. lua_pushboolean(state, result);
  2237. return 1;
  2238. }
  2239. else
  2240. {
  2241. lua_pushstring(state, "lua_RadioButton_getTextRightToLeft - Failed to match the given parameters to a valid function signature.");
  2242. lua_error(state);
  2243. }
  2244. break;
  2245. }
  2246. case 2:
  2247. {
  2248. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  2249. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
  2250. {
  2251. // Get parameter 1 off the stack.
  2252. Control::State param1 = (Control::State)lua_enumFromString_ControlState(luaL_checkstring(state, 2));
  2253. RadioButton* instance = getInstance(state);
  2254. bool result = instance->getTextRightToLeft(param1);
  2255. // Push the return value onto the stack.
  2256. lua_pushboolean(state, result);
  2257. return 1;
  2258. }
  2259. else
  2260. {
  2261. lua_pushstring(state, "lua_RadioButton_getTextRightToLeft - Failed to match the given parameters to a valid function signature.");
  2262. lua_error(state);
  2263. }
  2264. break;
  2265. }
  2266. default:
  2267. {
  2268. lua_pushstring(state, "Invalid number of parameters (expected 1 or 2).");
  2269. lua_error(state);
  2270. break;
  2271. }
  2272. }
  2273. return 0;
  2274. }
  2275. int lua_RadioButton_getType(lua_State* state)
  2276. {
  2277. // Get the number of parameters.
  2278. int paramCount = lua_gettop(state);
  2279. // Attempt to match the parameters to a valid binding.
  2280. switch (paramCount)
  2281. {
  2282. case 1:
  2283. {
  2284. if ((lua_type(state, 1) == LUA_TUSERDATA))
  2285. {
  2286. RadioButton* instance = getInstance(state);
  2287. const char* result = instance->getType();
  2288. // Push the return value onto the stack.
  2289. lua_pushstring(state, result);
  2290. return 1;
  2291. }
  2292. else
  2293. {
  2294. lua_pushstring(state, "lua_RadioButton_getType - Failed to match the given parameters to a valid function signature.");
  2295. lua_error(state);
  2296. }
  2297. break;
  2298. }
  2299. default:
  2300. {
  2301. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  2302. lua_error(state);
  2303. break;
  2304. }
  2305. }
  2306. return 0;
  2307. }
  2308. int lua_RadioButton_getWidth(lua_State* state)
  2309. {
  2310. // Get the number of parameters.
  2311. int paramCount = lua_gettop(state);
  2312. // Attempt to match the parameters to a valid binding.
  2313. switch (paramCount)
  2314. {
  2315. case 1:
  2316. {
  2317. if ((lua_type(state, 1) == LUA_TUSERDATA))
  2318. {
  2319. RadioButton* instance = getInstance(state);
  2320. float result = instance->getWidth();
  2321. // Push the return value onto the stack.
  2322. lua_pushnumber(state, result);
  2323. return 1;
  2324. }
  2325. else
  2326. {
  2327. lua_pushstring(state, "lua_RadioButton_getWidth - Failed to match the given parameters to a valid function signature.");
  2328. lua_error(state);
  2329. }
  2330. break;
  2331. }
  2332. default:
  2333. {
  2334. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  2335. lua_error(state);
  2336. break;
  2337. }
  2338. }
  2339. return 0;
  2340. }
  2341. int lua_RadioButton_getX(lua_State* state)
  2342. {
  2343. // Get the number of parameters.
  2344. int paramCount = lua_gettop(state);
  2345. // Attempt to match the parameters to a valid binding.
  2346. switch (paramCount)
  2347. {
  2348. case 1:
  2349. {
  2350. if ((lua_type(state, 1) == LUA_TUSERDATA))
  2351. {
  2352. RadioButton* instance = getInstance(state);
  2353. float result = instance->getX();
  2354. // Push the return value onto the stack.
  2355. lua_pushnumber(state, result);
  2356. return 1;
  2357. }
  2358. else
  2359. {
  2360. lua_pushstring(state, "lua_RadioButton_getX - Failed to match the given parameters to a valid function signature.");
  2361. lua_error(state);
  2362. }
  2363. break;
  2364. }
  2365. default:
  2366. {
  2367. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  2368. lua_error(state);
  2369. break;
  2370. }
  2371. }
  2372. return 0;
  2373. }
  2374. int lua_RadioButton_getY(lua_State* state)
  2375. {
  2376. // Get the number of parameters.
  2377. int paramCount = lua_gettop(state);
  2378. // Attempt to match the parameters to a valid binding.
  2379. switch (paramCount)
  2380. {
  2381. case 1:
  2382. {
  2383. if ((lua_type(state, 1) == LUA_TUSERDATA))
  2384. {
  2385. RadioButton* instance = getInstance(state);
  2386. float result = instance->getY();
  2387. // Push the return value onto the stack.
  2388. lua_pushnumber(state, result);
  2389. return 1;
  2390. }
  2391. else
  2392. {
  2393. lua_pushstring(state, "lua_RadioButton_getY - Failed to match the given parameters to a valid function signature.");
  2394. lua_error(state);
  2395. }
  2396. break;
  2397. }
  2398. default:
  2399. {
  2400. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  2401. lua_error(state);
  2402. break;
  2403. }
  2404. }
  2405. return 0;
  2406. }
  2407. int lua_RadioButton_getZIndex(lua_State* state)
  2408. {
  2409. // Get the number of parameters.
  2410. int paramCount = lua_gettop(state);
  2411. // Attempt to match the parameters to a valid binding.
  2412. switch (paramCount)
  2413. {
  2414. case 1:
  2415. {
  2416. if ((lua_type(state, 1) == LUA_TUSERDATA))
  2417. {
  2418. RadioButton* instance = getInstance(state);
  2419. int result = instance->getZIndex();
  2420. // Push the return value onto the stack.
  2421. lua_pushinteger(state, result);
  2422. return 1;
  2423. }
  2424. else
  2425. {
  2426. lua_pushstring(state, "lua_RadioButton_getZIndex - Failed to match the given parameters to a valid function signature.");
  2427. lua_error(state);
  2428. }
  2429. break;
  2430. }
  2431. default:
  2432. {
  2433. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  2434. lua_error(state);
  2435. break;
  2436. }
  2437. }
  2438. return 0;
  2439. }
  2440. int lua_RadioButton_isContainer(lua_State* state)
  2441. {
  2442. // Get the number of parameters.
  2443. int paramCount = lua_gettop(state);
  2444. // Attempt to match the parameters to a valid binding.
  2445. switch (paramCount)
  2446. {
  2447. case 1:
  2448. {
  2449. if ((lua_type(state, 1) == LUA_TUSERDATA))
  2450. {
  2451. RadioButton* instance = getInstance(state);
  2452. bool result = instance->isContainer();
  2453. // Push the return value onto the stack.
  2454. lua_pushboolean(state, result);
  2455. return 1;
  2456. }
  2457. else
  2458. {
  2459. lua_pushstring(state, "lua_RadioButton_isContainer - Failed to match the given parameters to a valid function signature.");
  2460. lua_error(state);
  2461. }
  2462. break;
  2463. }
  2464. default:
  2465. {
  2466. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  2467. lua_error(state);
  2468. break;
  2469. }
  2470. }
  2471. return 0;
  2472. }
  2473. int lua_RadioButton_isEnabled(lua_State* state)
  2474. {
  2475. // Get the number of parameters.
  2476. int paramCount = lua_gettop(state);
  2477. // Attempt to match the parameters to a valid binding.
  2478. switch (paramCount)
  2479. {
  2480. case 1:
  2481. {
  2482. if ((lua_type(state, 1) == LUA_TUSERDATA))
  2483. {
  2484. RadioButton* instance = getInstance(state);
  2485. bool result = instance->isEnabled();
  2486. // Push the return value onto the stack.
  2487. lua_pushboolean(state, result);
  2488. return 1;
  2489. }
  2490. else
  2491. {
  2492. lua_pushstring(state, "lua_RadioButton_isEnabled - Failed to match the given parameters to a valid function signature.");
  2493. lua_error(state);
  2494. }
  2495. break;
  2496. }
  2497. default:
  2498. {
  2499. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  2500. lua_error(state);
  2501. break;
  2502. }
  2503. }
  2504. return 0;
  2505. }
  2506. int lua_RadioButton_isSelected(lua_State* state)
  2507. {
  2508. // Get the number of parameters.
  2509. int paramCount = lua_gettop(state);
  2510. // Attempt to match the parameters to a valid binding.
  2511. switch (paramCount)
  2512. {
  2513. case 1:
  2514. {
  2515. if ((lua_type(state, 1) == LUA_TUSERDATA))
  2516. {
  2517. RadioButton* instance = getInstance(state);
  2518. bool result = instance->isSelected();
  2519. // Push the return value onto the stack.
  2520. lua_pushboolean(state, result);
  2521. return 1;
  2522. }
  2523. else
  2524. {
  2525. lua_pushstring(state, "lua_RadioButton_isSelected - Failed to match the given parameters to a valid function signature.");
  2526. lua_error(state);
  2527. }
  2528. break;
  2529. }
  2530. default:
  2531. {
  2532. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  2533. lua_error(state);
  2534. break;
  2535. }
  2536. }
  2537. return 0;
  2538. }
  2539. int lua_RadioButton_release(lua_State* state)
  2540. {
  2541. // Get the number of parameters.
  2542. int paramCount = lua_gettop(state);
  2543. // Attempt to match the parameters to a valid binding.
  2544. switch (paramCount)
  2545. {
  2546. case 1:
  2547. {
  2548. if ((lua_type(state, 1) == LUA_TUSERDATA))
  2549. {
  2550. RadioButton* instance = getInstance(state);
  2551. instance->release();
  2552. return 0;
  2553. }
  2554. else
  2555. {
  2556. lua_pushstring(state, "lua_RadioButton_release - Failed to match the given parameters to a valid function signature.");
  2557. lua_error(state);
  2558. }
  2559. break;
  2560. }
  2561. default:
  2562. {
  2563. lua_pushstring(state, "Invalid number of parameters (expected 1).");
  2564. lua_error(state);
  2565. break;
  2566. }
  2567. }
  2568. return 0;
  2569. }
  2570. int lua_RadioButton_setAlignment(lua_State* state)
  2571. {
  2572. // Get the number of parameters.
  2573. int paramCount = lua_gettop(state);
  2574. // Attempt to match the parameters to a valid binding.
  2575. switch (paramCount)
  2576. {
  2577. case 2:
  2578. {
  2579. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  2580. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
  2581. {
  2582. // Get parameter 1 off the stack.
  2583. Control::Alignment param1 = (Control::Alignment)lua_enumFromString_ControlAlignment(luaL_checkstring(state, 2));
  2584. RadioButton* instance = getInstance(state);
  2585. instance->setAlignment(param1);
  2586. return 0;
  2587. }
  2588. else
  2589. {
  2590. lua_pushstring(state, "lua_RadioButton_setAlignment - Failed to match the given parameters to a valid function signature.");
  2591. lua_error(state);
  2592. }
  2593. break;
  2594. }
  2595. default:
  2596. {
  2597. lua_pushstring(state, "Invalid number of parameters (expected 2).");
  2598. lua_error(state);
  2599. break;
  2600. }
  2601. }
  2602. return 0;
  2603. }
  2604. int lua_RadioButton_setAnimationPropertyValue(lua_State* state)
  2605. {
  2606. // Get the number of parameters.
  2607. int paramCount = lua_gettop(state);
  2608. // Attempt to match the parameters to a valid binding.
  2609. switch (paramCount)
  2610. {
  2611. case 3:
  2612. {
  2613. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  2614. lua_type(state, 2) == LUA_TNUMBER &&
  2615. (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TTABLE || lua_type(state, 3) == LUA_TNIL))
  2616. {
  2617. // Get parameter 1 off the stack.
  2618. int param1 = (int)luaL_checkint(state, 2);
  2619. // Get parameter 2 off the stack.
  2620. AnimationValue* param2 = ScriptUtil::getObjectPointer<AnimationValue>(3, "AnimationValue", false);
  2621. RadioButton* instance = getInstance(state);
  2622. instance->setAnimationPropertyValue(param1, param2);
  2623. return 0;
  2624. }
  2625. else
  2626. {
  2627. lua_pushstring(state, "lua_RadioButton_setAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
  2628. lua_error(state);
  2629. }
  2630. break;
  2631. }
  2632. case 4:
  2633. {
  2634. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  2635. lua_type(state, 2) == LUA_TNUMBER &&
  2636. (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TTABLE || lua_type(state, 3) == LUA_TNIL) &&
  2637. lua_type(state, 4) == LUA_TNUMBER)
  2638. {
  2639. // Get parameter 1 off the stack.
  2640. int param1 = (int)luaL_checkint(state, 2);
  2641. // Get parameter 2 off the stack.
  2642. AnimationValue* param2 = ScriptUtil::getObjectPointer<AnimationValue>(3, "AnimationValue", false);
  2643. // Get parameter 3 off the stack.
  2644. float param3 = (float)luaL_checknumber(state, 4);
  2645. RadioButton* instance = getInstance(state);
  2646. instance->setAnimationPropertyValue(param1, param2, param3);
  2647. return 0;
  2648. }
  2649. else
  2650. {
  2651. lua_pushstring(state, "lua_RadioButton_setAnimationPropertyValue - Failed to match the given parameters to a valid function signature.");
  2652. lua_error(state);
  2653. }
  2654. break;
  2655. }
  2656. default:
  2657. {
  2658. lua_pushstring(state, "Invalid number of parameters (expected 3 or 4).");
  2659. lua_error(state);
  2660. break;
  2661. }
  2662. }
  2663. return 0;
  2664. }
  2665. int lua_RadioButton_setAutoHeight(lua_State* state)
  2666. {
  2667. // Get the number of parameters.
  2668. int paramCount = lua_gettop(state);
  2669. // Attempt to match the parameters to a valid binding.
  2670. switch (paramCount)
  2671. {
  2672. case 2:
  2673. {
  2674. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  2675. lua_type(state, 2) == LUA_TBOOLEAN)
  2676. {
  2677. // Get parameter 1 off the stack.
  2678. bool param1 = ScriptUtil::luaCheckBool(state, 2);
  2679. RadioButton* instance = getInstance(state);
  2680. instance->setAutoHeight(param1);
  2681. return 0;
  2682. }
  2683. else
  2684. {
  2685. lua_pushstring(state, "lua_RadioButton_setAutoHeight - Failed to match the given parameters to a valid function signature.");
  2686. lua_error(state);
  2687. }
  2688. break;
  2689. }
  2690. default:
  2691. {
  2692. lua_pushstring(state, "Invalid number of parameters (expected 2).");
  2693. lua_error(state);
  2694. break;
  2695. }
  2696. }
  2697. return 0;
  2698. }
  2699. int lua_RadioButton_setAutoWidth(lua_State* state)
  2700. {
  2701. // Get the number of parameters.
  2702. int paramCount = lua_gettop(state);
  2703. // Attempt to match the parameters to a valid binding.
  2704. switch (paramCount)
  2705. {
  2706. case 2:
  2707. {
  2708. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  2709. lua_type(state, 2) == LUA_TBOOLEAN)
  2710. {
  2711. // Get parameter 1 off the stack.
  2712. bool param1 = ScriptUtil::luaCheckBool(state, 2);
  2713. RadioButton* instance = getInstance(state);
  2714. instance->setAutoWidth(param1);
  2715. return 0;
  2716. }
  2717. else
  2718. {
  2719. lua_pushstring(state, "lua_RadioButton_setAutoWidth - Failed to match the given parameters to a valid function signature.");
  2720. lua_error(state);
  2721. }
  2722. break;
  2723. }
  2724. default:
  2725. {
  2726. lua_pushstring(state, "Invalid number of parameters (expected 2).");
  2727. lua_error(state);
  2728. break;
  2729. }
  2730. }
  2731. return 0;
  2732. }
  2733. int lua_RadioButton_setBorder(lua_State* state)
  2734. {
  2735. // Get the number of parameters.
  2736. int paramCount = lua_gettop(state);
  2737. // Attempt to match the parameters to a valid binding.
  2738. switch (paramCount)
  2739. {
  2740. case 5:
  2741. {
  2742. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  2743. lua_type(state, 2) == LUA_TNUMBER &&
  2744. lua_type(state, 3) == LUA_TNUMBER &&
  2745. lua_type(state, 4) == LUA_TNUMBER &&
  2746. lua_type(state, 5) == LUA_TNUMBER)
  2747. {
  2748. // Get parameter 1 off the stack.
  2749. float param1 = (float)luaL_checknumber(state, 2);
  2750. // Get parameter 2 off the stack.
  2751. float param2 = (float)luaL_checknumber(state, 3);
  2752. // Get parameter 3 off the stack.
  2753. float param3 = (float)luaL_checknumber(state, 4);
  2754. // Get parameter 4 off the stack.
  2755. float param4 = (float)luaL_checknumber(state, 5);
  2756. RadioButton* instance = getInstance(state);
  2757. instance->setBorder(param1, param2, param3, param4);
  2758. return 0;
  2759. }
  2760. else
  2761. {
  2762. lua_pushstring(state, "lua_RadioButton_setBorder - Failed to match the given parameters to a valid function signature.");
  2763. lua_error(state);
  2764. }
  2765. break;
  2766. }
  2767. case 6:
  2768. {
  2769. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  2770. lua_type(state, 2) == LUA_TNUMBER &&
  2771. lua_type(state, 3) == LUA_TNUMBER &&
  2772. lua_type(state, 4) == LUA_TNUMBER &&
  2773. lua_type(state, 5) == LUA_TNUMBER &&
  2774. lua_type(state, 6) == LUA_TNUMBER)
  2775. {
  2776. // Get parameter 1 off the stack.
  2777. float param1 = (float)luaL_checknumber(state, 2);
  2778. // Get parameter 2 off the stack.
  2779. float param2 = (float)luaL_checknumber(state, 3);
  2780. // Get parameter 3 off the stack.
  2781. float param3 = (float)luaL_checknumber(state, 4);
  2782. // Get parameter 4 off the stack.
  2783. float param4 = (float)luaL_checknumber(state, 5);
  2784. // Get parameter 5 off the stack.
  2785. unsigned char param5 = (unsigned char)luaL_checkunsigned(state, 6);
  2786. RadioButton* instance = getInstance(state);
  2787. instance->setBorder(param1, param2, param3, param4, param5);
  2788. return 0;
  2789. }
  2790. else
  2791. {
  2792. lua_pushstring(state, "lua_RadioButton_setBorder - Failed to match the given parameters to a valid function signature.");
  2793. lua_error(state);
  2794. }
  2795. break;
  2796. }
  2797. default:
  2798. {
  2799. lua_pushstring(state, "Invalid number of parameters (expected 5 or 6).");
  2800. lua_error(state);
  2801. break;
  2802. }
  2803. }
  2804. return 0;
  2805. }
  2806. int lua_RadioButton_setBounds(lua_State* state)
  2807. {
  2808. // Get the number of parameters.
  2809. int paramCount = lua_gettop(state);
  2810. // Attempt to match the parameters to a valid binding.
  2811. switch (paramCount)
  2812. {
  2813. case 2:
  2814. {
  2815. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  2816. (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL))
  2817. {
  2818. // Get parameter 1 off the stack.
  2819. Rectangle* param1 = ScriptUtil::getObjectPointer<Rectangle>(2, "Rectangle", true);
  2820. RadioButton* instance = getInstance(state);
  2821. instance->setBounds(*param1);
  2822. return 0;
  2823. }
  2824. else
  2825. {
  2826. lua_pushstring(state, "lua_RadioButton_setBounds - Failed to match the given parameters to a valid function signature.");
  2827. lua_error(state);
  2828. }
  2829. break;
  2830. }
  2831. default:
  2832. {
  2833. lua_pushstring(state, "Invalid number of parameters (expected 2).");
  2834. lua_error(state);
  2835. break;
  2836. }
  2837. }
  2838. return 0;
  2839. }
  2840. int lua_RadioButton_setConsumeInputEvents(lua_State* state)
  2841. {
  2842. // Get the number of parameters.
  2843. int paramCount = lua_gettop(state);
  2844. // Attempt to match the parameters to a valid binding.
  2845. switch (paramCount)
  2846. {
  2847. case 2:
  2848. {
  2849. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  2850. lua_type(state, 2) == LUA_TBOOLEAN)
  2851. {
  2852. // Get parameter 1 off the stack.
  2853. bool param1 = ScriptUtil::luaCheckBool(state, 2);
  2854. RadioButton* instance = getInstance(state);
  2855. instance->setConsumeInputEvents(param1);
  2856. return 0;
  2857. }
  2858. else
  2859. {
  2860. lua_pushstring(state, "lua_RadioButton_setConsumeInputEvents - Failed to match the given parameters to a valid function signature.");
  2861. lua_error(state);
  2862. }
  2863. break;
  2864. }
  2865. default:
  2866. {
  2867. lua_pushstring(state, "Invalid number of parameters (expected 2).");
  2868. lua_error(state);
  2869. break;
  2870. }
  2871. }
  2872. return 0;
  2873. }
  2874. int lua_RadioButton_setCursorColor(lua_State* state)
  2875. {
  2876. // Get the number of parameters.
  2877. int paramCount = lua_gettop(state);
  2878. // Attempt to match the parameters to a valid binding.
  2879. switch (paramCount)
  2880. {
  2881. case 3:
  2882. {
  2883. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  2884. (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL) &&
  2885. lua_type(state, 3) == LUA_TNUMBER)
  2886. {
  2887. // Get parameter 1 off the stack.
  2888. Vector4* param1 = ScriptUtil::getObjectPointer<Vector4>(2, "Vector4", true);
  2889. // Get parameter 2 off the stack.
  2890. unsigned char param2 = (unsigned char)luaL_checkunsigned(state, 3);
  2891. RadioButton* instance = getInstance(state);
  2892. instance->setCursorColor(*param1, param2);
  2893. return 0;
  2894. }
  2895. else
  2896. {
  2897. lua_pushstring(state, "lua_RadioButton_setCursorColor - Failed to match the given parameters to a valid function signature.");
  2898. lua_error(state);
  2899. }
  2900. break;
  2901. }
  2902. default:
  2903. {
  2904. lua_pushstring(state, "Invalid number of parameters (expected 3).");
  2905. lua_error(state);
  2906. break;
  2907. }
  2908. }
  2909. return 0;
  2910. }
  2911. int lua_RadioButton_setCursorRegion(lua_State* state)
  2912. {
  2913. // Get the number of parameters.
  2914. int paramCount = lua_gettop(state);
  2915. // Attempt to match the parameters to a valid binding.
  2916. switch (paramCount)
  2917. {
  2918. case 3:
  2919. {
  2920. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  2921. (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL) &&
  2922. lua_type(state, 3) == LUA_TNUMBER)
  2923. {
  2924. // Get parameter 1 off the stack.
  2925. Rectangle* param1 = ScriptUtil::getObjectPointer<Rectangle>(2, "Rectangle", true);
  2926. // Get parameter 2 off the stack.
  2927. unsigned char param2 = (unsigned char)luaL_checkunsigned(state, 3);
  2928. RadioButton* instance = getInstance(state);
  2929. instance->setCursorRegion(*param1, param2);
  2930. return 0;
  2931. }
  2932. else
  2933. {
  2934. lua_pushstring(state, "lua_RadioButton_setCursorRegion - Failed to match the given parameters to a valid function signature.");
  2935. lua_error(state);
  2936. }
  2937. break;
  2938. }
  2939. default:
  2940. {
  2941. lua_pushstring(state, "Invalid number of parameters (expected 3).");
  2942. lua_error(state);
  2943. break;
  2944. }
  2945. }
  2946. return 0;
  2947. }
  2948. int lua_RadioButton_setFocusIndex(lua_State* state)
  2949. {
  2950. // Get the number of parameters.
  2951. int paramCount = lua_gettop(state);
  2952. // Attempt to match the parameters to a valid binding.
  2953. switch (paramCount)
  2954. {
  2955. case 2:
  2956. {
  2957. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  2958. lua_type(state, 2) == LUA_TNUMBER)
  2959. {
  2960. // Get parameter 1 off the stack.
  2961. int param1 = (int)luaL_checkint(state, 2);
  2962. RadioButton* instance = getInstance(state);
  2963. instance->setFocusIndex(param1);
  2964. return 0;
  2965. }
  2966. else
  2967. {
  2968. lua_pushstring(state, "lua_RadioButton_setFocusIndex - Failed to match the given parameters to a valid function signature.");
  2969. lua_error(state);
  2970. }
  2971. break;
  2972. }
  2973. default:
  2974. {
  2975. lua_pushstring(state, "Invalid number of parameters (expected 2).");
  2976. lua_error(state);
  2977. break;
  2978. }
  2979. }
  2980. return 0;
  2981. }
  2982. int lua_RadioButton_setFont(lua_State* state)
  2983. {
  2984. // Get the number of parameters.
  2985. int paramCount = lua_gettop(state);
  2986. // Attempt to match the parameters to a valid binding.
  2987. switch (paramCount)
  2988. {
  2989. case 2:
  2990. {
  2991. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  2992. (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TTABLE || lua_type(state, 2) == LUA_TNIL))
  2993. {
  2994. // Get parameter 1 off the stack.
  2995. Font* param1 = ScriptUtil::getObjectPointer<Font>(2, "Font", false);
  2996. RadioButton* instance = getInstance(state);
  2997. instance->setFont(param1);
  2998. return 0;
  2999. }
  3000. else
  3001. {
  3002. lua_pushstring(state, "lua_RadioButton_setFont - Failed to match the given parameters to a valid function signature.");
  3003. lua_error(state);
  3004. }
  3005. break;
  3006. }
  3007. case 3:
  3008. {
  3009. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3010. (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TTABLE || lua_type(state, 2) == LUA_TNIL) &&
  3011. lua_type(state, 3) == LUA_TNUMBER)
  3012. {
  3013. // Get parameter 1 off the stack.
  3014. Font* param1 = ScriptUtil::getObjectPointer<Font>(2, "Font", false);
  3015. // Get parameter 2 off the stack.
  3016. unsigned char param2 = (unsigned char)luaL_checkunsigned(state, 3);
  3017. RadioButton* instance = getInstance(state);
  3018. instance->setFont(param1, param2);
  3019. return 0;
  3020. }
  3021. else
  3022. {
  3023. lua_pushstring(state, "lua_RadioButton_setFont - Failed to match the given parameters to a valid function signature.");
  3024. lua_error(state);
  3025. }
  3026. break;
  3027. }
  3028. default:
  3029. {
  3030. lua_pushstring(state, "Invalid number of parameters (expected 2 or 3).");
  3031. lua_error(state);
  3032. break;
  3033. }
  3034. }
  3035. return 0;
  3036. }
  3037. int lua_RadioButton_setFontSize(lua_State* state)
  3038. {
  3039. // Get the number of parameters.
  3040. int paramCount = lua_gettop(state);
  3041. // Attempt to match the parameters to a valid binding.
  3042. switch (paramCount)
  3043. {
  3044. case 2:
  3045. {
  3046. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3047. lua_type(state, 2) == LUA_TNUMBER)
  3048. {
  3049. // Get parameter 1 off the stack.
  3050. unsigned int param1 = (unsigned int)luaL_checkunsigned(state, 2);
  3051. RadioButton* instance = getInstance(state);
  3052. instance->setFontSize(param1);
  3053. return 0;
  3054. }
  3055. else
  3056. {
  3057. lua_pushstring(state, "lua_RadioButton_setFontSize - Failed to match the given parameters to a valid function signature.");
  3058. lua_error(state);
  3059. }
  3060. break;
  3061. }
  3062. case 3:
  3063. {
  3064. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3065. lua_type(state, 2) == LUA_TNUMBER &&
  3066. lua_type(state, 3) == LUA_TNUMBER)
  3067. {
  3068. // Get parameter 1 off the stack.
  3069. unsigned int param1 = (unsigned int)luaL_checkunsigned(state, 2);
  3070. // Get parameter 2 off the stack.
  3071. unsigned char param2 = (unsigned char)luaL_checkunsigned(state, 3);
  3072. RadioButton* instance = getInstance(state);
  3073. instance->setFontSize(param1, param2);
  3074. return 0;
  3075. }
  3076. else
  3077. {
  3078. lua_pushstring(state, "lua_RadioButton_setFontSize - Failed to match the given parameters to a valid function signature.");
  3079. lua_error(state);
  3080. }
  3081. break;
  3082. }
  3083. default:
  3084. {
  3085. lua_pushstring(state, "Invalid number of parameters (expected 2 or 3).");
  3086. lua_error(state);
  3087. break;
  3088. }
  3089. }
  3090. return 0;
  3091. }
  3092. int lua_RadioButton_setImageColor(lua_State* state)
  3093. {
  3094. // Get the number of parameters.
  3095. int paramCount = lua_gettop(state);
  3096. // Attempt to match the parameters to a valid binding.
  3097. switch (paramCount)
  3098. {
  3099. case 3:
  3100. {
  3101. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3102. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
  3103. (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TNIL))
  3104. {
  3105. // Get parameter 1 off the stack.
  3106. const char* param1 = ScriptUtil::getString(2, false);
  3107. // Get parameter 2 off the stack.
  3108. Vector4* param2 = ScriptUtil::getObjectPointer<Vector4>(3, "Vector4", true);
  3109. RadioButton* instance = getInstance(state);
  3110. instance->setImageColor(param1, *param2);
  3111. return 0;
  3112. }
  3113. else
  3114. {
  3115. lua_pushstring(state, "lua_RadioButton_setImageColor - Failed to match the given parameters to a valid function signature.");
  3116. lua_error(state);
  3117. }
  3118. break;
  3119. }
  3120. case 4:
  3121. {
  3122. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3123. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
  3124. (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TNIL) &&
  3125. lua_type(state, 4) == LUA_TNUMBER)
  3126. {
  3127. // Get parameter 1 off the stack.
  3128. const char* param1 = ScriptUtil::getString(2, false);
  3129. // Get parameter 2 off the stack.
  3130. Vector4* param2 = ScriptUtil::getObjectPointer<Vector4>(3, "Vector4", true);
  3131. // Get parameter 3 off the stack.
  3132. unsigned char param3 = (unsigned char)luaL_checkunsigned(state, 4);
  3133. RadioButton* instance = getInstance(state);
  3134. instance->setImageColor(param1, *param2, param3);
  3135. return 0;
  3136. }
  3137. else
  3138. {
  3139. lua_pushstring(state, "lua_RadioButton_setImageColor - Failed to match the given parameters to a valid function signature.");
  3140. lua_error(state);
  3141. }
  3142. break;
  3143. }
  3144. default:
  3145. {
  3146. lua_pushstring(state, "Invalid number of parameters (expected 3 or 4).");
  3147. lua_error(state);
  3148. break;
  3149. }
  3150. }
  3151. return 0;
  3152. }
  3153. int lua_RadioButton_setImageRegion(lua_State* state)
  3154. {
  3155. // Get the number of parameters.
  3156. int paramCount = lua_gettop(state);
  3157. // Attempt to match the parameters to a valid binding.
  3158. switch (paramCount)
  3159. {
  3160. case 3:
  3161. {
  3162. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3163. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
  3164. (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TNIL))
  3165. {
  3166. // Get parameter 1 off the stack.
  3167. const char* param1 = ScriptUtil::getString(2, false);
  3168. // Get parameter 2 off the stack.
  3169. Rectangle* param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true);
  3170. RadioButton* instance = getInstance(state);
  3171. instance->setImageRegion(param1, *param2);
  3172. return 0;
  3173. }
  3174. else
  3175. {
  3176. lua_pushstring(state, "lua_RadioButton_setImageRegion - Failed to match the given parameters to a valid function signature.");
  3177. lua_error(state);
  3178. }
  3179. break;
  3180. }
  3181. case 4:
  3182. {
  3183. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3184. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
  3185. (lua_type(state, 3) == LUA_TUSERDATA || lua_type(state, 3) == LUA_TNIL) &&
  3186. lua_type(state, 4) == LUA_TNUMBER)
  3187. {
  3188. // Get parameter 1 off the stack.
  3189. const char* param1 = ScriptUtil::getString(2, false);
  3190. // Get parameter 2 off the stack.
  3191. Rectangle* param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true);
  3192. // Get parameter 3 off the stack.
  3193. unsigned char param3 = (unsigned char)luaL_checkunsigned(state, 4);
  3194. RadioButton* instance = getInstance(state);
  3195. instance->setImageRegion(param1, *param2, param3);
  3196. return 0;
  3197. }
  3198. else
  3199. {
  3200. lua_pushstring(state, "lua_RadioButton_setImageRegion - Failed to match the given parameters to a valid function signature.");
  3201. lua_error(state);
  3202. }
  3203. break;
  3204. }
  3205. default:
  3206. {
  3207. lua_pushstring(state, "Invalid number of parameters (expected 3 or 4).");
  3208. lua_error(state);
  3209. break;
  3210. }
  3211. }
  3212. return 0;
  3213. }
  3214. int lua_RadioButton_setImageSize(lua_State* state)
  3215. {
  3216. // Get the number of parameters.
  3217. int paramCount = lua_gettop(state);
  3218. // Attempt to match the parameters to a valid binding.
  3219. switch (paramCount)
  3220. {
  3221. case 3:
  3222. {
  3223. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3224. lua_type(state, 2) == LUA_TNUMBER &&
  3225. lua_type(state, 3) == LUA_TNUMBER)
  3226. {
  3227. // Get parameter 1 off the stack.
  3228. float param1 = (float)luaL_checknumber(state, 2);
  3229. // Get parameter 2 off the stack.
  3230. float param2 = (float)luaL_checknumber(state, 3);
  3231. RadioButton* instance = getInstance(state);
  3232. instance->setImageSize(param1, param2);
  3233. return 0;
  3234. }
  3235. else
  3236. {
  3237. lua_pushstring(state, "lua_RadioButton_setImageSize - Failed to match the given parameters to a valid function signature.");
  3238. lua_error(state);
  3239. }
  3240. break;
  3241. }
  3242. default:
  3243. {
  3244. lua_pushstring(state, "Invalid number of parameters (expected 3).");
  3245. lua_error(state);
  3246. break;
  3247. }
  3248. }
  3249. return 0;
  3250. }
  3251. int lua_RadioButton_setMargin(lua_State* state)
  3252. {
  3253. // Get the number of parameters.
  3254. int paramCount = lua_gettop(state);
  3255. // Attempt to match the parameters to a valid binding.
  3256. switch (paramCount)
  3257. {
  3258. case 5:
  3259. {
  3260. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3261. lua_type(state, 2) == LUA_TNUMBER &&
  3262. lua_type(state, 3) == LUA_TNUMBER &&
  3263. lua_type(state, 4) == LUA_TNUMBER &&
  3264. lua_type(state, 5) == LUA_TNUMBER)
  3265. {
  3266. // Get parameter 1 off the stack.
  3267. float param1 = (float)luaL_checknumber(state, 2);
  3268. // Get parameter 2 off the stack.
  3269. float param2 = (float)luaL_checknumber(state, 3);
  3270. // Get parameter 3 off the stack.
  3271. float param3 = (float)luaL_checknumber(state, 4);
  3272. // Get parameter 4 off the stack.
  3273. float param4 = (float)luaL_checknumber(state, 5);
  3274. RadioButton* instance = getInstance(state);
  3275. instance->setMargin(param1, param2, param3, param4);
  3276. return 0;
  3277. }
  3278. else
  3279. {
  3280. lua_pushstring(state, "lua_RadioButton_setMargin - Failed to match the given parameters to a valid function signature.");
  3281. lua_error(state);
  3282. }
  3283. break;
  3284. }
  3285. default:
  3286. {
  3287. lua_pushstring(state, "Invalid number of parameters (expected 5).");
  3288. lua_error(state);
  3289. break;
  3290. }
  3291. }
  3292. return 0;
  3293. }
  3294. int lua_RadioButton_setOpacity(lua_State* state)
  3295. {
  3296. // Get the number of parameters.
  3297. int paramCount = lua_gettop(state);
  3298. // Attempt to match the parameters to a valid binding.
  3299. switch (paramCount)
  3300. {
  3301. case 2:
  3302. {
  3303. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3304. lua_type(state, 2) == LUA_TNUMBER)
  3305. {
  3306. // Get parameter 1 off the stack.
  3307. float param1 = (float)luaL_checknumber(state, 2);
  3308. RadioButton* instance = getInstance(state);
  3309. instance->setOpacity(param1);
  3310. return 0;
  3311. }
  3312. else
  3313. {
  3314. lua_pushstring(state, "lua_RadioButton_setOpacity - Failed to match the given parameters to a valid function signature.");
  3315. lua_error(state);
  3316. }
  3317. break;
  3318. }
  3319. case 3:
  3320. {
  3321. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3322. lua_type(state, 2) == LUA_TNUMBER &&
  3323. lua_type(state, 3) == LUA_TNUMBER)
  3324. {
  3325. // Get parameter 1 off the stack.
  3326. float param1 = (float)luaL_checknumber(state, 2);
  3327. // Get parameter 2 off the stack.
  3328. unsigned char param2 = (unsigned char)luaL_checkunsigned(state, 3);
  3329. RadioButton* instance = getInstance(state);
  3330. instance->setOpacity(param1, param2);
  3331. return 0;
  3332. }
  3333. else
  3334. {
  3335. lua_pushstring(state, "lua_RadioButton_setOpacity - Failed to match the given parameters to a valid function signature.");
  3336. lua_error(state);
  3337. }
  3338. break;
  3339. }
  3340. default:
  3341. {
  3342. lua_pushstring(state, "Invalid number of parameters (expected 2 or 3).");
  3343. lua_error(state);
  3344. break;
  3345. }
  3346. }
  3347. return 0;
  3348. }
  3349. int lua_RadioButton_setPadding(lua_State* state)
  3350. {
  3351. // Get the number of parameters.
  3352. int paramCount = lua_gettop(state);
  3353. // Attempt to match the parameters to a valid binding.
  3354. switch (paramCount)
  3355. {
  3356. case 5:
  3357. {
  3358. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3359. lua_type(state, 2) == LUA_TNUMBER &&
  3360. lua_type(state, 3) == LUA_TNUMBER &&
  3361. lua_type(state, 4) == LUA_TNUMBER &&
  3362. lua_type(state, 5) == LUA_TNUMBER)
  3363. {
  3364. // Get parameter 1 off the stack.
  3365. float param1 = (float)luaL_checknumber(state, 2);
  3366. // Get parameter 2 off the stack.
  3367. float param2 = (float)luaL_checknumber(state, 3);
  3368. // Get parameter 3 off the stack.
  3369. float param3 = (float)luaL_checknumber(state, 4);
  3370. // Get parameter 4 off the stack.
  3371. float param4 = (float)luaL_checknumber(state, 5);
  3372. RadioButton* instance = getInstance(state);
  3373. instance->setPadding(param1, param2, param3, param4);
  3374. return 0;
  3375. }
  3376. else
  3377. {
  3378. lua_pushstring(state, "lua_RadioButton_setPadding - Failed to match the given parameters to a valid function signature.");
  3379. lua_error(state);
  3380. }
  3381. break;
  3382. }
  3383. default:
  3384. {
  3385. lua_pushstring(state, "Invalid number of parameters (expected 5).");
  3386. lua_error(state);
  3387. break;
  3388. }
  3389. }
  3390. return 0;
  3391. }
  3392. int lua_RadioButton_setPosition(lua_State* state)
  3393. {
  3394. // Get the number of parameters.
  3395. int paramCount = lua_gettop(state);
  3396. // Attempt to match the parameters to a valid binding.
  3397. switch (paramCount)
  3398. {
  3399. case 3:
  3400. {
  3401. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3402. lua_type(state, 2) == LUA_TNUMBER &&
  3403. lua_type(state, 3) == LUA_TNUMBER)
  3404. {
  3405. // Get parameter 1 off the stack.
  3406. float param1 = (float)luaL_checknumber(state, 2);
  3407. // Get parameter 2 off the stack.
  3408. float param2 = (float)luaL_checknumber(state, 3);
  3409. RadioButton* instance = getInstance(state);
  3410. instance->setPosition(param1, param2);
  3411. return 0;
  3412. }
  3413. else
  3414. {
  3415. lua_pushstring(state, "lua_RadioButton_setPosition - Failed to match the given parameters to a valid function signature.");
  3416. lua_error(state);
  3417. }
  3418. break;
  3419. }
  3420. default:
  3421. {
  3422. lua_pushstring(state, "Invalid number of parameters (expected 3).");
  3423. lua_error(state);
  3424. break;
  3425. }
  3426. }
  3427. return 0;
  3428. }
  3429. int lua_RadioButton_setSize(lua_State* state)
  3430. {
  3431. // Get the number of parameters.
  3432. int paramCount = lua_gettop(state);
  3433. // Attempt to match the parameters to a valid binding.
  3434. switch (paramCount)
  3435. {
  3436. case 3:
  3437. {
  3438. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3439. lua_type(state, 2) == LUA_TNUMBER &&
  3440. lua_type(state, 3) == LUA_TNUMBER)
  3441. {
  3442. // Get parameter 1 off the stack.
  3443. float param1 = (float)luaL_checknumber(state, 2);
  3444. // Get parameter 2 off the stack.
  3445. float param2 = (float)luaL_checknumber(state, 3);
  3446. RadioButton* instance = getInstance(state);
  3447. instance->setSize(param1, param2);
  3448. return 0;
  3449. }
  3450. else
  3451. {
  3452. lua_pushstring(state, "lua_RadioButton_setSize - Failed to match the given parameters to a valid function signature.");
  3453. lua_error(state);
  3454. }
  3455. break;
  3456. }
  3457. default:
  3458. {
  3459. lua_pushstring(state, "Invalid number of parameters (expected 3).");
  3460. lua_error(state);
  3461. break;
  3462. }
  3463. }
  3464. return 0;
  3465. }
  3466. int lua_RadioButton_setSkinColor(lua_State* state)
  3467. {
  3468. // Get the number of parameters.
  3469. int paramCount = lua_gettop(state);
  3470. // Attempt to match the parameters to a valid binding.
  3471. switch (paramCount)
  3472. {
  3473. case 2:
  3474. {
  3475. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3476. (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL))
  3477. {
  3478. // Get parameter 1 off the stack.
  3479. Vector4* param1 = ScriptUtil::getObjectPointer<Vector4>(2, "Vector4", true);
  3480. RadioButton* instance = getInstance(state);
  3481. instance->setSkinColor(*param1);
  3482. return 0;
  3483. }
  3484. else
  3485. {
  3486. lua_pushstring(state, "lua_RadioButton_setSkinColor - Failed to match the given parameters to a valid function signature.");
  3487. lua_error(state);
  3488. }
  3489. break;
  3490. }
  3491. case 3:
  3492. {
  3493. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3494. (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL) &&
  3495. lua_type(state, 3) == LUA_TNUMBER)
  3496. {
  3497. // Get parameter 1 off the stack.
  3498. Vector4* param1 = ScriptUtil::getObjectPointer<Vector4>(2, "Vector4", true);
  3499. // Get parameter 2 off the stack.
  3500. unsigned char param2 = (unsigned char)luaL_checkunsigned(state, 3);
  3501. RadioButton* instance = getInstance(state);
  3502. instance->setSkinColor(*param1, param2);
  3503. return 0;
  3504. }
  3505. else
  3506. {
  3507. lua_pushstring(state, "lua_RadioButton_setSkinColor - Failed to match the given parameters to a valid function signature.");
  3508. lua_error(state);
  3509. }
  3510. break;
  3511. }
  3512. default:
  3513. {
  3514. lua_pushstring(state, "Invalid number of parameters (expected 2 or 3).");
  3515. lua_error(state);
  3516. break;
  3517. }
  3518. }
  3519. return 0;
  3520. }
  3521. int lua_RadioButton_setSkinRegion(lua_State* state)
  3522. {
  3523. // Get the number of parameters.
  3524. int paramCount = lua_gettop(state);
  3525. // Attempt to match the parameters to a valid binding.
  3526. switch (paramCount)
  3527. {
  3528. case 2:
  3529. {
  3530. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3531. (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL))
  3532. {
  3533. // Get parameter 1 off the stack.
  3534. Rectangle* param1 = ScriptUtil::getObjectPointer<Rectangle>(2, "Rectangle", true);
  3535. RadioButton* instance = getInstance(state);
  3536. instance->setSkinRegion(*param1);
  3537. return 0;
  3538. }
  3539. else
  3540. {
  3541. lua_pushstring(state, "lua_RadioButton_setSkinRegion - Failed to match the given parameters to a valid function signature.");
  3542. lua_error(state);
  3543. }
  3544. break;
  3545. }
  3546. case 3:
  3547. {
  3548. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3549. (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL) &&
  3550. lua_type(state, 3) == LUA_TNUMBER)
  3551. {
  3552. // Get parameter 1 off the stack.
  3553. Rectangle* param1 = ScriptUtil::getObjectPointer<Rectangle>(2, "Rectangle", true);
  3554. // Get parameter 2 off the stack.
  3555. unsigned char param2 = (unsigned char)luaL_checkunsigned(state, 3);
  3556. RadioButton* instance = getInstance(state);
  3557. instance->setSkinRegion(*param1, param2);
  3558. return 0;
  3559. }
  3560. else
  3561. {
  3562. lua_pushstring(state, "lua_RadioButton_setSkinRegion - Failed to match the given parameters to a valid function signature.");
  3563. lua_error(state);
  3564. }
  3565. break;
  3566. }
  3567. default:
  3568. {
  3569. lua_pushstring(state, "Invalid number of parameters (expected 2 or 3).");
  3570. lua_error(state);
  3571. break;
  3572. }
  3573. }
  3574. return 0;
  3575. }
  3576. int lua_RadioButton_setState(lua_State* state)
  3577. {
  3578. // Get the number of parameters.
  3579. int paramCount = lua_gettop(state);
  3580. // Attempt to match the parameters to a valid binding.
  3581. switch (paramCount)
  3582. {
  3583. case 2:
  3584. {
  3585. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3586. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
  3587. {
  3588. // Get parameter 1 off the stack.
  3589. Control::State param1 = (Control::State)lua_enumFromString_ControlState(luaL_checkstring(state, 2));
  3590. RadioButton* instance = getInstance(state);
  3591. instance->setState(param1);
  3592. return 0;
  3593. }
  3594. else
  3595. {
  3596. lua_pushstring(state, "lua_RadioButton_setState - Failed to match the given parameters to a valid function signature.");
  3597. lua_error(state);
  3598. }
  3599. break;
  3600. }
  3601. default:
  3602. {
  3603. lua_pushstring(state, "Invalid number of parameters (expected 2).");
  3604. lua_error(state);
  3605. break;
  3606. }
  3607. }
  3608. return 0;
  3609. }
  3610. int lua_RadioButton_setStyle(lua_State* state)
  3611. {
  3612. // Get the number of parameters.
  3613. int paramCount = lua_gettop(state);
  3614. // Attempt to match the parameters to a valid binding.
  3615. switch (paramCount)
  3616. {
  3617. case 2:
  3618. {
  3619. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3620. (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TTABLE || lua_type(state, 2) == LUA_TNIL))
  3621. {
  3622. // Get parameter 1 off the stack.
  3623. Theme::Style* param1 = ScriptUtil::getObjectPointer<Theme::Style>(2, "ThemeStyle", false);
  3624. RadioButton* instance = getInstance(state);
  3625. instance->setStyle(param1);
  3626. return 0;
  3627. }
  3628. else
  3629. {
  3630. lua_pushstring(state, "lua_RadioButton_setStyle - Failed to match the given parameters to a valid function signature.");
  3631. lua_error(state);
  3632. }
  3633. break;
  3634. }
  3635. default:
  3636. {
  3637. lua_pushstring(state, "Invalid number of parameters (expected 2).");
  3638. lua_error(state);
  3639. break;
  3640. }
  3641. }
  3642. return 0;
  3643. }
  3644. int lua_RadioButton_setText(lua_State* state)
  3645. {
  3646. // Get the number of parameters.
  3647. int paramCount = lua_gettop(state);
  3648. // Attempt to match the parameters to a valid binding.
  3649. switch (paramCount)
  3650. {
  3651. case 2:
  3652. {
  3653. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3654. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
  3655. {
  3656. // Get parameter 1 off the stack.
  3657. const char* param1 = ScriptUtil::getString(2, false);
  3658. RadioButton* instance = getInstance(state);
  3659. instance->setText(param1);
  3660. return 0;
  3661. }
  3662. else
  3663. {
  3664. lua_pushstring(state, "lua_RadioButton_setText - Failed to match the given parameters to a valid function signature.");
  3665. lua_error(state);
  3666. }
  3667. break;
  3668. }
  3669. default:
  3670. {
  3671. lua_pushstring(state, "Invalid number of parameters (expected 2).");
  3672. lua_error(state);
  3673. break;
  3674. }
  3675. }
  3676. return 0;
  3677. }
  3678. int lua_RadioButton_setTextAlignment(lua_State* state)
  3679. {
  3680. // Get the number of parameters.
  3681. int paramCount = lua_gettop(state);
  3682. // Attempt to match the parameters to a valid binding.
  3683. switch (paramCount)
  3684. {
  3685. case 2:
  3686. {
  3687. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3688. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
  3689. {
  3690. // Get parameter 1 off the stack.
  3691. Font::Justify param1 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 2));
  3692. RadioButton* instance = getInstance(state);
  3693. instance->setTextAlignment(param1);
  3694. return 0;
  3695. }
  3696. else
  3697. {
  3698. lua_pushstring(state, "lua_RadioButton_setTextAlignment - Failed to match the given parameters to a valid function signature.");
  3699. lua_error(state);
  3700. }
  3701. break;
  3702. }
  3703. case 3:
  3704. {
  3705. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3706. (lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL) &&
  3707. lua_type(state, 3) == LUA_TNUMBER)
  3708. {
  3709. // Get parameter 1 off the stack.
  3710. Font::Justify param1 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 2));
  3711. // Get parameter 2 off the stack.
  3712. unsigned char param2 = (unsigned char)luaL_checkunsigned(state, 3);
  3713. RadioButton* instance = getInstance(state);
  3714. instance->setTextAlignment(param1, param2);
  3715. return 0;
  3716. }
  3717. else
  3718. {
  3719. lua_pushstring(state, "lua_RadioButton_setTextAlignment - Failed to match the given parameters to a valid function signature.");
  3720. lua_error(state);
  3721. }
  3722. break;
  3723. }
  3724. default:
  3725. {
  3726. lua_pushstring(state, "Invalid number of parameters (expected 2 or 3).");
  3727. lua_error(state);
  3728. break;
  3729. }
  3730. }
  3731. return 0;
  3732. }
  3733. int lua_RadioButton_setTextColor(lua_State* state)
  3734. {
  3735. // Get the number of parameters.
  3736. int paramCount = lua_gettop(state);
  3737. // Attempt to match the parameters to a valid binding.
  3738. switch (paramCount)
  3739. {
  3740. case 2:
  3741. {
  3742. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3743. (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL))
  3744. {
  3745. // Get parameter 1 off the stack.
  3746. Vector4* param1 = ScriptUtil::getObjectPointer<Vector4>(2, "Vector4", true);
  3747. RadioButton* instance = getInstance(state);
  3748. instance->setTextColor(*param1);
  3749. return 0;
  3750. }
  3751. else
  3752. {
  3753. lua_pushstring(state, "lua_RadioButton_setTextColor - Failed to match the given parameters to a valid function signature.");
  3754. lua_error(state);
  3755. }
  3756. break;
  3757. }
  3758. case 3:
  3759. {
  3760. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3761. (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TNIL) &&
  3762. lua_type(state, 3) == LUA_TNUMBER)
  3763. {
  3764. // Get parameter 1 off the stack.
  3765. Vector4* param1 = ScriptUtil::getObjectPointer<Vector4>(2, "Vector4", true);
  3766. // Get parameter 2 off the stack.
  3767. unsigned char param2 = (unsigned char)luaL_checkunsigned(state, 3);
  3768. RadioButton* instance = getInstance(state);
  3769. instance->setTextColor(*param1, param2);
  3770. return 0;
  3771. }
  3772. else
  3773. {
  3774. lua_pushstring(state, "lua_RadioButton_setTextColor - Failed to match the given parameters to a valid function signature.");
  3775. lua_error(state);
  3776. }
  3777. break;
  3778. }
  3779. default:
  3780. {
  3781. lua_pushstring(state, "Invalid number of parameters (expected 2 or 3).");
  3782. lua_error(state);
  3783. break;
  3784. }
  3785. }
  3786. return 0;
  3787. }
  3788. int lua_RadioButton_setTextRightToLeft(lua_State* state)
  3789. {
  3790. // Get the number of parameters.
  3791. int paramCount = lua_gettop(state);
  3792. // Attempt to match the parameters to a valid binding.
  3793. switch (paramCount)
  3794. {
  3795. case 2:
  3796. {
  3797. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3798. lua_type(state, 2) == LUA_TBOOLEAN)
  3799. {
  3800. // Get parameter 1 off the stack.
  3801. bool param1 = ScriptUtil::luaCheckBool(state, 2);
  3802. RadioButton* instance = getInstance(state);
  3803. instance->setTextRightToLeft(param1);
  3804. return 0;
  3805. }
  3806. else
  3807. {
  3808. lua_pushstring(state, "lua_RadioButton_setTextRightToLeft - Failed to match the given parameters to a valid function signature.");
  3809. lua_error(state);
  3810. }
  3811. break;
  3812. }
  3813. case 3:
  3814. {
  3815. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3816. lua_type(state, 2) == LUA_TBOOLEAN &&
  3817. lua_type(state, 3) == LUA_TNUMBER)
  3818. {
  3819. // Get parameter 1 off the stack.
  3820. bool param1 = ScriptUtil::luaCheckBool(state, 2);
  3821. // Get parameter 2 off the stack.
  3822. unsigned char param2 = (unsigned char)luaL_checkunsigned(state, 3);
  3823. RadioButton* instance = getInstance(state);
  3824. instance->setTextRightToLeft(param1, param2);
  3825. return 0;
  3826. }
  3827. else
  3828. {
  3829. lua_pushstring(state, "lua_RadioButton_setTextRightToLeft - Failed to match the given parameters to a valid function signature.");
  3830. lua_error(state);
  3831. }
  3832. break;
  3833. }
  3834. default:
  3835. {
  3836. lua_pushstring(state, "Invalid number of parameters (expected 2 or 3).");
  3837. lua_error(state);
  3838. break;
  3839. }
  3840. }
  3841. return 0;
  3842. }
  3843. int lua_RadioButton_setZIndex(lua_State* state)
  3844. {
  3845. // Get the number of parameters.
  3846. int paramCount = lua_gettop(state);
  3847. // Attempt to match the parameters to a valid binding.
  3848. switch (paramCount)
  3849. {
  3850. case 2:
  3851. {
  3852. if ((lua_type(state, 1) == LUA_TUSERDATA) &&
  3853. lua_type(state, 2) == LUA_TNUMBER)
  3854. {
  3855. // Get parameter 1 off the stack.
  3856. int param1 = (int)luaL_checkint(state, 2);
  3857. RadioButton* instance = getInstance(state);
  3858. instance->setZIndex(param1);
  3859. return 0;
  3860. }
  3861. else
  3862. {
  3863. lua_pushstring(state, "lua_RadioButton_setZIndex - Failed to match the given parameters to a valid function signature.");
  3864. lua_error(state);
  3865. }
  3866. break;
  3867. }
  3868. default:
  3869. {
  3870. lua_pushstring(state, "Invalid number of parameters (expected 2).");
  3871. lua_error(state);
  3872. break;
  3873. }
  3874. }
  3875. return 0;
  3876. }
  3877. int lua_RadioButton_static_ANIMATE_OPACITY(lua_State* state)
  3878. {
  3879. // Validate the number of parameters.
  3880. if (lua_gettop(state) > 0)
  3881. {
  3882. lua_pushstring(state, "Invalid number of parameters (expected 0).");
  3883. lua_error(state);
  3884. }
  3885. int result = RadioButton::ANIMATE_OPACITY;
  3886. // Push the return value onto the stack.
  3887. lua_pushinteger(state, result);
  3888. return 1;
  3889. }
  3890. int lua_RadioButton_static_ANIMATE_POSITION(lua_State* state)
  3891. {
  3892. // Validate the number of parameters.
  3893. if (lua_gettop(state) > 0)
  3894. {
  3895. lua_pushstring(state, "Invalid number of parameters (expected 0).");
  3896. lua_error(state);
  3897. }
  3898. int result = RadioButton::ANIMATE_POSITION;
  3899. // Push the return value onto the stack.
  3900. lua_pushinteger(state, result);
  3901. return 1;
  3902. }
  3903. int lua_RadioButton_static_ANIMATE_POSITION_X(lua_State* state)
  3904. {
  3905. // Validate the number of parameters.
  3906. if (lua_gettop(state) > 0)
  3907. {
  3908. lua_pushstring(state, "Invalid number of parameters (expected 0).");
  3909. lua_error(state);
  3910. }
  3911. int result = RadioButton::ANIMATE_POSITION_X;
  3912. // Push the return value onto the stack.
  3913. lua_pushinteger(state, result);
  3914. return 1;
  3915. }
  3916. int lua_RadioButton_static_ANIMATE_POSITION_Y(lua_State* state)
  3917. {
  3918. // Validate the number of parameters.
  3919. if (lua_gettop(state) > 0)
  3920. {
  3921. lua_pushstring(state, "Invalid number of parameters (expected 0).");
  3922. lua_error(state);
  3923. }
  3924. int result = RadioButton::ANIMATE_POSITION_Y;
  3925. // Push the return value onto the stack.
  3926. lua_pushinteger(state, result);
  3927. return 1;
  3928. }
  3929. int lua_RadioButton_static_ANIMATE_SIZE(lua_State* state)
  3930. {
  3931. // Validate the number of parameters.
  3932. if (lua_gettop(state) > 0)
  3933. {
  3934. lua_pushstring(state, "Invalid number of parameters (expected 0).");
  3935. lua_error(state);
  3936. }
  3937. int result = RadioButton::ANIMATE_SIZE;
  3938. // Push the return value onto the stack.
  3939. lua_pushinteger(state, result);
  3940. return 1;
  3941. }
  3942. int lua_RadioButton_static_ANIMATE_SIZE_HEIGHT(lua_State* state)
  3943. {
  3944. // Validate the number of parameters.
  3945. if (lua_gettop(state) > 0)
  3946. {
  3947. lua_pushstring(state, "Invalid number of parameters (expected 0).");
  3948. lua_error(state);
  3949. }
  3950. int result = RadioButton::ANIMATE_SIZE_HEIGHT;
  3951. // Push the return value onto the stack.
  3952. lua_pushinteger(state, result);
  3953. return 1;
  3954. }
  3955. int lua_RadioButton_static_ANIMATE_SIZE_WIDTH(lua_State* state)
  3956. {
  3957. // Validate the number of parameters.
  3958. if (lua_gettop(state) > 0)
  3959. {
  3960. lua_pushstring(state, "Invalid number of parameters (expected 0).");
  3961. lua_error(state);
  3962. }
  3963. int result = RadioButton::ANIMATE_SIZE_WIDTH;
  3964. // Push the return value onto the stack.
  3965. lua_pushinteger(state, result);
  3966. return 1;
  3967. }
  3968. int lua_RadioButton_static_create(lua_State* state)
  3969. {
  3970. // Get the number of parameters.
  3971. int paramCount = lua_gettop(state);
  3972. // Attempt to match the parameters to a valid binding.
  3973. switch (paramCount)
  3974. {
  3975. case 2:
  3976. {
  3977. if ((lua_type(state, 1) == LUA_TSTRING || lua_type(state, 1) == LUA_TNIL) &&
  3978. (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TTABLE || lua_type(state, 2) == LUA_TNIL))
  3979. {
  3980. // Get parameter 1 off the stack.
  3981. const char* param1 = ScriptUtil::getString(1, false);
  3982. // Get parameter 2 off the stack.
  3983. Theme::Style* param2 = ScriptUtil::getObjectPointer<Theme::Style>(2, "ThemeStyle", false);
  3984. void* returnPtr = (void*)RadioButton::create(param1, param2);
  3985. if (returnPtr)
  3986. {
  3987. ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
  3988. object->instance = returnPtr;
  3989. object->owns = true;
  3990. luaL_getmetatable(state, "RadioButton");
  3991. lua_setmetatable(state, -2);
  3992. }
  3993. else
  3994. {
  3995. lua_pushnil(state);
  3996. }
  3997. return 1;
  3998. }
  3999. else
  4000. {
  4001. lua_pushstring(state, "lua_RadioButton_static_create - Failed to match the given parameters to a valid function signature.");
  4002. lua_error(state);
  4003. }
  4004. break;
  4005. }
  4006. default:
  4007. {
  4008. lua_pushstring(state, "Invalid number of parameters (expected 2).");
  4009. lua_error(state);
  4010. break;
  4011. }
  4012. }
  4013. return 0;
  4014. }
  4015. }