lua_Container.cpp 192 KB

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