lua_CheckBox.cpp 156 KB

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