lua_CheckBox.cpp 178 KB

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