lua_RadioButton.cpp 158 KB

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