lua_CheckBox.cpp 178 KB

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