lua_CheckBox.cpp 147 KB

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