lua_RadioButton.cpp 184 KB

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