lua_CheckBox.cpp 160 KB

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