lua_CheckBox.cpp 156 KB

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