lua_RadioButton.cpp 159 KB

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