#include "scripting/lua-bindings/auto/axlua_ui_auto.hpp" #include "ui/CocosGUI.h" #include "scripting/lua-bindings/manual/tolua_fix.h" #include "scripting/lua-bindings/manual/LuaBasicConversions.h" int lua_ax_ui_LayoutParameter_clone(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutParameter* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutParameter*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutParameter_clone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutParameter_clone'", nullptr); return 0; } ax::ui::LayoutParameter* ret = cobj->clone(); object_to_luaval(tolua_S, "axui.LayoutParameter",(ax::ui::LayoutParameter*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutParameter:clone",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutParameter_clone'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutParameter_getLayoutType(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutParameter* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutParameter*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutParameter_getLayoutType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutParameter_getLayoutType'", nullptr); return 0; } int ret = (int)cobj->getLayoutType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutParameter:getLayoutType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutParameter_getLayoutType'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutParameter_createCloneInstance(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutParameter* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutParameter*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutParameter_createCloneInstance'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutParameter_createCloneInstance'", nullptr); return 0; } ax::ui::LayoutParameter* ret = cobj->createCloneInstance(); object_to_luaval(tolua_S, "axui.LayoutParameter",(ax::ui::LayoutParameter*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutParameter:createCloneInstance",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutParameter_createCloneInstance'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutParameter_copyProperties(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutParameter* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutParameter*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutParameter_copyProperties'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::LayoutParameter* arg0; ok &= luaval_to_object(tolua_S, 2, "axui.LayoutParameter",&arg0, "axui.LayoutParameter:copyProperties"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutParameter_copyProperties'", nullptr); return 0; } cobj->copyProperties(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutParameter:copyProperties",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutParameter_copyProperties'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutParameter_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.LayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutParameter_create'", nullptr); return 0; } ax::ui::LayoutParameter* ret = ax::ui::LayoutParameter::create(); object_to_luaval(tolua_S, "axui.LayoutParameter",(ax::ui::LayoutParameter*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.LayoutParameter:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutParameter_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutParameter_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutParameter* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutParameter_constructor'", nullptr); return 0; } cobj = new ax::ui::LayoutParameter(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.LayoutParameter"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutParameter:LayoutParameter",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutParameter_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_LayoutParameter_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (LayoutParameter)"); return 0; } int lua_register_ax_ui_LayoutParameter(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.LayoutParameter"); tolua_cclass(tolua_S,"LayoutParameter","axui.LayoutParameter","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"LayoutParameter"); tolua_function(tolua_S,"new",lua_ax_ui_LayoutParameter_constructor); tolua_function(tolua_S,"clone",lua_ax_ui_LayoutParameter_clone); tolua_function(tolua_S,"getLayoutType",lua_ax_ui_LayoutParameter_getLayoutType); tolua_function(tolua_S,"createCloneInstance",lua_ax_ui_LayoutParameter_createCloneInstance); tolua_function(tolua_S,"copyProperties",lua_ax_ui_LayoutParameter_copyProperties); tolua_function(tolua_S,"create", lua_ax_ui_LayoutParameter_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::LayoutParameter).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.LayoutParameter"; g_typeCast[typeName] = "axui.LayoutParameter"; return 1; } int lua_ax_ui_LinearLayoutParameter_setGravity(lua_State* tolua_S) { int argc = 0; ax::ui::LinearLayoutParameter* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LinearLayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LinearLayoutParameter*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LinearLayoutParameter_setGravity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::LinearLayoutParameter::LinearGravity arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.LinearLayoutParameter:setGravity"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LinearLayoutParameter_setGravity'", nullptr); return 0; } cobj->setGravity(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LinearLayoutParameter:setGravity",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LinearLayoutParameter_setGravity'.",&tolua_err); #endif return 0; } int lua_ax_ui_LinearLayoutParameter_getGravity(lua_State* tolua_S) { int argc = 0; ax::ui::LinearLayoutParameter* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LinearLayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LinearLayoutParameter*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LinearLayoutParameter_getGravity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LinearLayoutParameter_getGravity'", nullptr); return 0; } int ret = (int)cobj->getGravity(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LinearLayoutParameter:getGravity",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LinearLayoutParameter_getGravity'.",&tolua_err); #endif return 0; } int lua_ax_ui_LinearLayoutParameter_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.LinearLayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LinearLayoutParameter_create'", nullptr); return 0; } ax::ui::LinearLayoutParameter* ret = ax::ui::LinearLayoutParameter::create(); object_to_luaval(tolua_S, "axui.LinearLayoutParameter",(ax::ui::LinearLayoutParameter*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.LinearLayoutParameter:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LinearLayoutParameter_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_LinearLayoutParameter_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::LinearLayoutParameter* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LinearLayoutParameter_constructor'", nullptr); return 0; } cobj = new ax::ui::LinearLayoutParameter(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.LinearLayoutParameter"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LinearLayoutParameter:LinearLayoutParameter",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LinearLayoutParameter_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_LinearLayoutParameter_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (LinearLayoutParameter)"); return 0; } int lua_register_ax_ui_LinearLayoutParameter(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.LinearLayoutParameter"); tolua_cclass(tolua_S,"LinearLayoutParameter","axui.LinearLayoutParameter","axui.LayoutParameter",nullptr); tolua_beginmodule(tolua_S,"LinearLayoutParameter"); tolua_function(tolua_S,"new",lua_ax_ui_LinearLayoutParameter_constructor); tolua_function(tolua_S,"setGravity",lua_ax_ui_LinearLayoutParameter_setGravity); tolua_function(tolua_S,"getGravity",lua_ax_ui_LinearLayoutParameter_getGravity); tolua_function(tolua_S,"create", lua_ax_ui_LinearLayoutParameter_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::LinearLayoutParameter).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.LinearLayoutParameter"; g_typeCast[typeName] = "axui.LinearLayoutParameter"; return 1; } int lua_ax_ui_RelativeLayoutParameter_setAlign(lua_State* tolua_S) { int argc = 0; ax::ui::RelativeLayoutParameter* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RelativeLayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RelativeLayoutParameter_setAlign'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::RelativeLayoutParameter::RelativeAlign arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RelativeLayoutParameter:setAlign"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RelativeLayoutParameter_setAlign'", nullptr); return 0; } cobj->setAlign(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RelativeLayoutParameter:setAlign",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RelativeLayoutParameter_setAlign'.",&tolua_err); #endif return 0; } int lua_ax_ui_RelativeLayoutParameter_setRelativeToWidgetName(lua_State* tolua_S) { int argc = 0; ax::ui::RelativeLayoutParameter* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RelativeLayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RelativeLayoutParameter_setRelativeToWidgetName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RelativeLayoutParameter:setRelativeToWidgetName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RelativeLayoutParameter_setRelativeToWidgetName'", nullptr); return 0; } cobj->setRelativeToWidgetName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RelativeLayoutParameter:setRelativeToWidgetName",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RelativeLayoutParameter_setRelativeToWidgetName'.",&tolua_err); #endif return 0; } int lua_ax_ui_RelativeLayoutParameter_getRelativeName(lua_State* tolua_S) { int argc = 0; ax::ui::RelativeLayoutParameter* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RelativeLayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RelativeLayoutParameter_getRelativeName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RelativeLayoutParameter_getRelativeName'", nullptr); return 0; } std::string_view ret = cobj->getRelativeName(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RelativeLayoutParameter:getRelativeName",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RelativeLayoutParameter_getRelativeName'.",&tolua_err); #endif return 0; } int lua_ax_ui_RelativeLayoutParameter_getRelativeToWidgetName(lua_State* tolua_S) { int argc = 0; ax::ui::RelativeLayoutParameter* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RelativeLayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RelativeLayoutParameter_getRelativeToWidgetName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RelativeLayoutParameter_getRelativeToWidgetName'", nullptr); return 0; } std::string_view ret = cobj->getRelativeToWidgetName(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RelativeLayoutParameter:getRelativeToWidgetName",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RelativeLayoutParameter_getRelativeToWidgetName'.",&tolua_err); #endif return 0; } int lua_ax_ui_RelativeLayoutParameter_setRelativeName(lua_State* tolua_S) { int argc = 0; ax::ui::RelativeLayoutParameter* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RelativeLayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RelativeLayoutParameter_setRelativeName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RelativeLayoutParameter:setRelativeName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RelativeLayoutParameter_setRelativeName'", nullptr); return 0; } cobj->setRelativeName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RelativeLayoutParameter:setRelativeName",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RelativeLayoutParameter_setRelativeName'.",&tolua_err); #endif return 0; } int lua_ax_ui_RelativeLayoutParameter_getAlign(lua_State* tolua_S) { int argc = 0; ax::ui::RelativeLayoutParameter* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RelativeLayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RelativeLayoutParameter_getAlign'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RelativeLayoutParameter_getAlign'", nullptr); return 0; } int ret = (int)cobj->getAlign(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RelativeLayoutParameter:getAlign",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RelativeLayoutParameter_getAlign'.",&tolua_err); #endif return 0; } int lua_ax_ui_RelativeLayoutParameter_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.RelativeLayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RelativeLayoutParameter_create'", nullptr); return 0; } ax::ui::RelativeLayoutParameter* ret = ax::ui::RelativeLayoutParameter::create(); object_to_luaval(tolua_S, "axui.RelativeLayoutParameter",(ax::ui::RelativeLayoutParameter*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.RelativeLayoutParameter:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RelativeLayoutParameter_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_RelativeLayoutParameter_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::RelativeLayoutParameter* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RelativeLayoutParameter_constructor'", nullptr); return 0; } cobj = new ax::ui::RelativeLayoutParameter(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.RelativeLayoutParameter"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RelativeLayoutParameter:RelativeLayoutParameter",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RelativeLayoutParameter_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_RelativeLayoutParameter_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RelativeLayoutParameter)"); return 0; } int lua_register_ax_ui_RelativeLayoutParameter(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.RelativeLayoutParameter"); tolua_cclass(tolua_S,"RelativeLayoutParameter","axui.RelativeLayoutParameter","axui.LayoutParameter",nullptr); tolua_beginmodule(tolua_S,"RelativeLayoutParameter"); tolua_function(tolua_S,"new",lua_ax_ui_RelativeLayoutParameter_constructor); tolua_function(tolua_S,"setAlign",lua_ax_ui_RelativeLayoutParameter_setAlign); tolua_function(tolua_S,"setRelativeToWidgetName",lua_ax_ui_RelativeLayoutParameter_setRelativeToWidgetName); tolua_function(tolua_S,"getRelativeName",lua_ax_ui_RelativeLayoutParameter_getRelativeName); tolua_function(tolua_S,"getRelativeToWidgetName",lua_ax_ui_RelativeLayoutParameter_getRelativeToWidgetName); tolua_function(tolua_S,"setRelativeName",lua_ax_ui_RelativeLayoutParameter_setRelativeName); tolua_function(tolua_S,"getAlign",lua_ax_ui_RelativeLayoutParameter_getAlign); tolua_function(tolua_S,"create", lua_ax_ui_RelativeLayoutParameter_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::RelativeLayoutParameter).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.RelativeLayoutParameter"; g_typeCast[typeName] = "axui.RelativeLayoutParameter"; return 1; } int lua_ax_ui_Widget_setLayoutComponentEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setLayoutComponentEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setLayoutComponentEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setLayoutComponentEnabled'", nullptr); return 0; } cobj->setLayoutComponentEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setLayoutComponentEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setLayoutComponentEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setSizePercent(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setSizePercent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Widget:setSizePercent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setSizePercent'", nullptr); return 0; } cobj->setSizePercent(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setSizePercent",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setSizePercent'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getCustomSize(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getCustomSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getCustomSize'", nullptr); return 0; } const ax::Vec2& ret = cobj->getCustomSize(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getCustomSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getCustomSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getLeftBoundary(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getLeftBoundary'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getLeftBoundary'", nullptr); return 0; } double ret = cobj->getLeftBoundary(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getLeftBoundary",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getLeftBoundary'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setFlippedX(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setFlippedX'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setFlippedX"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setFlippedX'", nullptr); return 0; } cobj->setFlippedX(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setFlippedX",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setFlippedX'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setCallbackName(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setCallbackName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Widget:setCallbackName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setCallbackName'", nullptr); return 0; } cobj->setCallbackName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setCallbackName",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setCallbackName'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getVirtualRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getVirtualRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getVirtualRenderer'", nullptr); return 0; } ax::Node* ret = cobj->getVirtualRenderer(); object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getVirtualRenderer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getVirtualRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setPropagateTouchEvents(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setPropagateTouchEvents'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setPropagateTouchEvents"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setPropagateTouchEvents'", nullptr); return 0; } cobj->setPropagateTouchEvents(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setPropagateTouchEvents",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setPropagateTouchEvents'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_isUnifySizeEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isUnifySizeEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isUnifySizeEnabled'", nullptr); return 0; } bool ret = cobj->isUnifySizeEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isUnifySizeEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isUnifySizeEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getSizePercent(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getSizePercent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getSizePercent'", nullptr); return 0; } const ax::Vec2& ret = cobj->getSizePercent(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getSizePercent",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getSizePercent'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setPositionPercent(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setPositionPercent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Widget:setPositionPercent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setPositionPercent'", nullptr); return 0; } cobj->setPositionPercent(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setPositionPercent",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setPositionPercent'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setSwallowTouches(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setSwallowTouches'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setSwallowTouches"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setSwallowTouches'", nullptr); return 0; } cobj->setSwallowTouches(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setSwallowTouches",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setSwallowTouches'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getLayoutSize(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getLayoutSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getLayoutSize'", nullptr); return 0; } const ax::Vec2& ret = cobj->getLayoutSize(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getLayoutSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getLayoutSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setHighlighted(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setHighlighted'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setHighlighted"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setHighlighted'", nullptr); return 0; } cobj->setHighlighted(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setHighlighted",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setHighlighted'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setPositionType(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setPositionType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::Widget::PositionType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Widget:setPositionType"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setPositionType'", nullptr); return 0; } cobj->setPositionType(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setPositionType",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setPositionType'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_isIgnoreContentAdaptWithSize(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isIgnoreContentAdaptWithSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isIgnoreContentAdaptWithSize'", nullptr); return 0; } bool ret = cobj->isIgnoreContentAdaptWithSize(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isIgnoreContentAdaptWithSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isIgnoreContentAdaptWithSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getVirtualRendererSize(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getVirtualRendererSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getVirtualRendererSize'", nullptr); return 0; } ax::Vec2 ret = cobj->getVirtualRendererSize(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getVirtualRendererSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getVirtualRendererSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_isHighlighted(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isHighlighted'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isHighlighted'", nullptr); return 0; } bool ret = cobj->isHighlighted(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isHighlighted",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isHighlighted'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getLayoutParameter(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getLayoutParameter'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getLayoutParameter'", nullptr); return 0; } ax::ui::LayoutParameter* ret = cobj->getLayoutParameter(); object_to_luaval(tolua_S, "axui.LayoutParameter",(ax::ui::LayoutParameter*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getLayoutParameter",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getLayoutParameter'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getPositionType(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getPositionType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getPositionType'", nullptr); return 0; } int ret = (int)cobj->getPositionType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getPositionType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getPositionType'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getTopBoundary(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getTopBoundary'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getTopBoundary'", nullptr); return 0; } double ret = cobj->getTopBoundary(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getTopBoundary",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getTopBoundary'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_ignoreContentAdaptWithSize(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_ignoreContentAdaptWithSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:ignoreContentAdaptWithSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_ignoreContentAdaptWithSize'", nullptr); return 0; } cobj->ignoreContentAdaptWithSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:ignoreContentAdaptWithSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_ignoreContentAdaptWithSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_findNextFocusedWidget(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_findNextFocusedWidget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { ax::ui::Widget::FocusDirection arg0; ax::ui::Widget* arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Widget:findNextFocusedWidget"); ok &= luaval_to_object(tolua_S, 3, "axui.Widget",&arg1, "axui.Widget:findNextFocusedWidget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_findNextFocusedWidget'", nullptr); return 0; } ax::ui::Widget* ret = cobj->findNextFocusedWidget(arg0, arg1); object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:findNextFocusedWidget",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_findNextFocusedWidget'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_isEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isEnabled'", nullptr); return 0; } bool ret = cobj->isEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_isFocused(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isFocused'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isFocused'", nullptr); return 0; } bool ret = cobj->isFocused(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isFocused",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isFocused'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getTouchBeganPosition(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getTouchBeganPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getTouchBeganPosition'", nullptr); return 0; } const ax::Vec2& ret = cobj->getTouchBeganPosition(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getTouchBeganPosition",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getTouchBeganPosition'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_isTouchEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isTouchEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isTouchEnabled'", nullptr); return 0; } bool ret = cobj->isTouchEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isTouchEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isTouchEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getCallbackName(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getCallbackName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getCallbackName'", nullptr); return 0; } std::string_view ret = cobj->getCallbackName(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getCallbackName",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getCallbackName'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getActionTag(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getActionTag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getActionTag'", nullptr); return 0; } int ret = cobj->getActionTag(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getActionTag",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getActionTag'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getWorldPosition(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getWorldPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getWorldPosition'", nullptr); return 0; } ax::Vec2 ret = cobj->getWorldPosition(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getWorldPosition",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getWorldPosition'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_isFocusEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isFocusEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isFocusEnabled'", nullptr); return 0; } bool ret = cobj->isFocusEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isFocusEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isFocusEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setFocused(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setFocused'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setFocused"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setFocused'", nullptr); return 0; } cobj->setFocused(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setFocused",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setFocused'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setActionTag(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setActionTag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Widget:setActionTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setActionTag'", nullptr); return 0; } cobj->setActionTag(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setActionTag",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setActionTag'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setTouchEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setTouchEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setTouchEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setTouchEnabled'", nullptr); return 0; } cobj->setTouchEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setTouchEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setTouchEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setFlippedY(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setFlippedY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setFlippedY"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setFlippedY'", nullptr); return 0; } cobj->setFlippedY(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setFlippedY",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setFlippedY'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setEnabled'", nullptr); return 0; } cobj->setEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getRightBoundary(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getRightBoundary'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getRightBoundary'", nullptr); return 0; } double ret = cobj->getRightBoundary(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getRightBoundary",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getRightBoundary'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setBrightStyle(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setBrightStyle'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::Widget::BrightStyle arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Widget:setBrightStyle"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setBrightStyle'", nullptr); return 0; } cobj->setBrightStyle(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setBrightStyle",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setBrightStyle'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setLayoutParameter(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setLayoutParameter'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::LayoutParameter* arg0; ok &= luaval_to_object(tolua_S, 2, "axui.LayoutParameter",&arg0, "axui.Widget:setLayoutParameter"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setLayoutParameter'", nullptr); return 0; } cobj->setLayoutParameter(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setLayoutParameter",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setLayoutParameter'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_clone(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_clone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_clone'", nullptr); return 0; } ax::ui::Widget* ret = cobj->clone(); object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:clone",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_clone'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setFocusEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setFocusEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setFocusEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setFocusEnabled'", nullptr); return 0; } cobj->setFocusEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setFocusEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setFocusEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getBottomBoundary(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getBottomBoundary'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getBottomBoundary'", nullptr); return 0; } double ret = cobj->getBottomBoundary(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getBottomBoundary",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getBottomBoundary'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_isBright(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isBright'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isBright'", nullptr); return 0; } bool ret = cobj->isBright(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isBright",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isBright'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_dispatchFocusEvent(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_dispatchFocusEvent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { ax::ui::Widget* arg0; ax::ui::Widget* arg1; ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.Widget:dispatchFocusEvent"); ok &= luaval_to_object(tolua_S, 3, "axui.Widget",&arg1, "axui.Widget:dispatchFocusEvent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_dispatchFocusEvent'", nullptr); return 0; } cobj->dispatchFocusEvent(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:dispatchFocusEvent",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_dispatchFocusEvent'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setUnifySizeEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setUnifySizeEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setUnifySizeEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setUnifySizeEnabled'", nullptr); return 0; } cobj->setUnifySizeEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setUnifySizeEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setUnifySizeEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_isPropagateTouchEvents(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isPropagateTouchEvents'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isPropagateTouchEvents'", nullptr); return 0; } bool ret = cobj->isPropagateTouchEvents(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isPropagateTouchEvents",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isPropagateTouchEvents'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_hitTest(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_hitTest'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { ax::Vec2 arg0; const ax::Camera* arg1; ax::Vec3* arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Widget:hitTest"); ok &= luaval_to_object(tolua_S, 3, "ax.Camera",&arg1, "axui.Widget:hitTest"); ok &= luaval_to_object(tolua_S, 4, "ax.Vec3",&arg2, "axui.Widget:hitTest"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_hitTest'", nullptr); return 0; } bool ret = cobj->hitTest(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:hitTest",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_hitTest'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_isLayoutComponentEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isLayoutComponentEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isLayoutComponentEnabled'", nullptr); return 0; } bool ret = cobj->isLayoutComponentEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isLayoutComponentEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isLayoutComponentEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_requestFocus(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_requestFocus'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_requestFocus'", nullptr); return 0; } cobj->requestFocus(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:requestFocus",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_requestFocus'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_updateSizeAndPosition(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_updateSizeAndPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Widget:updateSizeAndPosition"); if (!ok) { break; } cobj->updateSizeAndPosition(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 0) { cobj->updateSizeAndPosition(); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:updateSizeAndPosition",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_updateSizeAndPosition'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_onFocusChange(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_onFocusChange'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { ax::ui::Widget* arg0; ax::ui::Widget* arg1; ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.Widget:onFocusChange"); ok &= luaval_to_object(tolua_S, 3, "axui.Widget",&arg1, "axui.Widget:onFocusChange"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_onFocusChange'", nullptr); return 0; } cobj->onFocusChange(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:onFocusChange",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_onFocusChange'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getTouchMovePosition(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getTouchMovePosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getTouchMovePosition'", nullptr); return 0; } const ax::Vec2& ret = cobj->getTouchMovePosition(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getTouchMovePosition",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getTouchMovePosition'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getSizeType(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getSizeType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getSizeType'", nullptr); return 0; } int ret = (int)cobj->getSizeType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getSizeType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getSizeType'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getCallbackType(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getCallbackType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getCallbackType'", nullptr); return 0; } std::string_view ret = cobj->getCallbackType(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getCallbackType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getCallbackType'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getTouchEndPosition(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getTouchEndPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getTouchEndPosition'", nullptr); return 0; } const ax::Vec2& ret = cobj->getTouchEndPosition(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getTouchEndPosition",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getTouchEndPosition'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getPositionPercent(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_getPositionPercent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getPositionPercent'", nullptr); return 0; } const ax::Vec2& ret = cobj->getPositionPercent(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:getPositionPercent",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getPositionPercent'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_propagateTouchEvent(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_propagateTouchEvent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { ax::ui::Widget::TouchEventType arg0; ax::ui::Widget* arg1; ax::Touch* arg2; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Widget:propagateTouchEvent"); ok &= luaval_to_object(tolua_S, 3, "axui.Widget",&arg1, "axui.Widget:propagateTouchEvent"); ok &= luaval_to_object(tolua_S, 4, "ax.Touch",&arg2, "axui.Widget:propagateTouchEvent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_propagateTouchEvent'", nullptr); return 0; } cobj->propagateTouchEvent(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:propagateTouchEvent",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_propagateTouchEvent'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_isFlippedX(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isFlippedX'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isFlippedX'", nullptr); return 0; } bool ret = cobj->isFlippedX(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isFlippedX",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isFlippedX'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_isFlippedY(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isFlippedY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isFlippedY'", nullptr); return 0; } bool ret = cobj->isFlippedY(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isFlippedY",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isFlippedY'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_isClippingParentContainsPoint(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isClippingParentContainsPoint'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Widget:isClippingParentContainsPoint"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isClippingParentContainsPoint'", nullptr); return 0; } bool ret = cobj->isClippingParentContainsPoint(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isClippingParentContainsPoint",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isClippingParentContainsPoint'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setSizeType(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setSizeType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::Widget::SizeType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Widget:setSizeType"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setSizeType'", nullptr); return 0; } cobj->setSizeType(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setSizeType",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setSizeType'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_interceptTouchEvent(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_interceptTouchEvent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { ax::ui::Widget::TouchEventType arg0; ax::ui::Widget* arg1; ax::Touch* arg2; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Widget:interceptTouchEvent"); ok &= luaval_to_object(tolua_S, 3, "axui.Widget",&arg1, "axui.Widget:interceptTouchEvent"); ok &= luaval_to_object(tolua_S, 4, "ax.Touch",&arg2, "axui.Widget:interceptTouchEvent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_interceptTouchEvent'", nullptr); return 0; } cobj->interceptTouchEvent(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:interceptTouchEvent",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_interceptTouchEvent'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setBright(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setBright'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:setBright"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setBright'", nullptr); return 0; } cobj->setBright(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setBright",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setBright'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_setCallbackType(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_setCallbackType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Widget:setCallbackType"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_setCallbackType'", nullptr); return 0; } cobj->setCallbackType(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:setCallbackType",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_setCallbackType'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_isSwallowTouches(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Widget_isSwallowTouches'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_isSwallowTouches'", nullptr); return 0; } bool ret = cobj->isSwallowTouches(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:isSwallowTouches",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_isSwallowTouches'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_enableDpadNavigation(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Widget:enableDpadNavigation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_enableDpadNavigation'", nullptr); return 0; } ax::ui::Widget::enableDpadNavigation(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Widget:enableDpadNavigation",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_enableDpadNavigation'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_getCurrentFocusedWidget(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_getCurrentFocusedWidget'", nullptr); return 0; } ax::ui::Widget* ret = ax::ui::Widget::getCurrentFocusedWidget(); object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Widget:getCurrentFocusedWidget",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_getCurrentFocusedWidget'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Widget",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_create'", nullptr); return 0; } ax::ui::Widget* ret = ax::ui::Widget::create(); object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Widget:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_Widget_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::Widget* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Widget_constructor'", nullptr); return 0; } cobj = new ax::ui::Widget(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.Widget"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Widget:Widget",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Widget_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_Widget_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Widget)"); return 0; } int lua_register_ax_ui_Widget(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.Widget"); tolua_cclass(tolua_S,"Widget","axui.Widget","ax.ProtectedNode",nullptr); tolua_beginmodule(tolua_S,"Widget"); tolua_function(tolua_S,"new",lua_ax_ui_Widget_constructor); tolua_function(tolua_S,"setLayoutComponentEnabled",lua_ax_ui_Widget_setLayoutComponentEnabled); tolua_function(tolua_S,"setSizePercent",lua_ax_ui_Widget_setSizePercent); tolua_function(tolua_S,"getCustomSize",lua_ax_ui_Widget_getCustomSize); tolua_function(tolua_S,"getLeftBoundary",lua_ax_ui_Widget_getLeftBoundary); tolua_function(tolua_S,"setFlippedX",lua_ax_ui_Widget_setFlippedX); tolua_function(tolua_S,"setCallbackName",lua_ax_ui_Widget_setCallbackName); tolua_function(tolua_S,"getVirtualRenderer",lua_ax_ui_Widget_getVirtualRenderer); tolua_function(tolua_S,"setPropagateTouchEvents",lua_ax_ui_Widget_setPropagateTouchEvents); tolua_function(tolua_S,"isUnifySizeEnabled",lua_ax_ui_Widget_isUnifySizeEnabled); tolua_function(tolua_S,"getSizePercent",lua_ax_ui_Widget_getSizePercent); tolua_function(tolua_S,"setPositionPercent",lua_ax_ui_Widget_setPositionPercent); tolua_function(tolua_S,"setSwallowTouches",lua_ax_ui_Widget_setSwallowTouches); tolua_function(tolua_S,"getLayoutSize",lua_ax_ui_Widget_getLayoutSize); tolua_function(tolua_S,"setHighlighted",lua_ax_ui_Widget_setHighlighted); tolua_function(tolua_S,"setPositionType",lua_ax_ui_Widget_setPositionType); tolua_function(tolua_S,"isIgnoreContentAdaptWithSize",lua_ax_ui_Widget_isIgnoreContentAdaptWithSize); tolua_function(tolua_S,"getVirtualRendererSize",lua_ax_ui_Widget_getVirtualRendererSize); tolua_function(tolua_S,"isHighlighted",lua_ax_ui_Widget_isHighlighted); tolua_function(tolua_S,"getLayoutParameter",lua_ax_ui_Widget_getLayoutParameter); tolua_function(tolua_S,"getPositionType",lua_ax_ui_Widget_getPositionType); tolua_function(tolua_S,"getTopBoundary",lua_ax_ui_Widget_getTopBoundary); tolua_function(tolua_S,"ignoreContentAdaptWithSize",lua_ax_ui_Widget_ignoreContentAdaptWithSize); tolua_function(tolua_S,"findNextFocusedWidget",lua_ax_ui_Widget_findNextFocusedWidget); tolua_function(tolua_S,"isEnabled",lua_ax_ui_Widget_isEnabled); tolua_function(tolua_S,"isFocused",lua_ax_ui_Widget_isFocused); tolua_function(tolua_S,"getTouchBeganPosition",lua_ax_ui_Widget_getTouchBeganPosition); tolua_function(tolua_S,"isTouchEnabled",lua_ax_ui_Widget_isTouchEnabled); tolua_function(tolua_S,"getCallbackName",lua_ax_ui_Widget_getCallbackName); tolua_function(tolua_S,"getActionTag",lua_ax_ui_Widget_getActionTag); tolua_function(tolua_S,"getWorldPosition",lua_ax_ui_Widget_getWorldPosition); tolua_function(tolua_S,"isFocusEnabled",lua_ax_ui_Widget_isFocusEnabled); tolua_function(tolua_S,"setFocused",lua_ax_ui_Widget_setFocused); tolua_function(tolua_S,"setActionTag",lua_ax_ui_Widget_setActionTag); tolua_function(tolua_S,"setTouchEnabled",lua_ax_ui_Widget_setTouchEnabled); tolua_function(tolua_S,"setFlippedY",lua_ax_ui_Widget_setFlippedY); tolua_function(tolua_S,"setEnabled",lua_ax_ui_Widget_setEnabled); tolua_function(tolua_S,"getRightBoundary",lua_ax_ui_Widget_getRightBoundary); tolua_function(tolua_S,"setBrightStyle",lua_ax_ui_Widget_setBrightStyle); tolua_function(tolua_S,"setLayoutParameter",lua_ax_ui_Widget_setLayoutParameter); tolua_function(tolua_S,"clone",lua_ax_ui_Widget_clone); tolua_function(tolua_S,"setFocusEnabled",lua_ax_ui_Widget_setFocusEnabled); tolua_function(tolua_S,"getBottomBoundary",lua_ax_ui_Widget_getBottomBoundary); tolua_function(tolua_S,"isBright",lua_ax_ui_Widget_isBright); tolua_function(tolua_S,"dispatchFocusEvent",lua_ax_ui_Widget_dispatchFocusEvent); tolua_function(tolua_S,"setUnifySizeEnabled",lua_ax_ui_Widget_setUnifySizeEnabled); tolua_function(tolua_S,"isPropagateTouchEvents",lua_ax_ui_Widget_isPropagateTouchEvents); tolua_function(tolua_S,"hitTest",lua_ax_ui_Widget_hitTest); tolua_function(tolua_S,"isLayoutComponentEnabled",lua_ax_ui_Widget_isLayoutComponentEnabled); tolua_function(tolua_S,"requestFocus",lua_ax_ui_Widget_requestFocus); tolua_function(tolua_S,"updateSizeAndPosition",lua_ax_ui_Widget_updateSizeAndPosition); tolua_function(tolua_S,"onFocusChange",lua_ax_ui_Widget_onFocusChange); tolua_function(tolua_S,"getTouchMovePosition",lua_ax_ui_Widget_getTouchMovePosition); tolua_function(tolua_S,"getSizeType",lua_ax_ui_Widget_getSizeType); tolua_function(tolua_S,"getCallbackType",lua_ax_ui_Widget_getCallbackType); tolua_function(tolua_S,"getTouchEndPosition",lua_ax_ui_Widget_getTouchEndPosition); tolua_function(tolua_S,"getPositionPercent",lua_ax_ui_Widget_getPositionPercent); tolua_function(tolua_S,"propagateTouchEvent",lua_ax_ui_Widget_propagateTouchEvent); tolua_function(tolua_S,"isFlippedX",lua_ax_ui_Widget_isFlippedX); tolua_function(tolua_S,"isFlippedY",lua_ax_ui_Widget_isFlippedY); tolua_function(tolua_S,"isClippingParentContainsPoint",lua_ax_ui_Widget_isClippingParentContainsPoint); tolua_function(tolua_S,"setSizeType",lua_ax_ui_Widget_setSizeType); tolua_function(tolua_S,"interceptTouchEvent",lua_ax_ui_Widget_interceptTouchEvent); tolua_function(tolua_S,"setBright",lua_ax_ui_Widget_setBright); tolua_function(tolua_S,"setCallbackType",lua_ax_ui_Widget_setCallbackType); tolua_function(tolua_S,"isSwallowTouches",lua_ax_ui_Widget_isSwallowTouches); tolua_function(tolua_S,"enableDpadNavigation", lua_ax_ui_Widget_enableDpadNavigation); tolua_function(tolua_S,"getCurrentFocusedWidget", lua_ax_ui_Widget_getCurrentFocusedWidget); tolua_function(tolua_S,"create", lua_ax_ui_Widget_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::Widget).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.Widget"; g_typeCast[typeName] = "axui.Widget"; return 1; } int lua_ax_ui_Layout_setBackGroundColorVector(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundColorVector'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Layout:setBackGroundColorVector"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundColorVector'", nullptr); return 0; } cobj->setBackGroundColorVector(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundColorVector",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundColorVector'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_setClippingType(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setClippingType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::Layout::ClippingType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Layout:setClippingType"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setClippingType'", nullptr); return 0; } cobj->setClippingType(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setClippingType",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setClippingType'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_setBackGroundColorType(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundColorType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::Layout::BackGroundColorType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Layout:setBackGroundColorType"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundColorType'", nullptr); return 0; } cobj->setBackGroundColorType(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundColorType",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundColorType'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_setLoopFocus(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setLoopFocus'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Layout:setLoopFocus"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setLoopFocus'", nullptr); return 0; } cobj->setLoopFocus(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setLoopFocus",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setLoopFocus'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_setBackGroundImageColor(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundImageColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.Layout:setBackGroundImageColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundImageColor'", nullptr); return 0; } cobj->setBackGroundImageColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundImageColor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundImageColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_getBackGroundColorVector(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundColorVector'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundColorVector'", nullptr); return 0; } const ax::Vec2& ret = cobj->getBackGroundColorVector(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundColorVector",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundColorVector'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_getClippingType(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getClippingType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getClippingType'", nullptr); return 0; } int ret = (int)cobj->getClippingType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getClippingType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getClippingType'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_getRenderFile(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getRenderFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getRenderFile'", nullptr); return 0; } ax::ResourceData ret = cobj->getRenderFile(); resourceData_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getRenderFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getRenderFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_isLoopFocus(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_isLoopFocus'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_isLoopFocus'", nullptr); return 0; } bool ret = cobj->isLoopFocus(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:isLoopFocus",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_isLoopFocus'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_removeBackGroundImage(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_removeBackGroundImage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_removeBackGroundImage'", nullptr); return 0; } cobj->removeBackGroundImage(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:removeBackGroundImage",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_removeBackGroundImage'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_getBackGroundColorOpacity(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundColorOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundColorOpacity'", nullptr); return 0; } uint16_t ret = cobj->getBackGroundColorOpacity(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundColorOpacity",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundColorOpacity'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_isClippingEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_isClippingEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_isClippingEnabled'", nullptr); return 0; } bool ret = cobj->isClippingEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:isClippingEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_isClippingEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_setBackGroundImageOpacity(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundImageOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { uint16_t arg0; ok &= luaval_to_uint16(tolua_S, 2,&arg0, "axui.Layout:setBackGroundImageOpacity"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundImageOpacity'", nullptr); return 0; } cobj->setBackGroundImageOpacity(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundImageOpacity",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundImageOpacity'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_setBackGroundImage(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundImage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Layout:setBackGroundImage"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundImage'", nullptr); return 0; } cobj->setBackGroundImage(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Layout:setBackGroundImage"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Layout:setBackGroundImage"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundImage'", nullptr); return 0; } cobj->setBackGroundImage(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundImage",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundImage'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_setBackGroundColor(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { ax::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.Layout:setBackGroundColor"); if (!ok) { break; } ax::Color3B arg1; ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.Layout:setBackGroundColor"); if (!ok) { break; } cobj->setBackGroundColor(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { ax::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.Layout:setBackGroundColor"); if (!ok) { break; } cobj->setBackGroundColor(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundColor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_requestDoLayout(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_requestDoLayout'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_requestDoLayout'", nullptr); return 0; } cobj->requestDoLayout(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:requestDoLayout",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_requestDoLayout'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_getBackGroundImageCapInsets(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundImageCapInsets'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundImageCapInsets'", nullptr); return 0; } const ax::Rect& ret = cobj->getBackGroundImageCapInsets(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundImageCapInsets",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundImageCapInsets'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_getBackGroundColor(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundColor'", nullptr); return 0; } const ax::Color3B& ret = cobj->getBackGroundColor(); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_setClippingEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setClippingEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Layout:setClippingEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setClippingEnabled'", nullptr); return 0; } cobj->setClippingEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setClippingEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setClippingEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_getBackGroundImageColor(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundImageColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundImageColor'", nullptr); return 0; } const ax::Color3B& ret = cobj->getBackGroundImageColor(); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundImageColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundImageColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_isBackGroundImageScale9Enabled(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_isBackGroundImageScale9Enabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_isBackGroundImageScale9Enabled'", nullptr); return 0; } bool ret = cobj->isBackGroundImageScale9Enabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:isBackGroundImageScale9Enabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_isBackGroundImageScale9Enabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_getBackGroundColorType(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundColorType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundColorType'", nullptr); return 0; } int ret = (int)cobj->getBackGroundColorType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundColorType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundColorType'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_getBackGroundEndColor(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundEndColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundEndColor'", nullptr); return 0; } const ax::Color3B& ret = cobj->getBackGroundEndColor(); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundEndColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundEndColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_setBackGroundColorOpacity(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundColorOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { uint16_t arg0; ok &= luaval_to_uint16(tolua_S, 2,&arg0, "axui.Layout:setBackGroundColorOpacity"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundColorOpacity'", nullptr); return 0; } cobj->setBackGroundColorOpacity(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundColorOpacity",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundColorOpacity'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_getBackGroundImageOpacity(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundImageOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundImageOpacity'", nullptr); return 0; } uint16_t ret = cobj->getBackGroundImageOpacity(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundImageOpacity",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundImageOpacity'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_isPassFocusToChild(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_isPassFocusToChild'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_isPassFocusToChild'", nullptr); return 0; } bool ret = cobj->isPassFocusToChild(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:isPassFocusToChild",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_isPassFocusToChild'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_setBackGroundImageCapInsets(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundImageCapInsets'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Layout:setBackGroundImageCapInsets"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundImageCapInsets'", nullptr); return 0; } cobj->setBackGroundImageCapInsets(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundImageCapInsets",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundImageCapInsets'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_getBackGroundImageTextureSize(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundImageTextureSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundImageTextureSize'", nullptr); return 0; } const ax::Vec2& ret = cobj->getBackGroundImageTextureSize(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundImageTextureSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundImageTextureSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_forceDoLayout(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_forceDoLayout'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_forceDoLayout'", nullptr); return 0; } cobj->forceDoLayout(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:forceDoLayout",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_forceDoLayout'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_getLayoutType(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getLayoutType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getLayoutType'", nullptr); return 0; } int ret = (int)cobj->getLayoutType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getLayoutType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getLayoutType'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_setPassFocusToChild(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setPassFocusToChild'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Layout:setPassFocusToChild"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setPassFocusToChild'", nullptr); return 0; } cobj->setPassFocusToChild(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setPassFocusToChild",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setPassFocusToChild'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_getBackGroundStartColor(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_getBackGroundStartColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_getBackGroundStartColor'", nullptr); return 0; } const ax::Color3B& ret = cobj->getBackGroundStartColor(); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:getBackGroundStartColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_getBackGroundStartColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_setBackGroundImageScale9Enabled(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setBackGroundImageScale9Enabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Layout:setBackGroundImageScale9Enabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setBackGroundImageScale9Enabled'", nullptr); return 0; } cobj->setBackGroundImageScale9Enabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setBackGroundImageScale9Enabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setBackGroundImageScale9Enabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_setLayoutType(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Layout_setLayoutType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::Layout::Type arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Layout:setLayoutType"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_setLayoutType'", nullptr); return 0; } cobj->setLayoutType(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:setLayoutType",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_setLayoutType'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_create'", nullptr); return 0; } ax::ui::Layout* ret = ax::ui::Layout::create(); object_to_luaval(tolua_S, "axui.Layout",(ax::ui::Layout*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Layout:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_createInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Layout",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_createInstance'", nullptr); return 0; } ax::Ref* ret = ax::ui::Layout::createInstance(); object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Layout:createInstance",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_createInstance'.",&tolua_err); #endif return 0; } int lua_ax_ui_Layout_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::Layout* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Layout_constructor'", nullptr); return 0; } cobj = new ax::ui::Layout(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.Layout"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Layout:Layout",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Layout_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_Layout_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Layout)"); return 0; } int lua_register_ax_ui_Layout(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.Layout"); tolua_cclass(tolua_S,"Layout","axui.Layout","axui.Widget",nullptr); tolua_beginmodule(tolua_S,"Layout"); tolua_function(tolua_S,"new",lua_ax_ui_Layout_constructor); tolua_function(tolua_S,"setBackGroundColorVector",lua_ax_ui_Layout_setBackGroundColorVector); tolua_function(tolua_S,"setClippingType",lua_ax_ui_Layout_setClippingType); tolua_function(tolua_S,"setBackGroundColorType",lua_ax_ui_Layout_setBackGroundColorType); tolua_function(tolua_S,"setLoopFocus",lua_ax_ui_Layout_setLoopFocus); tolua_function(tolua_S,"setBackGroundImageColor",lua_ax_ui_Layout_setBackGroundImageColor); tolua_function(tolua_S,"getBackGroundColorVector",lua_ax_ui_Layout_getBackGroundColorVector); tolua_function(tolua_S,"getClippingType",lua_ax_ui_Layout_getClippingType); tolua_function(tolua_S,"getRenderFile",lua_ax_ui_Layout_getRenderFile); tolua_function(tolua_S,"isLoopFocus",lua_ax_ui_Layout_isLoopFocus); tolua_function(tolua_S,"removeBackGroundImage",lua_ax_ui_Layout_removeBackGroundImage); tolua_function(tolua_S,"getBackGroundColorOpacity",lua_ax_ui_Layout_getBackGroundColorOpacity); tolua_function(tolua_S,"isClippingEnabled",lua_ax_ui_Layout_isClippingEnabled); tolua_function(tolua_S,"setBackGroundImageOpacity",lua_ax_ui_Layout_setBackGroundImageOpacity); tolua_function(tolua_S,"setBackGroundImage",lua_ax_ui_Layout_setBackGroundImage); tolua_function(tolua_S,"setBackGroundColor",lua_ax_ui_Layout_setBackGroundColor); tolua_function(tolua_S,"requestDoLayout",lua_ax_ui_Layout_requestDoLayout); tolua_function(tolua_S,"getBackGroundImageCapInsets",lua_ax_ui_Layout_getBackGroundImageCapInsets); tolua_function(tolua_S,"getBackGroundColor",lua_ax_ui_Layout_getBackGroundColor); tolua_function(tolua_S,"setClippingEnabled",lua_ax_ui_Layout_setClippingEnabled); tolua_function(tolua_S,"getBackGroundImageColor",lua_ax_ui_Layout_getBackGroundImageColor); tolua_function(tolua_S,"isBackGroundImageScale9Enabled",lua_ax_ui_Layout_isBackGroundImageScale9Enabled); tolua_function(tolua_S,"getBackGroundColorType",lua_ax_ui_Layout_getBackGroundColorType); tolua_function(tolua_S,"getBackGroundEndColor",lua_ax_ui_Layout_getBackGroundEndColor); tolua_function(tolua_S,"setBackGroundColorOpacity",lua_ax_ui_Layout_setBackGroundColorOpacity); tolua_function(tolua_S,"getBackGroundImageOpacity",lua_ax_ui_Layout_getBackGroundImageOpacity); tolua_function(tolua_S,"isPassFocusToChild",lua_ax_ui_Layout_isPassFocusToChild); tolua_function(tolua_S,"setBackGroundImageCapInsets",lua_ax_ui_Layout_setBackGroundImageCapInsets); tolua_function(tolua_S,"getBackGroundImageTextureSize",lua_ax_ui_Layout_getBackGroundImageTextureSize); tolua_function(tolua_S,"forceDoLayout",lua_ax_ui_Layout_forceDoLayout); tolua_function(tolua_S,"getLayoutType",lua_ax_ui_Layout_getLayoutType); tolua_function(tolua_S,"setPassFocusToChild",lua_ax_ui_Layout_setPassFocusToChild); tolua_function(tolua_S,"getBackGroundStartColor",lua_ax_ui_Layout_getBackGroundStartColor); tolua_function(tolua_S,"setBackGroundImageScale9Enabled",lua_ax_ui_Layout_setBackGroundImageScale9Enabled); tolua_function(tolua_S,"setLayoutType",lua_ax_ui_Layout_setLayoutType); tolua_function(tolua_S,"create", lua_ax_ui_Layout_create); tolua_function(tolua_S,"createInstance", lua_ax_ui_Layout_createInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::Layout).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.Layout"; g_typeCast[typeName] = "axui.Layout"; return 1; } int lua_ax_ui_Button_getNormalTextureSize(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getNormalTextureSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getNormalTextureSize'", nullptr); return 0; } ax::Vec2 ret = cobj->getNormalTextureSize(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getNormalTextureSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getNormalTextureSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_getTitleText(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getTitleText'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getTitleText'", nullptr); return 0; } std::string_view ret = cobj->getTitleText(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getTitleText",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getTitleText'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_setTitleLabel(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setTitleLabel'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Label* arg0; ok &= luaval_to_object(tolua_S, 2, "ax.Label",&arg0, "axui.Button:setTitleLabel"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setTitleLabel'", nullptr); return 0; } cobj->setTitleLabel(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setTitleLabel",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setTitleLabel'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_setTitleFontSize(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setTitleFontSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Button:setTitleFontSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setTitleFontSize'", nullptr); return 0; } cobj->setTitleFontSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setTitleFontSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setTitleFontSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_resetPressedRender(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_resetPressedRender'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_resetPressedRender'", nullptr); return 0; } cobj->resetPressedRender(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:resetPressedRender",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_resetPressedRender'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_setScale9Enabled(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setScale9Enabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Button:setScale9Enabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setScale9Enabled'", nullptr); return 0; } cobj->setScale9Enabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setScale9Enabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setScale9Enabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_resetDisabledRender(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_resetDisabledRender'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_resetDisabledRender'", nullptr); return 0; } cobj->resetDisabledRender(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:resetDisabledRender",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_resetDisabledRender'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_getTitleRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getTitleRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getTitleRenderer'", nullptr); return 0; } ax::Label* ret = cobj->getTitleRenderer(); object_to_luaval(tolua_S, "ax.Label",(ax::Label*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getTitleRenderer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getTitleRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_getRendererClicked(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getRendererClicked'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getRendererClicked'", nullptr); return 0; } ax::ui::Scale9Sprite* ret = cobj->getRendererClicked(); object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getRendererClicked",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getRendererClicked'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_getDisabledFile(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getDisabledFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getDisabledFile'", nullptr); return 0; } ax::ResourceData ret = cobj->getDisabledFile(); resourceData_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getDisabledFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getDisabledFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_getZoomScale(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getZoomScale'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getZoomScale'", nullptr); return 0; } double ret = cobj->getZoomScale(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getZoomScale",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getZoomScale'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_getCapInsetsDisabledRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getCapInsetsDisabledRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getCapInsetsDisabledRenderer'", nullptr); return 0; } const ax::Rect& ret = cobj->getCapInsetsDisabledRenderer(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getCapInsetsDisabledRenderer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getCapInsetsDisabledRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_setTitleColor(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setTitleColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.Button:setTitleColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setTitleColor'", nullptr); return 0; } cobj->setTitleColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setTitleColor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setTitleColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_getNormalFile(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getNormalFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getNormalFile'", nullptr); return 0; } ax::ResourceData ret = cobj->getNormalFile(); resourceData_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getNormalFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getNormalFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_resetNormalRender(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_resetNormalRender'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_resetNormalRender'", nullptr); return 0; } cobj->resetNormalRender(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:resetNormalRender",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_resetNormalRender'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_getRendererDisabled(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getRendererDisabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getRendererDisabled'", nullptr); return 0; } ax::ui::Scale9Sprite* ret = cobj->getRendererDisabled(); object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getRendererDisabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getRendererDisabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_setCapInsetsDisabledRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setCapInsetsDisabledRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Button:setCapInsetsDisabledRenderer"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setCapInsetsDisabledRenderer'", nullptr); return 0; } cobj->setCapInsetsDisabledRenderer(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setCapInsetsDisabledRenderer",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setCapInsetsDisabledRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_setCapInsets(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setCapInsets'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Button:setCapInsets"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setCapInsets'", nullptr); return 0; } cobj->setCapInsets(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setCapInsets",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setCapInsets'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_loadTextureDisabled(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_loadTextureDisabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTextureDisabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTextureDisabled'", nullptr); return 0; } cobj->loadTextureDisabled(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTextureDisabled"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Button:loadTextureDisabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTextureDisabled'", nullptr); return 0; } cobj->loadTextureDisabled(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:loadTextureDisabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_loadTextureDisabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_init(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_init'", nullptr); return 0; } bool ret = cobj->init(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 2) { std::string_view arg0; std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:init"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Button:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 3) { std::string_view arg0; std::string_view arg1; std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:init"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Button:init"); ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.Button:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 4) { std::string_view arg0; std::string_view arg1; std::string_view arg2; ax::ui::Widget::TextureResType arg3; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:init"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Button:init"); ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.Button:init"); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "axui.Button:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:init",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_init'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_setTitleText(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setTitleText'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:setTitleText"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setTitleText'", nullptr); return 0; } cobj->setTitleText(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setTitleText",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setTitleText'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_setCapInsetsNormalRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setCapInsetsNormalRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Button:setCapInsetsNormalRenderer"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setCapInsetsNormalRenderer'", nullptr); return 0; } cobj->setCapInsetsNormalRenderer(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setCapInsetsNormalRenderer",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setCapInsetsNormalRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_loadTexturePressed(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_loadTexturePressed'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTexturePressed"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTexturePressed'", nullptr); return 0; } cobj->loadTexturePressed(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTexturePressed"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Button:loadTexturePressed"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTexturePressed'", nullptr); return 0; } cobj->loadTexturePressed(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:loadTexturePressed",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_loadTexturePressed'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_setTitleFontName(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setTitleFontName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:setTitleFontName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setTitleFontName'", nullptr); return 0; } cobj->setTitleFontName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setTitleFontName",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setTitleFontName'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_getCapInsetsNormalRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getCapInsetsNormalRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getCapInsetsNormalRenderer'", nullptr); return 0; } const ax::Rect& ret = cobj->getCapInsetsNormalRenderer(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getCapInsetsNormalRenderer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getCapInsetsNormalRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_setTitleAlignment(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setTitleAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { ax::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Button:setTitleAlignment"); if (!ok) { break; } ax::TextVAlignment arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Button:setTitleAlignment"); if (!ok) { break; } cobj->setTitleAlignment(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { ax::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Button:setTitleAlignment"); if (!ok) { break; } cobj->setTitleAlignment(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setTitleAlignment",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setTitleAlignment'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_getCapInsetsPressedRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getCapInsetsPressedRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getCapInsetsPressedRenderer'", nullptr); return 0; } const ax::Rect& ret = cobj->getCapInsetsPressedRenderer(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getCapInsetsPressedRenderer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getCapInsetsPressedRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_loadTextures(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_loadTextures'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string_view arg0; std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTextures"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Button:loadTextures"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTextures'", nullptr); return 0; } cobj->loadTextures(arg0, arg1); lua_settop(tolua_S, 1); return 1; } if (argc == 3) { std::string_view arg0; std::string_view arg1; std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTextures"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Button:loadTextures"); ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.Button:loadTextures"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTextures'", nullptr); return 0; } cobj->loadTextures(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } if (argc == 4) { std::string_view arg0; std::string_view arg1; std::string_view arg2; ax::ui::Widget::TextureResType arg3; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTextures"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Button:loadTextures"); ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.Button:loadTextures"); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "axui.Button:loadTextures"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTextures'", nullptr); return 0; } cobj->loadTextures(arg0, arg1, arg2, arg3); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:loadTextures",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_loadTextures'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_isScale9Enabled(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_isScale9Enabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_isScale9Enabled'", nullptr); return 0; } bool ret = cobj->isScale9Enabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:isScale9Enabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_isScale9Enabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_loadTextureNormal(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_loadTextureNormal'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTextureNormal"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTextureNormal'", nullptr); return 0; } cobj->loadTextureNormal(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:loadTextureNormal"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Button:loadTextureNormal"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_loadTextureNormal'", nullptr); return 0; } cobj->loadTextureNormal(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:loadTextureNormal",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_loadTextureNormal'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_setCapInsetsPressedRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setCapInsetsPressedRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Button:setCapInsetsPressedRenderer"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setCapInsetsPressedRenderer'", nullptr); return 0; } cobj->setCapInsetsPressedRenderer(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setCapInsetsPressedRenderer",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setCapInsetsPressedRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_getPressedFile(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getPressedFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getPressedFile'", nullptr); return 0; } ax::ResourceData ret = cobj->getPressedFile(); resourceData_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getPressedFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getPressedFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_getTitleLabel(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getTitleLabel'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getTitleLabel'", nullptr); return 0; } ax::Label* ret = cobj->getTitleLabel(); object_to_luaval(tolua_S, "ax.Label",(ax::Label*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getTitleLabel",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getTitleLabel'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_getTitleFontSize(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getTitleFontSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getTitleFontSize'", nullptr); return 0; } double ret = cobj->getTitleFontSize(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getTitleFontSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getTitleFontSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_getRendererNormal(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getRendererNormal'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getRendererNormal'", nullptr); return 0; } ax::ui::Scale9Sprite* ret = cobj->getRendererNormal(); object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getRendererNormal",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getRendererNormal'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_getTitleFontName(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getTitleFontName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getTitleFontName'", nullptr); return 0; } std::string_view ret = cobj->getTitleFontName(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getTitleFontName",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getTitleFontName'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_getTitleColor(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_getTitleColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_getTitleColor'", nullptr); return 0; } ax::Color3B ret = cobj->getTitleColor(); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:getTitleColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_getTitleColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_setPressedActionEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setPressedActionEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Button:setPressedActionEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setPressedActionEnabled'", nullptr); return 0; } cobj->setPressedActionEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setPressedActionEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setPressedActionEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_setZoomScale(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Button*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Button_setZoomScale'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Button:setZoomScale"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_setZoomScale'", nullptr); return 0; } cobj->setZoomScale(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:setZoomScale",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_setZoomScale'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:create"); if (!ok) { break; } ax::ui::Button* ret = ax::ui::Button::create(arg0); object_to_luaval(tolua_S, "axui.Button",(ax::ui::Button*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Button:create"); if (!ok) { break; } ax::ui::Button* ret = ax::ui::Button::create(arg0, arg1); object_to_luaval(tolua_S, "axui.Button",(ax::ui::Button*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Button:create"); if (!ok) { break; } std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.Button:create"); if (!ok) { break; } ax::ui::Button* ret = ax::ui::Button::create(arg0, arg1, arg2); object_to_luaval(tolua_S, "axui.Button",(ax::ui::Button*)ret); return 1; } } while (0); ok = true; do { if (argc == 4) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Button:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Button:create"); if (!ok) { break; } std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.Button:create"); if (!ok) { break; } ax::ui::Widget::TextureResType arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "axui.Button:create"); if (!ok) { break; } ax::ui::Button* ret = ax::ui::Button::create(arg0, arg1, arg2, arg3); object_to_luaval(tolua_S, "axui.Button",(ax::ui::Button*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { ax::ui::Button* ret = ax::ui::Button::create(); object_to_luaval(tolua_S, "axui.Button",(ax::ui::Button*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.Button:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_createInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Button",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_createInstance'", nullptr); return 0; } ax::Ref* ret = ax::ui::Button::createInstance(); object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Button:createInstance",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_createInstance'.",&tolua_err); #endif return 0; } int lua_ax_ui_Button_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::Button* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Button_constructor'", nullptr); return 0; } cobj = new ax::ui::Button(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.Button"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Button:Button",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Button_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_Button_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Button)"); return 0; } int lua_register_ax_ui_Button(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.Button"); tolua_cclass(tolua_S,"Button","axui.Button","axui.Widget",nullptr); tolua_beginmodule(tolua_S,"Button"); tolua_function(tolua_S,"new",lua_ax_ui_Button_constructor); tolua_function(tolua_S,"getNormalTextureSize",lua_ax_ui_Button_getNormalTextureSize); tolua_function(tolua_S,"getTitleText",lua_ax_ui_Button_getTitleText); tolua_function(tolua_S,"setTitleLabel",lua_ax_ui_Button_setTitleLabel); tolua_function(tolua_S,"setTitleFontSize",lua_ax_ui_Button_setTitleFontSize); tolua_function(tolua_S,"resetPressedRender",lua_ax_ui_Button_resetPressedRender); tolua_function(tolua_S,"setScale9Enabled",lua_ax_ui_Button_setScale9Enabled); tolua_function(tolua_S,"resetDisabledRender",lua_ax_ui_Button_resetDisabledRender); tolua_function(tolua_S,"getTitleRenderer",lua_ax_ui_Button_getTitleRenderer); tolua_function(tolua_S,"getRendererClicked",lua_ax_ui_Button_getRendererClicked); tolua_function(tolua_S,"getDisabledFile",lua_ax_ui_Button_getDisabledFile); tolua_function(tolua_S,"getZoomScale",lua_ax_ui_Button_getZoomScale); tolua_function(tolua_S,"getCapInsetsDisabledRenderer",lua_ax_ui_Button_getCapInsetsDisabledRenderer); tolua_function(tolua_S,"setTitleColor",lua_ax_ui_Button_setTitleColor); tolua_function(tolua_S,"getNormalFile",lua_ax_ui_Button_getNormalFile); tolua_function(tolua_S,"resetNormalRender",lua_ax_ui_Button_resetNormalRender); tolua_function(tolua_S,"getRendererDisabled",lua_ax_ui_Button_getRendererDisabled); tolua_function(tolua_S,"setCapInsetsDisabledRenderer",lua_ax_ui_Button_setCapInsetsDisabledRenderer); tolua_function(tolua_S,"setCapInsets",lua_ax_ui_Button_setCapInsets); tolua_function(tolua_S,"loadTextureDisabled",lua_ax_ui_Button_loadTextureDisabled); tolua_function(tolua_S,"init",lua_ax_ui_Button_init); tolua_function(tolua_S,"setTitleText",lua_ax_ui_Button_setTitleText); tolua_function(tolua_S,"setCapInsetsNormalRenderer",lua_ax_ui_Button_setCapInsetsNormalRenderer); tolua_function(tolua_S,"loadTexturePressed",lua_ax_ui_Button_loadTexturePressed); tolua_function(tolua_S,"setTitleFontName",lua_ax_ui_Button_setTitleFontName); tolua_function(tolua_S,"getCapInsetsNormalRenderer",lua_ax_ui_Button_getCapInsetsNormalRenderer); tolua_function(tolua_S,"setTitleAlignment",lua_ax_ui_Button_setTitleAlignment); tolua_function(tolua_S,"getCapInsetsPressedRenderer",lua_ax_ui_Button_getCapInsetsPressedRenderer); tolua_function(tolua_S,"loadTextures",lua_ax_ui_Button_loadTextures); tolua_function(tolua_S,"isScale9Enabled",lua_ax_ui_Button_isScale9Enabled); tolua_function(tolua_S,"loadTextureNormal",lua_ax_ui_Button_loadTextureNormal); tolua_function(tolua_S,"setCapInsetsPressedRenderer",lua_ax_ui_Button_setCapInsetsPressedRenderer); tolua_function(tolua_S,"getPressedFile",lua_ax_ui_Button_getPressedFile); tolua_function(tolua_S,"getTitleLabel",lua_ax_ui_Button_getTitleLabel); tolua_function(tolua_S,"getTitleFontSize",lua_ax_ui_Button_getTitleFontSize); tolua_function(tolua_S,"getRendererNormal",lua_ax_ui_Button_getRendererNormal); tolua_function(tolua_S,"getTitleFontName",lua_ax_ui_Button_getTitleFontName); tolua_function(tolua_S,"getTitleColor",lua_ax_ui_Button_getTitleColor); tolua_function(tolua_S,"setPressedActionEnabled",lua_ax_ui_Button_setPressedActionEnabled); tolua_function(tolua_S,"setZoomScale",lua_ax_ui_Button_setZoomScale); tolua_function(tolua_S,"create", lua_ax_ui_Button_create); tolua_function(tolua_S,"createInstance", lua_ax_ui_Button_createInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::Button).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.Button"; g_typeCast[typeName] = "axui.Button"; return 1; } int lua_ax_ui_AbstractCheckButton_getCrossDisabledFile(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getCrossDisabledFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getCrossDisabledFile'", nullptr); return 0; } ax::ResourceData ret = cobj->getCrossDisabledFile(); resourceData_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getCrossDisabledFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getCrossDisabledFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_getBackDisabledFile(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getBackDisabledFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getBackDisabledFile'", nullptr); return 0; } ax::ResourceData ret = cobj->getBackDisabledFile(); resourceData_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getBackDisabledFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getBackDisabledFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_loadTextureBackGroundSelected(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGroundSelected'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureBackGroundSelected"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGroundSelected'", nullptr); return 0; } cobj->loadTextureBackGroundSelected(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureBackGroundSelected"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.AbstractCheckButton:loadTextureBackGroundSelected"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGroundSelected'", nullptr); return 0; } cobj->loadTextureBackGroundSelected(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:loadTextureBackGroundSelected",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGroundSelected'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_loadTextureBackGroundDisabled(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGroundDisabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureBackGroundDisabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGroundDisabled'", nullptr); return 0; } cobj->loadTextureBackGroundDisabled(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureBackGroundDisabled"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.AbstractCheckButton:loadTextureBackGroundDisabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGroundDisabled'", nullptr); return 0; } cobj->loadTextureBackGroundDisabled(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:loadTextureBackGroundDisabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGroundDisabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_getCrossNormalFile(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getCrossNormalFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getCrossNormalFile'", nullptr); return 0; } ax::ResourceData ret = cobj->getCrossNormalFile(); resourceData_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getCrossNormalFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getCrossNormalFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_setSelected(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_setSelected'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.AbstractCheckButton:setSelected"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_setSelected'", nullptr); return 0; } cobj->setSelected(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:setSelected",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_setSelected'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_getBackPressedFile(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getBackPressedFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getBackPressedFile'", nullptr); return 0; } ax::ResourceData ret = cobj->getBackPressedFile(); resourceData_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getBackPressedFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getBackPressedFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_getRendererFrontCrossDisabled(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getRendererFrontCrossDisabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getRendererFrontCrossDisabled'", nullptr); return 0; } ax::Sprite* ret = cobj->getRendererFrontCrossDisabled(); object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getRendererFrontCrossDisabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getRendererFrontCrossDisabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_getRendererBackground(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getRendererBackground'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getRendererBackground'", nullptr); return 0; } ax::Sprite* ret = cobj->getRendererBackground(); object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getRendererBackground",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getRendererBackground'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_loadTextureFrontCross(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_loadTextureFrontCross'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureFrontCross"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureFrontCross'", nullptr); return 0; } cobj->loadTextureFrontCross(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureFrontCross"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.AbstractCheckButton:loadTextureFrontCross"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureFrontCross'", nullptr); return 0; } cobj->loadTextureFrontCross(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:loadTextureFrontCross",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_loadTextureFrontCross'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_getRendererBackgroundDisabled(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getRendererBackgroundDisabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getRendererBackgroundDisabled'", nullptr); return 0; } ax::Sprite* ret = cobj->getRendererBackgroundDisabled(); object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getRendererBackgroundDisabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getRendererBackgroundDisabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_isSelected(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_isSelected'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_isSelected'", nullptr); return 0; } bool ret = cobj->isSelected(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:isSelected",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_isSelected'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_init(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 5) { std::string_view arg0; std::string_view arg1; std::string_view arg2; std::string_view arg3; std::string_view arg4; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:init"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.AbstractCheckButton:init"); ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.AbstractCheckButton:init"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.AbstractCheckButton:init"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.AbstractCheckButton:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 6) { std::string_view arg0; std::string_view arg1; std::string_view arg2; std::string_view arg3; std::string_view arg4; ax::ui::Widget::TextureResType arg5; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:init"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.AbstractCheckButton:init"); ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.AbstractCheckButton:init"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.AbstractCheckButton:init"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.AbstractCheckButton:init"); ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "axui.AbstractCheckButton:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:init",argc, 5); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_init'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_getBackNormalFile(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getBackNormalFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getBackNormalFile'", nullptr); return 0; } ax::ResourceData ret = cobj->getBackNormalFile(); resourceData_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getBackNormalFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getBackNormalFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_loadTextures(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_loadTextures'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 5) { std::string_view arg0; std::string_view arg1; std::string_view arg2; std::string_view arg3; std::string_view arg4; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextures"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.AbstractCheckButton:loadTextures"); ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.AbstractCheckButton:loadTextures"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.AbstractCheckButton:loadTextures"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.AbstractCheckButton:loadTextures"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextures'", nullptr); return 0; } cobj->loadTextures(arg0, arg1, arg2, arg3, arg4); lua_settop(tolua_S, 1); return 1; } if (argc == 6) { std::string_view arg0; std::string_view arg1; std::string_view arg2; std::string_view arg3; std::string_view arg4; ax::ui::Widget::TextureResType arg5; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextures"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.AbstractCheckButton:loadTextures"); ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.AbstractCheckButton:loadTextures"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.AbstractCheckButton:loadTextures"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.AbstractCheckButton:loadTextures"); ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "axui.AbstractCheckButton:loadTextures"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextures'", nullptr); return 0; } cobj->loadTextures(arg0, arg1, arg2, arg3, arg4, arg5); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:loadTextures",argc, 5); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_loadTextures'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_getZoomScale(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getZoomScale'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getZoomScale'", nullptr); return 0; } double ret = cobj->getZoomScale(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getZoomScale",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getZoomScale'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_getRendererFrontCross(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getRendererFrontCross'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getRendererFrontCross'", nullptr); return 0; } ax::Sprite* ret = cobj->getRendererFrontCross(); object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getRendererFrontCross",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getRendererFrontCross'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_getRendererBackgroundSelected(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_getRendererBackgroundSelected'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_getRendererBackgroundSelected'", nullptr); return 0; } ax::Sprite* ret = cobj->getRendererBackgroundSelected(); object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:getRendererBackgroundSelected",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_getRendererBackgroundSelected'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_loadTextureBackGround(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGround'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureBackGround"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGround'", nullptr); return 0; } cobj->loadTextureBackGround(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureBackGround"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.AbstractCheckButton:loadTextureBackGround"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGround'", nullptr); return 0; } cobj->loadTextureBackGround(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:loadTextureBackGround",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_loadTextureBackGround'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_setZoomScale(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_setZoomScale'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.AbstractCheckButton:setZoomScale"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_setZoomScale'", nullptr); return 0; } cobj->setZoomScale(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:setZoomScale",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_setZoomScale'.",&tolua_err); #endif return 0; } int lua_ax_ui_AbstractCheckButton_loadTextureFrontCrossDisabled(lua_State* tolua_S) { int argc = 0; ax::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_AbstractCheckButton_loadTextureFrontCrossDisabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureFrontCrossDisabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureFrontCrossDisabled'", nullptr); return 0; } cobj->loadTextureFrontCrossDisabled(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.AbstractCheckButton:loadTextureFrontCrossDisabled"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.AbstractCheckButton:loadTextureFrontCrossDisabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_AbstractCheckButton_loadTextureFrontCrossDisabled'", nullptr); return 0; } cobj->loadTextureFrontCrossDisabled(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.AbstractCheckButton:loadTextureFrontCrossDisabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_AbstractCheckButton_loadTextureFrontCrossDisabled'.",&tolua_err); #endif return 0; } static int lua_ax_ui_AbstractCheckButton_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (AbstractCheckButton)"); return 0; } int lua_register_ax_ui_AbstractCheckButton(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.AbstractCheckButton"); tolua_cclass(tolua_S,"AbstractCheckButton","axui.AbstractCheckButton","axui.Widget",nullptr); tolua_beginmodule(tolua_S,"AbstractCheckButton"); tolua_function(tolua_S,"getCrossDisabledFile",lua_ax_ui_AbstractCheckButton_getCrossDisabledFile); tolua_function(tolua_S,"getBackDisabledFile",lua_ax_ui_AbstractCheckButton_getBackDisabledFile); tolua_function(tolua_S,"loadTextureBackGroundSelected",lua_ax_ui_AbstractCheckButton_loadTextureBackGroundSelected); tolua_function(tolua_S,"loadTextureBackGroundDisabled",lua_ax_ui_AbstractCheckButton_loadTextureBackGroundDisabled); tolua_function(tolua_S,"getCrossNormalFile",lua_ax_ui_AbstractCheckButton_getCrossNormalFile); tolua_function(tolua_S,"setSelected",lua_ax_ui_AbstractCheckButton_setSelected); tolua_function(tolua_S,"getBackPressedFile",lua_ax_ui_AbstractCheckButton_getBackPressedFile); tolua_function(tolua_S,"getRendererFrontCrossDisabled",lua_ax_ui_AbstractCheckButton_getRendererFrontCrossDisabled); tolua_function(tolua_S,"getRendererBackground",lua_ax_ui_AbstractCheckButton_getRendererBackground); tolua_function(tolua_S,"loadTextureFrontCross",lua_ax_ui_AbstractCheckButton_loadTextureFrontCross); tolua_function(tolua_S,"getRendererBackgroundDisabled",lua_ax_ui_AbstractCheckButton_getRendererBackgroundDisabled); tolua_function(tolua_S,"isSelected",lua_ax_ui_AbstractCheckButton_isSelected); tolua_function(tolua_S,"init",lua_ax_ui_AbstractCheckButton_init); tolua_function(tolua_S,"getBackNormalFile",lua_ax_ui_AbstractCheckButton_getBackNormalFile); tolua_function(tolua_S,"loadTextures",lua_ax_ui_AbstractCheckButton_loadTextures); tolua_function(tolua_S,"getZoomScale",lua_ax_ui_AbstractCheckButton_getZoomScale); tolua_function(tolua_S,"getRendererFrontCross",lua_ax_ui_AbstractCheckButton_getRendererFrontCross); tolua_function(tolua_S,"getRendererBackgroundSelected",lua_ax_ui_AbstractCheckButton_getRendererBackgroundSelected); tolua_function(tolua_S,"loadTextureBackGround",lua_ax_ui_AbstractCheckButton_loadTextureBackGround); tolua_function(tolua_S,"setZoomScale",lua_ax_ui_AbstractCheckButton_setZoomScale); tolua_function(tolua_S,"loadTextureFrontCrossDisabled",lua_ax_ui_AbstractCheckButton_loadTextureFrontCrossDisabled); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::AbstractCheckButton).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.AbstractCheckButton"; g_typeCast[typeName] = "axui.AbstractCheckButton"; return 1; } int lua_ax_ui_CheckBox_addEventListener(lua_State* tolua_S) { int argc = 0; ax::ui::CheckBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.CheckBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::CheckBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_CheckBox_addEventListener'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::function arg0; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_CheckBox_addEventListener'", nullptr); return 0; } cobj->addEventListener(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.CheckBox:addEventListener",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_CheckBox_addEventListener'.",&tolua_err); #endif return 0; } int lua_ax_ui_CheckBox_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.CheckBox",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 5) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.CheckBox:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.CheckBox:create"); if (!ok) { break; } std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.CheckBox:create"); if (!ok) { break; } std::string_view arg3; ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.CheckBox:create"); if (!ok) { break; } std::string_view arg4; ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.CheckBox:create"); if (!ok) { break; } ax::ui::CheckBox* ret = ax::ui::CheckBox::create(arg0, arg1, arg2, arg3, arg4); object_to_luaval(tolua_S, "axui.CheckBox",(ax::ui::CheckBox*)ret); return 1; } } while (0); ok = true; do { if (argc == 6) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.CheckBox:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.CheckBox:create"); if (!ok) { break; } std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.CheckBox:create"); if (!ok) { break; } std::string_view arg3; ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.CheckBox:create"); if (!ok) { break; } std::string_view arg4; ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.CheckBox:create"); if (!ok) { break; } ax::ui::Widget::TextureResType arg5; ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "axui.CheckBox:create"); if (!ok) { break; } ax::ui::CheckBox* ret = ax::ui::CheckBox::create(arg0, arg1, arg2, arg3, arg4, arg5); object_to_luaval(tolua_S, "axui.CheckBox",(ax::ui::CheckBox*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { ax::ui::CheckBox* ret = ax::ui::CheckBox::create(); object_to_luaval(tolua_S, "axui.CheckBox",(ax::ui::CheckBox*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.CheckBox:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.CheckBox:create"); if (!ok) { break; } ax::ui::CheckBox* ret = ax::ui::CheckBox::create(arg0, arg1); object_to_luaval(tolua_S, "axui.CheckBox",(ax::ui::CheckBox*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.CheckBox:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.CheckBox:create"); if (!ok) { break; } ax::ui::Widget::TextureResType arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "axui.CheckBox:create"); if (!ok) { break; } ax::ui::CheckBox* ret = ax::ui::CheckBox::create(arg0, arg1, arg2); object_to_luaval(tolua_S, "axui.CheckBox",(ax::ui::CheckBox*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.CheckBox:create",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_CheckBox_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_CheckBox_createInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.CheckBox",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_CheckBox_createInstance'", nullptr); return 0; } ax::Ref* ret = ax::ui::CheckBox::createInstance(); object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.CheckBox:createInstance",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_CheckBox_createInstance'.",&tolua_err); #endif return 0; } int lua_ax_ui_CheckBox_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::CheckBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_CheckBox_constructor'", nullptr); return 0; } cobj = new ax::ui::CheckBox(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.CheckBox"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.CheckBox:CheckBox",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_CheckBox_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_CheckBox_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (CheckBox)"); return 0; } int lua_register_ax_ui_CheckBox(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.CheckBox"); tolua_cclass(tolua_S,"CheckBox","axui.CheckBox","axui.AbstractCheckButton",nullptr); tolua_beginmodule(tolua_S,"CheckBox"); tolua_function(tolua_S,"new",lua_ax_ui_CheckBox_constructor); tolua_function(tolua_S,"addEventListener",lua_ax_ui_CheckBox_addEventListener); tolua_function(tolua_S,"create", lua_ax_ui_CheckBox_create); tolua_function(tolua_S,"createInstance", lua_ax_ui_CheckBox_createInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::CheckBox).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.CheckBox"; g_typeCast[typeName] = "axui.CheckBox"; return 1; } int lua_ax_ui_RadioButton_addEventListener(lua_State* tolua_S) { int argc = 0; ax::ui::RadioButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RadioButton",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RadioButton*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButton_addEventListener'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::function arg0; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButton_addEventListener'", nullptr); return 0; } cobj->addEventListener(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButton:addEventListener",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButton_addEventListener'.",&tolua_err); #endif return 0; } int lua_ax_ui_RadioButton_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.RadioButton",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 5) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RadioButton:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.RadioButton:create"); if (!ok) { break; } std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.RadioButton:create"); if (!ok) { break; } std::string_view arg3; ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RadioButton:create"); if (!ok) { break; } std::string_view arg4; ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RadioButton:create"); if (!ok) { break; } ax::ui::RadioButton* ret = ax::ui::RadioButton::create(arg0, arg1, arg2, arg3, arg4); object_to_luaval(tolua_S, "axui.RadioButton",(ax::ui::RadioButton*)ret); return 1; } } while (0); ok = true; do { if (argc == 6) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RadioButton:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.RadioButton:create"); if (!ok) { break; } std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.RadioButton:create"); if (!ok) { break; } std::string_view arg3; ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RadioButton:create"); if (!ok) { break; } std::string_view arg4; ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RadioButton:create"); if (!ok) { break; } ax::ui::Widget::TextureResType arg5; ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "axui.RadioButton:create"); if (!ok) { break; } ax::ui::RadioButton* ret = ax::ui::RadioButton::create(arg0, arg1, arg2, arg3, arg4, arg5); object_to_luaval(tolua_S, "axui.RadioButton",(ax::ui::RadioButton*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { ax::ui::RadioButton* ret = ax::ui::RadioButton::create(); object_to_luaval(tolua_S, "axui.RadioButton",(ax::ui::RadioButton*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RadioButton:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.RadioButton:create"); if (!ok) { break; } ax::ui::RadioButton* ret = ax::ui::RadioButton::create(arg0, arg1); object_to_luaval(tolua_S, "axui.RadioButton",(ax::ui::RadioButton*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RadioButton:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.RadioButton:create"); if (!ok) { break; } ax::ui::Widget::TextureResType arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "axui.RadioButton:create"); if (!ok) { break; } ax::ui::RadioButton* ret = ax::ui::RadioButton::create(arg0, arg1, arg2); object_to_luaval(tolua_S, "axui.RadioButton",(ax::ui::RadioButton*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.RadioButton:create",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButton_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_RadioButton_createInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.RadioButton",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButton_createInstance'", nullptr); return 0; } ax::Ref* ret = ax::ui::RadioButton::createInstance(); object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.RadioButton:createInstance",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButton_createInstance'.",&tolua_err); #endif return 0; } int lua_ax_ui_RadioButton_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::RadioButton* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButton_constructor'", nullptr); return 0; } cobj = new ax::ui::RadioButton(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.RadioButton"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButton:RadioButton",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButton_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_RadioButton_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RadioButton)"); return 0; } int lua_register_ax_ui_RadioButton(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.RadioButton"); tolua_cclass(tolua_S,"RadioButton","axui.RadioButton","axui.AbstractCheckButton",nullptr); tolua_beginmodule(tolua_S,"RadioButton"); tolua_function(tolua_S,"new",lua_ax_ui_RadioButton_constructor); tolua_function(tolua_S,"addEventListener",lua_ax_ui_RadioButton_addEventListener); tolua_function(tolua_S,"create", lua_ax_ui_RadioButton_create); tolua_function(tolua_S,"createInstance", lua_ax_ui_RadioButton_createInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::RadioButton).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.RadioButton"; g_typeCast[typeName] = "axui.RadioButton"; return 1; } int lua_ax_ui_RadioButtonGroup_removeRadioButton(lua_State* tolua_S) { int argc = 0; ax::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_removeRadioButton'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::RadioButton* arg0; ok &= luaval_to_object(tolua_S, 2, "axui.RadioButton",&arg0, "axui.RadioButtonGroup:removeRadioButton"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_removeRadioButton'", nullptr); return 0; } cobj->removeRadioButton(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:removeRadioButton",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_removeRadioButton'.",&tolua_err); #endif return 0; } int lua_ax_ui_RadioButtonGroup_isAllowedNoSelection(lua_State* tolua_S) { int argc = 0; ax::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_isAllowedNoSelection'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_isAllowedNoSelection'", nullptr); return 0; } bool ret = cobj->isAllowedNoSelection(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:isAllowedNoSelection",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_isAllowedNoSelection'.",&tolua_err); #endif return 0; } int lua_ax_ui_RadioButtonGroup_getSelectedButtonIndex(lua_State* tolua_S) { int argc = 0; ax::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_getSelectedButtonIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_getSelectedButtonIndex'", nullptr); return 0; } int ret = cobj->getSelectedButtonIndex(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:getSelectedButtonIndex",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_getSelectedButtonIndex'.",&tolua_err); #endif return 0; } int lua_ax_ui_RadioButtonGroup_setAllowedNoSelection(lua_State* tolua_S) { int argc = 0; ax::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_setAllowedNoSelection'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RadioButtonGroup:setAllowedNoSelection"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_setAllowedNoSelection'", nullptr); return 0; } cobj->setAllowedNoSelection(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:setAllowedNoSelection",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_setAllowedNoSelection'.",&tolua_err); #endif return 0; } int lua_ax_ui_RadioButtonGroup_setSelectedButtonWithoutEvent(lua_State* tolua_S) { int argc = 0; ax::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_setSelectedButtonWithoutEvent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { ax::ui::RadioButton* arg0; ok &= luaval_to_object(tolua_S, 2, "axui.RadioButton",&arg0, "axui.RadioButtonGroup:setSelectedButtonWithoutEvent"); if (!ok) { break; } cobj->setSelectedButtonWithoutEvent(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RadioButtonGroup:setSelectedButtonWithoutEvent"); if (!ok) { break; } cobj->setSelectedButtonWithoutEvent(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:setSelectedButtonWithoutEvent",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_setSelectedButtonWithoutEvent'.",&tolua_err); #endif return 0; } int lua_ax_ui_RadioButtonGroup_addEventListener(lua_State* tolua_S) { int argc = 0; ax::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_addEventListener'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::function arg0; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_addEventListener'", nullptr); return 0; } cobj->addEventListener(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:addEventListener",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_addEventListener'.",&tolua_err); #endif return 0; } int lua_ax_ui_RadioButtonGroup_removeAllRadioButtons(lua_State* tolua_S) { int argc = 0; ax::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_removeAllRadioButtons'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_removeAllRadioButtons'", nullptr); return 0; } cobj->removeAllRadioButtons(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:removeAllRadioButtons",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_removeAllRadioButtons'.",&tolua_err); #endif return 0; } int lua_ax_ui_RadioButtonGroup_getRadioButtonByIndex(lua_State* tolua_S) { int argc = 0; ax::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_getRadioButtonByIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RadioButtonGroup:getRadioButtonByIndex"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_getRadioButtonByIndex'", nullptr); return 0; } ax::ui::RadioButton* ret = cobj->getRadioButtonByIndex(arg0); object_to_luaval(tolua_S, "axui.RadioButton",(ax::ui::RadioButton*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:getRadioButtonByIndex",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_getRadioButtonByIndex'.",&tolua_err); #endif return 0; } int lua_ax_ui_RadioButtonGroup_getNumberOfRadioButtons(lua_State* tolua_S) { int argc = 0; ax::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_getNumberOfRadioButtons'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_getNumberOfRadioButtons'", nullptr); return 0; } ssize_t ret = cobj->getNumberOfRadioButtons(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:getNumberOfRadioButtons",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_getNumberOfRadioButtons'.",&tolua_err); #endif return 0; } int lua_ax_ui_RadioButtonGroup_addRadioButton(lua_State* tolua_S) { int argc = 0; ax::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_addRadioButton'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::RadioButton* arg0; ok &= luaval_to_object(tolua_S, 2, "axui.RadioButton",&arg0, "axui.RadioButtonGroup:addRadioButton"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_addRadioButton'", nullptr); return 0; } cobj->addRadioButton(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:addRadioButton",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_addRadioButton'.",&tolua_err); #endif return 0; } int lua_ax_ui_RadioButtonGroup_setSelectedButton(lua_State* tolua_S) { int argc = 0; ax::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RadioButtonGroup_setSelectedButton'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { ax::ui::RadioButton* arg0; ok &= luaval_to_object(tolua_S, 2, "axui.RadioButton",&arg0, "axui.RadioButtonGroup:setSelectedButton"); if (!ok) { break; } cobj->setSelectedButton(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RadioButtonGroup:setSelectedButton"); if (!ok) { break; } cobj->setSelectedButton(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:setSelectedButton",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_setSelectedButton'.",&tolua_err); #endif return 0; } int lua_ax_ui_RadioButtonGroup_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_create'", nullptr); return 0; } ax::ui::RadioButtonGroup* ret = ax::ui::RadioButtonGroup::create(); object_to_luaval(tolua_S, "axui.RadioButtonGroup",(ax::ui::RadioButtonGroup*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.RadioButtonGroup:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_RadioButtonGroup_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RadioButtonGroup_constructor'", nullptr); return 0; } cobj = new ax::ui::RadioButtonGroup(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.RadioButtonGroup"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RadioButtonGroup:RadioButtonGroup",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RadioButtonGroup_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_RadioButtonGroup_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RadioButtonGroup)"); return 0; } int lua_register_ax_ui_RadioButtonGroup(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.RadioButtonGroup"); tolua_cclass(tolua_S,"RadioButtonGroup","axui.RadioButtonGroup","axui.Widget",nullptr); tolua_beginmodule(tolua_S,"RadioButtonGroup"); tolua_function(tolua_S,"new",lua_ax_ui_RadioButtonGroup_constructor); tolua_function(tolua_S,"removeRadioButton",lua_ax_ui_RadioButtonGroup_removeRadioButton); tolua_function(tolua_S,"isAllowedNoSelection",lua_ax_ui_RadioButtonGroup_isAllowedNoSelection); tolua_function(tolua_S,"getSelectedButtonIndex",lua_ax_ui_RadioButtonGroup_getSelectedButtonIndex); tolua_function(tolua_S,"setAllowedNoSelection",lua_ax_ui_RadioButtonGroup_setAllowedNoSelection); tolua_function(tolua_S,"setSelectedButtonWithoutEvent",lua_ax_ui_RadioButtonGroup_setSelectedButtonWithoutEvent); tolua_function(tolua_S,"addEventListener",lua_ax_ui_RadioButtonGroup_addEventListener); tolua_function(tolua_S,"removeAllRadioButtons",lua_ax_ui_RadioButtonGroup_removeAllRadioButtons); tolua_function(tolua_S,"getRadioButtonByIndex",lua_ax_ui_RadioButtonGroup_getRadioButtonByIndex); tolua_function(tolua_S,"getNumberOfRadioButtons",lua_ax_ui_RadioButtonGroup_getNumberOfRadioButtons); tolua_function(tolua_S,"addRadioButton",lua_ax_ui_RadioButtonGroup_addRadioButton); tolua_function(tolua_S,"setSelectedButton",lua_ax_ui_RadioButtonGroup_setSelectedButton); tolua_function(tolua_S,"create", lua_ax_ui_RadioButtonGroup_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::RadioButtonGroup).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.RadioButtonGroup"; g_typeCast[typeName] = "axui.RadioButtonGroup"; return 1; } int lua_ax_ui_ImageView_getBlendFunc(lua_State* tolua_S) { int argc = 0; ax::ui::ImageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_getBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_getBlendFunc'", nullptr); return 0; } const ax::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:getBlendFunc",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_getBlendFunc'.",&tolua_err); #endif return 0; } int lua_ax_ui_ImageView_loadTexture(lua_State* tolua_S) { int argc = 0; ax::ui::ImageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_loadTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.ImageView:loadTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_loadTexture'", nullptr); return 0; } cobj->loadTexture(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.ImageView:loadTexture"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.ImageView:loadTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_loadTexture'", nullptr); return 0; } cobj->loadTexture(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:loadTexture",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_loadTexture'.",&tolua_err); #endif return 0; } int lua_ax_ui_ImageView_setBlendFunc(lua_State* tolua_S) { int argc = 0; ax::ui::ImageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_setBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "axui.ImageView:setBlendFunc"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_setBlendFunc'", nullptr); return 0; } cobj->setBlendFunc(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:setBlendFunc",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_setBlendFunc'.",&tolua_err); #endif return 0; } int lua_ax_ui_ImageView_init(lua_State* tolua_S) { int argc = 0; ax::ui::ImageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.ImageView:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_init'", nullptr); return 0; } bool ret = cobj->init(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.ImageView:init"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.ImageView:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:init",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_init'.",&tolua_err); #endif return 0; } int lua_ax_ui_ImageView_setScale9Enabled(lua_State* tolua_S) { int argc = 0; ax::ui::ImageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_setScale9Enabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.ImageView:setScale9Enabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_setScale9Enabled'", nullptr); return 0; } cobj->setScale9Enabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:setScale9Enabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_setScale9Enabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_ImageView_setTextureRect(lua_State* tolua_S) { int argc = 0; ax::ui::ImageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_setTextureRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.ImageView:setTextureRect"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_setTextureRect'", nullptr); return 0; } cobj->setTextureRect(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:setTextureRect",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_setTextureRect'.",&tolua_err); #endif return 0; } int lua_ax_ui_ImageView_setCapInsets(lua_State* tolua_S) { int argc = 0; ax::ui::ImageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_setCapInsets'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.ImageView:setCapInsets"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_setCapInsets'", nullptr); return 0; } cobj->setCapInsets(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:setCapInsets",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_setCapInsets'.",&tolua_err); #endif return 0; } int lua_ax_ui_ImageView_getRenderFile(lua_State* tolua_S) { int argc = 0; ax::ui::ImageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_getRenderFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_getRenderFile'", nullptr); return 0; } ax::ResourceData ret = cobj->getRenderFile(); resourceData_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:getRenderFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_getRenderFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_ImageView_getCapInsets(lua_State* tolua_S) { int argc = 0; ax::ui::ImageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_getCapInsets'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_getCapInsets'", nullptr); return 0; } const ax::Rect& ret = cobj->getCapInsets(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:getCapInsets",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_getCapInsets'.",&tolua_err); #endif return 0; } int lua_ax_ui_ImageView_isScale9Enabled(lua_State* tolua_S) { int argc = 0; ax::ui::ImageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ImageView_isScale9Enabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_isScale9Enabled'", nullptr); return 0; } bool ret = cobj->isScale9Enabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:isScale9Enabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_isScale9Enabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_ImageView_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.ImageView:create"); if (!ok) { break; } ax::ui::ImageView* ret = ax::ui::ImageView::create(arg0); object_to_luaval(tolua_S, "axui.ImageView",(ax::ui::ImageView*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.ImageView:create"); if (!ok) { break; } ax::ui::Widget::TextureResType arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.ImageView:create"); if (!ok) { break; } ax::ui::ImageView* ret = ax::ui::ImageView::create(arg0, arg1); object_to_luaval(tolua_S, "axui.ImageView",(ax::ui::ImageView*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { ax::ui::ImageView* ret = ax::ui::ImageView::create(); object_to_luaval(tolua_S, "axui.ImageView",(ax::ui::ImageView*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.ImageView:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_ImageView_createInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_createInstance'", nullptr); return 0; } ax::Ref* ret = ax::ui::ImageView::createInstance(); object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.ImageView:createInstance",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_createInstance'.",&tolua_err); #endif return 0; } int lua_ax_ui_ImageView_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::ImageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ImageView_constructor'", nullptr); return 0; } cobj = new ax::ui::ImageView(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.ImageView"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ImageView:ImageView",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ImageView_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_ImageView_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ImageView)"); return 0; } int lua_register_ax_ui_ImageView(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.ImageView"); tolua_cclass(tolua_S,"ImageView","axui.ImageView","axui.Widget",nullptr); tolua_beginmodule(tolua_S,"ImageView"); tolua_function(tolua_S,"new",lua_ax_ui_ImageView_constructor); tolua_function(tolua_S,"getBlendFunc",lua_ax_ui_ImageView_getBlendFunc); tolua_function(tolua_S,"loadTexture",lua_ax_ui_ImageView_loadTexture); tolua_function(tolua_S,"setBlendFunc",lua_ax_ui_ImageView_setBlendFunc); tolua_function(tolua_S,"init",lua_ax_ui_ImageView_init); tolua_function(tolua_S,"setScale9Enabled",lua_ax_ui_ImageView_setScale9Enabled); tolua_function(tolua_S,"setTextureRect",lua_ax_ui_ImageView_setTextureRect); tolua_function(tolua_S,"setCapInsets",lua_ax_ui_ImageView_setCapInsets); tolua_function(tolua_S,"getRenderFile",lua_ax_ui_ImageView_getRenderFile); tolua_function(tolua_S,"getCapInsets",lua_ax_ui_ImageView_getCapInsets); tolua_function(tolua_S,"isScale9Enabled",lua_ax_ui_ImageView_isScale9Enabled); tolua_function(tolua_S,"create", lua_ax_ui_ImageView_create); tolua_function(tolua_S,"createInstance", lua_ax_ui_ImageView_createInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::ImageView).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.ImageView"; g_typeCast[typeName] = "axui.ImageView"; return 1; } int lua_ax_ui_Text_enableShadow(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_enableShadow'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_enableShadow'", nullptr); return 0; } cobj->enableShadow(); lua_settop(tolua_S, 1); return 1; } if (argc == 1) { ax::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.Text:enableShadow"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_enableShadow'", nullptr); return 0; } cobj->enableShadow(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { ax::Color4B arg0; ax::Vec2 arg1; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.Text:enableShadow"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "axui.Text:enableShadow"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_enableShadow'", nullptr); return 0; } cobj->enableShadow(arg0, arg1); lua_settop(tolua_S, 1); return 1; } if (argc == 3) { ax::Color4B arg0; ax::Vec2 arg1; int arg2; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.Text:enableShadow"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "axui.Text:enableShadow"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "axui.Text:enableShadow"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_enableShadow'", nullptr); return 0; } cobj->enableShadow(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:enableShadow",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_enableShadow'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_getFontSize(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getFontSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getFontSize'", nullptr); return 0; } double ret = cobj->getFontSize(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getFontSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getFontSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_getString(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getString'", nullptr); return 0; } std::string_view ret = cobj->getString(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getString",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getString'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_disableEffect(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_disableEffect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { ax::LabelEffect arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Text:disableEffect"); if (!ok) { break; } cobj->disableEffect(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 0) { cobj->disableEffect(); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:disableEffect",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_disableEffect'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_getLabelEffectType(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getLabelEffectType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getLabelEffectType'", nullptr); return 0; } int ret = (int)cobj->getLabelEffectType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getLabelEffectType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getLabelEffectType'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_getTextColor(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getTextColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getTextColor'", nullptr); return 0; } const ax::Color4B& ret = cobj->getTextColor(); color4b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getTextColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getTextColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_getBlendFunc(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getBlendFunc'", nullptr); return 0; } const ax::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getBlendFunc",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getBlendFunc'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_setTextVerticalAlignment(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setTextVerticalAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::TextVAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Text:setTextVerticalAlignment"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setTextVerticalAlignment'", nullptr); return 0; } cobj->setTextVerticalAlignment(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setTextVerticalAlignment",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setTextVerticalAlignment'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_setFontName(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setFontName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Text:setFontName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setFontName'", nullptr); return 0; } cobj->setFontName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setFontName",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setFontName'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_setTouchScaleChangeEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setTouchScaleChangeEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Text:setTouchScaleChangeEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setTouchScaleChangeEnabled'", nullptr); return 0; } cobj->setTouchScaleChangeEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setTouchScaleChangeEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setTouchScaleChangeEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_getShadowOffset(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getShadowOffset'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getShadowOffset'", nullptr); return 0; } ax::Vec2 ret = cobj->getShadowOffset(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getShadowOffset",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getShadowOffset'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_setString(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Text:setString"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setString'", nullptr); return 0; } cobj->setString(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setString",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setString'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_getOutlineSize(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getOutlineSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getOutlineSize'", nullptr); return 0; } int ret = cobj->getOutlineSize(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getOutlineSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getOutlineSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_init(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { std::string_view arg0; std::string_view arg1; double arg2; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Text:init"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Text:init"); ok &= luaval_to_number(tolua_S, 4,&arg2, "axui.Text:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:init",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_init'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_getShadowBlurRadius(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getShadowBlurRadius'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getShadowBlurRadius'", nullptr); return 0; } double ret = cobj->getShadowBlurRadius(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getShadowBlurRadius",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getShadowBlurRadius'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_isTouchScaleChangeEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_isTouchScaleChangeEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_isTouchScaleChangeEnabled'", nullptr); return 0; } bool ret = cobj->isTouchScaleChangeEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:isTouchScaleChangeEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_isTouchScaleChangeEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_getFontName(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getFontName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getFontName'", nullptr); return 0; } std::string_view ret = cobj->getFontName(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getFontName",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getFontName'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_setTextAreaSize(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setTextAreaSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Text:setTextAreaSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setTextAreaSize'", nullptr); return 0; } cobj->setTextAreaSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setTextAreaSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setTextAreaSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_getStringLength(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getStringLength'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getStringLength'", nullptr); return 0; } ssize_t ret = cobj->getStringLength(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getStringLength",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getStringLength'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_getAutoRenderSize(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getAutoRenderSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getAutoRenderSize'", nullptr); return 0; } ax::Vec2 ret = cobj->getAutoRenderSize(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getAutoRenderSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getAutoRenderSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_enableOutline(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_enableOutline'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.Text:enableOutline"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_enableOutline'", nullptr); return 0; } cobj->enableOutline(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { ax::Color4B arg0; int arg1; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.Text:enableOutline"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Text:enableOutline"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_enableOutline'", nullptr); return 0; } cobj->enableOutline(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:enableOutline",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_enableOutline'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_getEffectColor(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getEffectColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getEffectColor'", nullptr); return 0; } ax::Color4B ret = cobj->getEffectColor(); color4b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getEffectColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getEffectColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_getType(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getType'", nullptr); return 0; } int ret = (int)cobj->getType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getType'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_getTextHorizontalAlignment(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getTextHorizontalAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getTextHorizontalAlignment'", nullptr); return 0; } int ret = (int)cobj->getTextHorizontalAlignment(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getTextHorizontalAlignment",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getTextHorizontalAlignment'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_isShadowEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_isShadowEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_isShadowEnabled'", nullptr); return 0; } bool ret = cobj->isShadowEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:isShadowEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_isShadowEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_setFontSize(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setFontSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Text:setFontSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setFontSize'", nullptr); return 0; } cobj->setFontSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setFontSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setFontSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_getShadowColor(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getShadowColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getShadowColor'", nullptr); return 0; } ax::Color4B ret = cobj->getShadowColor(); color4b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getShadowColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getShadowColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_setTextColor(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setTextColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.Text:setTextColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setTextColor'", nullptr); return 0; } cobj->setTextColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setTextColor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setTextColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_enableGlow(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_enableGlow'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.Text:enableGlow"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_enableGlow'", nullptr); return 0; } cobj->enableGlow(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:enableGlow",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_enableGlow'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_getLetter(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getLetter'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Text:getLetter"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getLetter'", nullptr); return 0; } ax::Sprite* ret = cobj->getLetter(arg0); object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getLetter",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getLetter'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_setBlendFunc(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "axui.Text:setBlendFunc"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setBlendFunc'", nullptr); return 0; } cobj->setBlendFunc(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setBlendFunc",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setBlendFunc'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_getTextVerticalAlignment(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getTextVerticalAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getTextVerticalAlignment'", nullptr); return 0; } int ret = (int)cobj->getTextVerticalAlignment(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getTextVerticalAlignment",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getTextVerticalAlignment'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_getTextAreaSize(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_getTextAreaSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_getTextAreaSize'", nullptr); return 0; } const ax::Vec2& ret = cobj->getTextAreaSize(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:getTextAreaSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_getTextAreaSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_setTextHorizontalAlignment(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Text*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Text_setTextHorizontalAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Text:setTextHorizontalAlignment"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_setTextHorizontalAlignment'", nullptr); return 0; } cobj->setTextHorizontalAlignment(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:setTextHorizontalAlignment",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_setTextHorizontalAlignment'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 3) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Text:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Text:create"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "axui.Text:create"); if (!ok) { break; } ax::ui::Text* ret = ax::ui::Text::create(arg0, arg1, arg2); object_to_luaval(tolua_S, "axui.Text",(ax::ui::Text*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { ax::ui::Text* ret = ax::ui::Text::create(); object_to_luaval(tolua_S, "axui.Text",(ax::ui::Text*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.Text:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_createInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Text",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_createInstance'", nullptr); return 0; } ax::Ref* ret = ax::ui::Text::createInstance(); object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Text:createInstance",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_createInstance'.",&tolua_err); #endif return 0; } int lua_ax_ui_Text_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::Text* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Text_constructor'", nullptr); return 0; } cobj = new ax::ui::Text(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.Text"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Text:Text",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Text_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_Text_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Text)"); return 0; } int lua_register_ax_ui_Text(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.Text"); tolua_cclass(tolua_S,"Text","axui.Text","axui.Widget",nullptr); tolua_beginmodule(tolua_S,"Text"); tolua_function(tolua_S,"new",lua_ax_ui_Text_constructor); tolua_function(tolua_S,"enableShadow",lua_ax_ui_Text_enableShadow); tolua_function(tolua_S,"getFontSize",lua_ax_ui_Text_getFontSize); tolua_function(tolua_S,"getString",lua_ax_ui_Text_getString); tolua_function(tolua_S,"disableEffect",lua_ax_ui_Text_disableEffect); tolua_function(tolua_S,"getLabelEffectType",lua_ax_ui_Text_getLabelEffectType); tolua_function(tolua_S,"getTextColor",lua_ax_ui_Text_getTextColor); tolua_function(tolua_S,"getBlendFunc",lua_ax_ui_Text_getBlendFunc); tolua_function(tolua_S,"setTextVerticalAlignment",lua_ax_ui_Text_setTextVerticalAlignment); tolua_function(tolua_S,"setFontName",lua_ax_ui_Text_setFontName); tolua_function(tolua_S,"setTouchScaleChangeEnabled",lua_ax_ui_Text_setTouchScaleChangeEnabled); tolua_function(tolua_S,"getShadowOffset",lua_ax_ui_Text_getShadowOffset); tolua_function(tolua_S,"setString",lua_ax_ui_Text_setString); tolua_function(tolua_S,"getOutlineSize",lua_ax_ui_Text_getOutlineSize); tolua_function(tolua_S,"init",lua_ax_ui_Text_init); tolua_function(tolua_S,"getShadowBlurRadius",lua_ax_ui_Text_getShadowBlurRadius); tolua_function(tolua_S,"isTouchScaleChangeEnabled",lua_ax_ui_Text_isTouchScaleChangeEnabled); tolua_function(tolua_S,"getFontName",lua_ax_ui_Text_getFontName); tolua_function(tolua_S,"setTextAreaSize",lua_ax_ui_Text_setTextAreaSize); tolua_function(tolua_S,"getStringLength",lua_ax_ui_Text_getStringLength); tolua_function(tolua_S,"getAutoRenderSize",lua_ax_ui_Text_getAutoRenderSize); tolua_function(tolua_S,"enableOutline",lua_ax_ui_Text_enableOutline); tolua_function(tolua_S,"getEffectColor",lua_ax_ui_Text_getEffectColor); tolua_function(tolua_S,"getType",lua_ax_ui_Text_getType); tolua_function(tolua_S,"getTextHorizontalAlignment",lua_ax_ui_Text_getTextHorizontalAlignment); tolua_function(tolua_S,"isShadowEnabled",lua_ax_ui_Text_isShadowEnabled); tolua_function(tolua_S,"setFontSize",lua_ax_ui_Text_setFontSize); tolua_function(tolua_S,"getShadowColor",lua_ax_ui_Text_getShadowColor); tolua_function(tolua_S,"setTextColor",lua_ax_ui_Text_setTextColor); tolua_function(tolua_S,"enableGlow",lua_ax_ui_Text_enableGlow); tolua_function(tolua_S,"getLetter",lua_ax_ui_Text_getLetter); tolua_function(tolua_S,"setBlendFunc",lua_ax_ui_Text_setBlendFunc); tolua_function(tolua_S,"getTextVerticalAlignment",lua_ax_ui_Text_getTextVerticalAlignment); tolua_function(tolua_S,"getTextAreaSize",lua_ax_ui_Text_getTextAreaSize); tolua_function(tolua_S,"setTextHorizontalAlignment",lua_ax_ui_Text_setTextHorizontalAlignment); tolua_function(tolua_S,"create", lua_ax_ui_Text_create); tolua_function(tolua_S,"createInstance", lua_ax_ui_Text_createInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::Text).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.Text"; g_typeCast[typeName] = "axui.Text"; return 1; } int lua_ax_ui_TextAtlas_getStringLength(lua_State* tolua_S) { int argc = 0; ax::ui::TextAtlas* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextAtlas",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextAtlas_getStringLength'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextAtlas_getStringLength'", nullptr); return 0; } ssize_t ret = cobj->getStringLength(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextAtlas:getStringLength",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_getStringLength'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextAtlas_getString(lua_State* tolua_S) { int argc = 0; ax::ui::TextAtlas* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextAtlas",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextAtlas_getString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextAtlas_getString'", nullptr); return 0; } std::string_view ret = cobj->getString(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextAtlas:getString",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_getString'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextAtlas_setString(lua_State* tolua_S) { int argc = 0; ax::ui::TextAtlas* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextAtlas",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextAtlas_setString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextAtlas:setString"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextAtlas_setString'", nullptr); return 0; } cobj->setString(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextAtlas:setString",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_setString'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextAtlas_getRenderFile(lua_State* tolua_S) { int argc = 0; ax::ui::TextAtlas* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextAtlas",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextAtlas_getRenderFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextAtlas_getRenderFile'", nullptr); return 0; } ax::ResourceData ret = cobj->getRenderFile(); resourceData_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextAtlas:getRenderFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_getRenderFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextAtlas_setProperty(lua_State* tolua_S) { int argc = 0; ax::ui::TextAtlas* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextAtlas",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextAtlas_setProperty'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 5) { std::string_view arg0; std::string_view arg1; int arg2; int arg3; std::string_view arg4; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextAtlas:setProperty"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.TextAtlas:setProperty"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "axui.TextAtlas:setProperty"); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "axui.TextAtlas:setProperty"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.TextAtlas:setProperty"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextAtlas_setProperty'", nullptr); return 0; } cobj->setProperty(arg0, arg1, arg2, arg3, arg4); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextAtlas:setProperty",argc, 5); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_setProperty'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextAtlas_adaptRenderers(lua_State* tolua_S) { int argc = 0; ax::ui::TextAtlas* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextAtlas",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextAtlas_adaptRenderers'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextAtlas_adaptRenderers'", nullptr); return 0; } cobj->adaptRenderers(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextAtlas:adaptRenderers",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_adaptRenderers'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextAtlas_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.TextAtlas",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 5) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextAtlas:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.TextAtlas:create"); if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "axui.TextAtlas:create"); if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "axui.TextAtlas:create"); if (!ok) { break; } std::string_view arg4; ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.TextAtlas:create"); if (!ok) { break; } ax::ui::TextAtlas* ret = ax::ui::TextAtlas::create(arg0, arg1, arg2, arg3, arg4); object_to_luaval(tolua_S, "axui.TextAtlas",(ax::ui::TextAtlas*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { ax::ui::TextAtlas* ret = ax::ui::TextAtlas::create(); object_to_luaval(tolua_S, "axui.TextAtlas",(ax::ui::TextAtlas*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.TextAtlas:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextAtlas_createInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.TextAtlas",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextAtlas_createInstance'", nullptr); return 0; } ax::Ref* ret = ax::ui::TextAtlas::createInstance(); object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.TextAtlas:createInstance",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_createInstance'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextAtlas_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::TextAtlas* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextAtlas_constructor'", nullptr); return 0; } cobj = new ax::ui::TextAtlas(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.TextAtlas"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextAtlas:TextAtlas",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextAtlas_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_TextAtlas_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TextAtlas)"); return 0; } int lua_register_ax_ui_TextAtlas(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.TextAtlas"); tolua_cclass(tolua_S,"TextAtlas","axui.TextAtlas","axui.Widget",nullptr); tolua_beginmodule(tolua_S,"TextAtlas"); tolua_function(tolua_S,"new",lua_ax_ui_TextAtlas_constructor); tolua_function(tolua_S,"getStringLength",lua_ax_ui_TextAtlas_getStringLength); tolua_function(tolua_S,"getString",lua_ax_ui_TextAtlas_getString); tolua_function(tolua_S,"setString",lua_ax_ui_TextAtlas_setString); tolua_function(tolua_S,"getRenderFile",lua_ax_ui_TextAtlas_getRenderFile); tolua_function(tolua_S,"setProperty",lua_ax_ui_TextAtlas_setProperty); tolua_function(tolua_S,"adaptRenderers",lua_ax_ui_TextAtlas_adaptRenderers); tolua_function(tolua_S,"create", lua_ax_ui_TextAtlas_create); tolua_function(tolua_S,"createInstance", lua_ax_ui_TextAtlas_createInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::TextAtlas).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.TextAtlas"; g_typeCast[typeName] = "axui.TextAtlas"; return 1; } int lua_ax_ui_LoadingBar_setPercent(lua_State* tolua_S) { int argc = 0; ax::ui::LoadingBar* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_setPercent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LoadingBar:setPercent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_setPercent'", nullptr); return 0; } cobj->setPercent(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:setPercent",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_setPercent'.",&tolua_err); #endif return 0; } int lua_ax_ui_LoadingBar_loadTexture(lua_State* tolua_S) { int argc = 0; ax::ui::LoadingBar* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_loadTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.LoadingBar:loadTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_loadTexture'", nullptr); return 0; } cobj->loadTexture(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.LoadingBar:loadTexture"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.LoadingBar:loadTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_loadTexture'", nullptr); return 0; } cobj->loadTexture(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:loadTexture",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_loadTexture'.",&tolua_err); #endif return 0; } int lua_ax_ui_LoadingBar_setDirection(lua_State* tolua_S) { int argc = 0; ax::ui::LoadingBar* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_setDirection'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::LoadingBar::Direction arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.LoadingBar:setDirection"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_setDirection'", nullptr); return 0; } cobj->setDirection(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:setDirection",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_setDirection'.",&tolua_err); #endif return 0; } int lua_ax_ui_LoadingBar_getRenderFile(lua_State* tolua_S) { int argc = 0; ax::ui::LoadingBar* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_getRenderFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_getRenderFile'", nullptr); return 0; } ax::ResourceData ret = cobj->getRenderFile(); resourceData_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:getRenderFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_getRenderFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_LoadingBar_setScale9Enabled(lua_State* tolua_S) { int argc = 0; ax::ui::LoadingBar* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_setScale9Enabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LoadingBar:setScale9Enabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_setScale9Enabled'", nullptr); return 0; } cobj->setScale9Enabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:setScale9Enabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_setScale9Enabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_LoadingBar_setCapInsets(lua_State* tolua_S) { int argc = 0; ax::ui::LoadingBar* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_setCapInsets'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.LoadingBar:setCapInsets"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_setCapInsets'", nullptr); return 0; } cobj->setCapInsets(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:setCapInsets",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_setCapInsets'.",&tolua_err); #endif return 0; } int lua_ax_ui_LoadingBar_getDirection(lua_State* tolua_S) { int argc = 0; ax::ui::LoadingBar* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_getDirection'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_getDirection'", nullptr); return 0; } int ret = (int)cobj->getDirection(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:getDirection",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_getDirection'.",&tolua_err); #endif return 0; } int lua_ax_ui_LoadingBar_getCapInsets(lua_State* tolua_S) { int argc = 0; ax::ui::LoadingBar* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_getCapInsets'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_getCapInsets'", nullptr); return 0; } const ax::Rect& ret = cobj->getCapInsets(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:getCapInsets",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_getCapInsets'.",&tolua_err); #endif return 0; } int lua_ax_ui_LoadingBar_isScale9Enabled(lua_State* tolua_S) { int argc = 0; ax::ui::LoadingBar* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_isScale9Enabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_isScale9Enabled'", nullptr); return 0; } bool ret = cobj->isScale9Enabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:isScale9Enabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_isScale9Enabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_LoadingBar_getPercent(lua_State* tolua_S) { int argc = 0; ax::ui::LoadingBar* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LoadingBar_getPercent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_getPercent'", nullptr); return 0; } double ret = cobj->getPercent(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:getPercent",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_getPercent'.",&tolua_err); #endif return 0; } int lua_ax_ui_LoadingBar_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.LoadingBar:create"); if (!ok) { break; } ax::ui::LoadingBar* ret = ax::ui::LoadingBar::create(arg0); object_to_luaval(tolua_S, "axui.LoadingBar",(ax::ui::LoadingBar*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.LoadingBar:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "axui.LoadingBar:create"); if (!ok) { break; } ax::ui::LoadingBar* ret = ax::ui::LoadingBar::create(arg0, arg1); object_to_luaval(tolua_S, "axui.LoadingBar",(ax::ui::LoadingBar*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { ax::ui::LoadingBar* ret = ax::ui::LoadingBar::create(); object_to_luaval(tolua_S, "axui.LoadingBar",(ax::ui::LoadingBar*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.LoadingBar:create"); if (!ok) { break; } ax::ui::Widget::TextureResType arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.LoadingBar:create"); if (!ok) { break; } ax::ui::LoadingBar* ret = ax::ui::LoadingBar::create(arg0, arg1); object_to_luaval(tolua_S, "axui.LoadingBar",(ax::ui::LoadingBar*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.LoadingBar:create"); if (!ok) { break; } ax::ui::Widget::TextureResType arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.LoadingBar:create"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "axui.LoadingBar:create"); if (!ok) { break; } ax::ui::LoadingBar* ret = ax::ui::LoadingBar::create(arg0, arg1, arg2); object_to_luaval(tolua_S, "axui.LoadingBar",(ax::ui::LoadingBar*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.LoadingBar:create",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_LoadingBar_createInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_createInstance'", nullptr); return 0; } ax::Ref* ret = ax::ui::LoadingBar::createInstance(); object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.LoadingBar:createInstance",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_createInstance'.",&tolua_err); #endif return 0; } int lua_ax_ui_LoadingBar_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::LoadingBar* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LoadingBar_constructor'", nullptr); return 0; } cobj = new ax::ui::LoadingBar(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.LoadingBar"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LoadingBar:LoadingBar",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LoadingBar_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_LoadingBar_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (LoadingBar)"); return 0; } int lua_register_ax_ui_LoadingBar(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.LoadingBar"); tolua_cclass(tolua_S,"LoadingBar","axui.LoadingBar","axui.Widget",nullptr); tolua_beginmodule(tolua_S,"LoadingBar"); tolua_function(tolua_S,"new",lua_ax_ui_LoadingBar_constructor); tolua_function(tolua_S,"setPercent",lua_ax_ui_LoadingBar_setPercent); tolua_function(tolua_S,"loadTexture",lua_ax_ui_LoadingBar_loadTexture); tolua_function(tolua_S,"setDirection",lua_ax_ui_LoadingBar_setDirection); tolua_function(tolua_S,"getRenderFile",lua_ax_ui_LoadingBar_getRenderFile); tolua_function(tolua_S,"setScale9Enabled",lua_ax_ui_LoadingBar_setScale9Enabled); tolua_function(tolua_S,"setCapInsets",lua_ax_ui_LoadingBar_setCapInsets); tolua_function(tolua_S,"getDirection",lua_ax_ui_LoadingBar_getDirection); tolua_function(tolua_S,"getCapInsets",lua_ax_ui_LoadingBar_getCapInsets); tolua_function(tolua_S,"isScale9Enabled",lua_ax_ui_LoadingBar_isScale9Enabled); tolua_function(tolua_S,"getPercent",lua_ax_ui_LoadingBar_getPercent); tolua_function(tolua_S,"create", lua_ax_ui_LoadingBar_create); tolua_function(tolua_S,"createInstance", lua_ax_ui_LoadingBar_createInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::LoadingBar).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.LoadingBar"; g_typeCast[typeName] = "axui.LoadingBar"; return 1; } int lua_ax_ui_ScrollView_scrollToTop(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToTop'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; bool arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToTop"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToTop"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToTop'", nullptr); return 0; } cobj->scrollToTop(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToTop",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToTop'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_scrollToPercentHorizontal(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToPercentHorizontal'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { double arg0; double arg1; bool arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToPercentHorizontal"); ok &= luaval_to_number(tolua_S, 3,&arg1, "axui.ScrollView:scrollToPercentHorizontal"); ok &= luaval_to_boolean(tolua_S, 4,&arg2, "axui.ScrollView:scrollToPercentHorizontal"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToPercentHorizontal'", nullptr); return 0; } cobj->scrollToPercentHorizontal(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToPercentHorizontal",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToPercentHorizontal'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_setScrollBarOpacity(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { uint16_t arg0; ok &= luaval_to_uint16(tolua_S, 2,&arg0, "axui.ScrollView:setScrollBarOpacity"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarOpacity'", nullptr); return 0; } cobj->setScrollBarOpacity(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarOpacity",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarOpacity'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_setScrollBarEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.ScrollView:setScrollBarEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarEnabled'", nullptr); return 0; } cobj->setScrollBarEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_isInertiaScrollEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_isInertiaScrollEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_isInertiaScrollEnabled'", nullptr); return 0; } bool ret = cobj->isInertiaScrollEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:isInertiaScrollEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_isInertiaScrollEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_scrollToBottom(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToBottom'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; bool arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToBottom"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToBottom"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToBottom'", nullptr); return 0; } cobj->scrollToBottom(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToBottom",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToBottom'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_getScrolledPercentBothDirection(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrolledPercentBothDirection'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrolledPercentBothDirection'", nullptr); return 0; } ax::Vec2 ret = cobj->getScrolledPercentBothDirection(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrolledPercentBothDirection",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrolledPercentBothDirection'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_getDirection(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getDirection'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getDirection'", nullptr); return 0; } int ret = (int)cobj->getDirection(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getDirection",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getDirection'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_setScrollBarColor(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.ScrollView:setScrollBarColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarColor'", nullptr); return 0; } cobj->setScrollBarColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarColor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_scrollToBottomLeft(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToBottomLeft'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; bool arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToBottomLeft"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToBottomLeft"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToBottomLeft'", nullptr); return 0; } cobj->scrollToBottomLeft(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToBottomLeft",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToBottomLeft'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_getInnerContainer(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getInnerContainer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getInnerContainer'", nullptr); return 0; } ax::ui::Layout* ret = cobj->getInnerContainer(); object_to_luaval(tolua_S, "axui.Layout",(ax::ui::Layout*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getInnerContainer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getInnerContainer'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_jumpToBottom(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToBottom'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToBottom'", nullptr); return 0; } cobj->jumpToBottom(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToBottom",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToBottom'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_setInnerContainerPosition(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setInnerContainerPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ScrollView:setInnerContainerPosition"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setInnerContainerPosition'", nullptr); return 0; } cobj->setInnerContainerPosition(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setInnerContainerPosition",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setInnerContainerPosition'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_setDirection(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setDirection'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::ScrollView::Direction arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.ScrollView:setDirection"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setDirection'", nullptr); return 0; } cobj->setDirection(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setDirection",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setDirection'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_scrollToTopLeft(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToTopLeft'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; bool arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToTopLeft"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToTopLeft"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToTopLeft'", nullptr); return 0; } cobj->scrollToTopLeft(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToTopLeft",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToTopLeft'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_jumpToTopRight(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToTopRight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToTopRight'", nullptr); return 0; } cobj->jumpToTopRight(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToTopRight",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToTopRight'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_scrollToPercentBothDirection(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToPercentBothDirection'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { ax::Vec2 arg0; double arg1; bool arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ScrollView:scrollToPercentBothDirection"); ok &= luaval_to_number(tolua_S, 3,&arg1, "axui.ScrollView:scrollToPercentBothDirection"); ok &= luaval_to_boolean(tolua_S, 4,&arg2, "axui.ScrollView:scrollToPercentBothDirection"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToPercentBothDirection'", nullptr); return 0; } cobj->scrollToPercentBothDirection(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToPercentBothDirection",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToPercentBothDirection'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_setInnerContainerSize(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setInnerContainerSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ScrollView:setInnerContainerSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setInnerContainerSize'", nullptr); return 0; } cobj->setInnerContainerSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setInnerContainerSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setInnerContainerSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_getInnerContainerPosition(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getInnerContainerPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getInnerContainerPosition'", nullptr); return 0; } const ax::Vec2& ret = cobj->getInnerContainerPosition(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getInnerContainerPosition",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getInnerContainerPosition'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_jumpToTop(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToTop'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToTop'", nullptr); return 0; } cobj->jumpToTop(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToTop",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToTop'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_getScrolledPercentVertical(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrolledPercentVertical'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrolledPercentVertical'", nullptr); return 0; } double ret = cobj->getScrolledPercentVertical(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrolledPercentVertical",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrolledPercentVertical'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_isBounceEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_isBounceEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_isBounceEnabled'", nullptr); return 0; } bool ret = cobj->isBounceEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:isBounceEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_isBounceEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_jumpToPercentVertical(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToPercentVertical'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:jumpToPercentVertical"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToPercentVertical'", nullptr); return 0; } cobj->jumpToPercentVertical(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToPercentVertical",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToPercentVertical'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_addEventListener(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_addEventListener'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::function arg0; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_addEventListener'", nullptr); return 0; } cobj->addEventListener(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:addEventListener",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_addEventListener'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_setScrollBarAutoHideTime(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarAutoHideTime'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:setScrollBarAutoHideTime"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarAutoHideTime'", nullptr); return 0; } cobj->setScrollBarAutoHideTime(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarAutoHideTime",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarAutoHideTime'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_stopScroll(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_stopScroll'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_stopScroll'", nullptr); return 0; } cobj->stopScroll(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:stopScroll",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_stopScroll'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ScrollView:setScrollBarPositionFromCornerForHorizontal"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal'", nullptr); return 0; } cobj->setScrollBarPositionFromCornerForHorizontal(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarPositionFromCornerForHorizontal",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_setInertiaScrollEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setInertiaScrollEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.ScrollView:setInertiaScrollEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setInertiaScrollEnabled'", nullptr); return 0; } cobj->setInertiaScrollEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setInertiaScrollEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setInertiaScrollEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_setScrollBarAutoHideEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarAutoHideEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.ScrollView:setScrollBarAutoHideEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarAutoHideEnabled'", nullptr); return 0; } cobj->setScrollBarAutoHideEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarAutoHideEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarAutoHideEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_getScrollBarColor(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrollBarColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrollBarColor'", nullptr); return 0; } const ax::Color3B& ret = cobj->getScrollBarColor(); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrollBarColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrollBarColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_jumpToTopLeft(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToTopLeft'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToTopLeft'", nullptr); return 0; } cobj->jumpToTopLeft(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToTopLeft",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToTopLeft'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_isScrollBarEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_isScrollBarEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_isScrollBarEnabled'", nullptr); return 0; } bool ret = cobj->isScrollBarEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:isScrollBarEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_isScrollBarEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_isAutoScrolling(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_isAutoScrolling'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_isAutoScrolling'", nullptr); return 0; } bool ret = cobj->isAutoScrolling(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:isAutoScrolling",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_isAutoScrolling'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_jumpToBottomRight(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToBottomRight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToBottomRight'", nullptr); return 0; } cobj->jumpToBottomRight(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToBottomRight",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToBottomRight'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_setTouchTotalTimeThreshold(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setTouchTotalTimeThreshold'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:setTouchTotalTimeThreshold"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setTouchTotalTimeThreshold'", nullptr); return 0; } cobj->setTouchTotalTimeThreshold(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setTouchTotalTimeThreshold",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setTouchTotalTimeThreshold'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_getTouchTotalTimeThreshold(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getTouchTotalTimeThreshold'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getTouchTotalTimeThreshold'", nullptr); return 0; } double ret = cobj->getTouchTotalTimeThreshold(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getTouchTotalTimeThreshold",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getTouchTotalTimeThreshold'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal'", nullptr); return 0; } ax::Vec2 ret = cobj->getScrollBarPositionFromCornerForHorizontal(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrollBarPositionFromCornerForHorizontal",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_getScrolledPercentHorizontal(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrolledPercentHorizontal'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrolledPercentHorizontal'", nullptr); return 0; } double ret = cobj->getScrolledPercentHorizontal(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrolledPercentHorizontal",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrolledPercentHorizontal'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_setBounceEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setBounceEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.ScrollView:setBounceEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setBounceEnabled'", nullptr); return 0; } cobj->setBounceEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setBounceEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setBounceEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_stopAutoScroll(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_stopAutoScroll'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_stopAutoScroll'", nullptr); return 0; } cobj->stopAutoScroll(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:stopAutoScroll",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_stopAutoScroll'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_scrollToTopRight(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToTopRight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; bool arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToTopRight"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToTopRight"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToTopRight'", nullptr); return 0; } cobj->scrollToTopRight(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToTopRight",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToTopRight'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_isScrolling(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_isScrolling'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_isScrolling'", nullptr); return 0; } bool ret = cobj->isScrolling(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:isScrolling",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_isScrolling'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_scrollToLeft(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToLeft'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; bool arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToLeft"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToLeft"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToLeft'", nullptr); return 0; } cobj->scrollToLeft(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToLeft",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToLeft'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_jumpToPercentBothDirection(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToPercentBothDirection'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ScrollView:jumpToPercentBothDirection"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToPercentBothDirection'", nullptr); return 0; } cobj->jumpToPercentBothDirection(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToPercentBothDirection",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToPercentBothDirection'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_stopOverallScroll(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_stopOverallScroll'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_stopOverallScroll'", nullptr); return 0; } cobj->stopOverallScroll(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:stopOverallScroll",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_stopOverallScroll'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_scrollToPercentVertical(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToPercentVertical'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { double arg0; double arg1; bool arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToPercentVertical"); ok &= luaval_to_number(tolua_S, 3,&arg1, "axui.ScrollView:scrollToPercentVertical"); ok &= luaval_to_boolean(tolua_S, 4,&arg2, "axui.ScrollView:scrollToPercentVertical"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToPercentVertical'", nullptr); return 0; } cobj->scrollToPercentVertical(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToPercentVertical",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToPercentVertical'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_setScrollBarWidth(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarWidth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:setScrollBarWidth"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarWidth'", nullptr); return 0; } cobj->setScrollBarWidth(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarWidth",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarWidth'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_getScrollBarOpacity(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrollBarOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrollBarOpacity'", nullptr); return 0; } uint16_t ret = cobj->getScrollBarOpacity(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrollBarOpacity",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrollBarOpacity'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_scrollToBottomRight(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToBottomRight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; bool arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToBottomRight"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToBottomRight"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToBottomRight'", nullptr); return 0; } cobj->scrollToBottomRight(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToBottomRight",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToBottomRight'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_setScrollBarPositionFromCorner(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarPositionFromCorner'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ScrollView:setScrollBarPositionFromCorner"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarPositionFromCorner'", nullptr); return 0; } cobj->setScrollBarPositionFromCorner(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarPositionFromCorner",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarPositionFromCorner'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForVertical(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForVertical'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ScrollView:setScrollBarPositionFromCornerForVertical"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForVertical'", nullptr); return 0; } cobj->setScrollBarPositionFromCornerForVertical(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:setScrollBarPositionFromCornerForVertical",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForVertical'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_getScrollBarAutoHideTime(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrollBarAutoHideTime'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrollBarAutoHideTime'", nullptr); return 0; } double ret = cobj->getScrollBarAutoHideTime(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrollBarAutoHideTime",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrollBarAutoHideTime'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_jumpToLeft(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToLeft'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToLeft'", nullptr); return 0; } cobj->jumpToLeft(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToLeft",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToLeft'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_scrollToRight(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_scrollToRight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; bool arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:scrollToRight"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "axui.ScrollView:scrollToRight"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_scrollToRight'", nullptr); return 0; } cobj->scrollToRight(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:scrollToRight",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_scrollToRight'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForVertical(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForVertical'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForVertical'", nullptr); return 0; } ax::Vec2 ret = cobj->getScrollBarPositionFromCornerForVertical(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrollBarPositionFromCornerForVertical",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForVertical'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_getScrollBarWidth(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getScrollBarWidth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getScrollBarWidth'", nullptr); return 0; } double ret = cobj->getScrollBarWidth(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getScrollBarWidth",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getScrollBarWidth'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_isScrollBarAutoHideEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_isScrollBarAutoHideEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_isScrollBarAutoHideEnabled'", nullptr); return 0; } bool ret = cobj->isScrollBarAutoHideEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:isScrollBarAutoHideEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_isScrollBarAutoHideEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_jumpToBottomLeft(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToBottomLeft'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToBottomLeft'", nullptr); return 0; } cobj->jumpToBottomLeft(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToBottomLeft",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToBottomLeft'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_jumpToRight(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToRight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToRight'", nullptr); return 0; } cobj->jumpToRight(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToRight",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToRight'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_getInnerContainerSize(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_getInnerContainerSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_getInnerContainerSize'", nullptr); return 0; } const ax::Vec2& ret = cobj->getInnerContainerSize(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:getInnerContainerSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_getInnerContainerSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_jumpToPercentHorizontal(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ScrollView_jumpToPercentHorizontal'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ScrollView:jumpToPercentHorizontal"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_jumpToPercentHorizontal'", nullptr); return 0; } cobj->jumpToPercentHorizontal(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:jumpToPercentHorizontal",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_jumpToPercentHorizontal'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_create'", nullptr); return 0; } ax::ui::ScrollView* ret = ax::ui::ScrollView::create(); object_to_luaval(tolua_S, "axui.ScrollView",(ax::ui::ScrollView*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.ScrollView:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_createInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_createInstance'", nullptr); return 0; } ax::Ref* ret = ax::ui::ScrollView::createInstance(); object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.ScrollView:createInstance",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_createInstance'.",&tolua_err); #endif return 0; } int lua_ax_ui_ScrollView_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::ScrollView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ScrollView_constructor'", nullptr); return 0; } cobj = new ax::ui::ScrollView(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.ScrollView"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ScrollView:ScrollView",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ScrollView_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_ScrollView_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ScrollView)"); return 0; } int lua_register_ax_ui_ScrollView(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.ScrollView"); tolua_cclass(tolua_S,"ScrollView","axui.ScrollView","axui.Layout",nullptr); tolua_beginmodule(tolua_S,"ScrollView"); tolua_function(tolua_S,"new",lua_ax_ui_ScrollView_constructor); tolua_function(tolua_S,"scrollToTop",lua_ax_ui_ScrollView_scrollToTop); tolua_function(tolua_S,"scrollToPercentHorizontal",lua_ax_ui_ScrollView_scrollToPercentHorizontal); tolua_function(tolua_S,"setScrollBarOpacity",lua_ax_ui_ScrollView_setScrollBarOpacity); tolua_function(tolua_S,"setScrollBarEnabled",lua_ax_ui_ScrollView_setScrollBarEnabled); tolua_function(tolua_S,"isInertiaScrollEnabled",lua_ax_ui_ScrollView_isInertiaScrollEnabled); tolua_function(tolua_S,"scrollToBottom",lua_ax_ui_ScrollView_scrollToBottom); tolua_function(tolua_S,"getScrolledPercentBothDirection",lua_ax_ui_ScrollView_getScrolledPercentBothDirection); tolua_function(tolua_S,"getDirection",lua_ax_ui_ScrollView_getDirection); tolua_function(tolua_S,"setScrollBarColor",lua_ax_ui_ScrollView_setScrollBarColor); tolua_function(tolua_S,"scrollToBottomLeft",lua_ax_ui_ScrollView_scrollToBottomLeft); tolua_function(tolua_S,"getInnerContainer",lua_ax_ui_ScrollView_getInnerContainer); tolua_function(tolua_S,"jumpToBottom",lua_ax_ui_ScrollView_jumpToBottom); tolua_function(tolua_S,"setInnerContainerPosition",lua_ax_ui_ScrollView_setInnerContainerPosition); tolua_function(tolua_S,"setDirection",lua_ax_ui_ScrollView_setDirection); tolua_function(tolua_S,"scrollToTopLeft",lua_ax_ui_ScrollView_scrollToTopLeft); tolua_function(tolua_S,"jumpToTopRight",lua_ax_ui_ScrollView_jumpToTopRight); tolua_function(tolua_S,"scrollToPercentBothDirection",lua_ax_ui_ScrollView_scrollToPercentBothDirection); tolua_function(tolua_S,"setInnerContainerSize",lua_ax_ui_ScrollView_setInnerContainerSize); tolua_function(tolua_S,"getInnerContainerPosition",lua_ax_ui_ScrollView_getInnerContainerPosition); tolua_function(tolua_S,"jumpToTop",lua_ax_ui_ScrollView_jumpToTop); tolua_function(tolua_S,"getScrolledPercentVertical",lua_ax_ui_ScrollView_getScrolledPercentVertical); tolua_function(tolua_S,"isBounceEnabled",lua_ax_ui_ScrollView_isBounceEnabled); tolua_function(tolua_S,"jumpToPercentVertical",lua_ax_ui_ScrollView_jumpToPercentVertical); tolua_function(tolua_S,"addEventListener",lua_ax_ui_ScrollView_addEventListener); tolua_function(tolua_S,"setScrollBarAutoHideTime",lua_ax_ui_ScrollView_setScrollBarAutoHideTime); tolua_function(tolua_S,"stopScroll",lua_ax_ui_ScrollView_stopScroll); tolua_function(tolua_S,"setScrollBarPositionFromCornerForHorizontal",lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal); tolua_function(tolua_S,"setInertiaScrollEnabled",lua_ax_ui_ScrollView_setInertiaScrollEnabled); tolua_function(tolua_S,"setScrollBarAutoHideEnabled",lua_ax_ui_ScrollView_setScrollBarAutoHideEnabled); tolua_function(tolua_S,"getScrollBarColor",lua_ax_ui_ScrollView_getScrollBarColor); tolua_function(tolua_S,"jumpToTopLeft",lua_ax_ui_ScrollView_jumpToTopLeft); tolua_function(tolua_S,"isScrollBarEnabled",lua_ax_ui_ScrollView_isScrollBarEnabled); tolua_function(tolua_S,"isAutoScrolling",lua_ax_ui_ScrollView_isAutoScrolling); tolua_function(tolua_S,"jumpToBottomRight",lua_ax_ui_ScrollView_jumpToBottomRight); tolua_function(tolua_S,"setTouchTotalTimeThreshold",lua_ax_ui_ScrollView_setTouchTotalTimeThreshold); tolua_function(tolua_S,"getTouchTotalTimeThreshold",lua_ax_ui_ScrollView_getTouchTotalTimeThreshold); tolua_function(tolua_S,"getScrollBarPositionFromCornerForHorizontal",lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal); tolua_function(tolua_S,"getScrolledPercentHorizontal",lua_ax_ui_ScrollView_getScrolledPercentHorizontal); tolua_function(tolua_S,"setBounceEnabled",lua_ax_ui_ScrollView_setBounceEnabled); tolua_function(tolua_S,"stopAutoScroll",lua_ax_ui_ScrollView_stopAutoScroll); tolua_function(tolua_S,"scrollToTopRight",lua_ax_ui_ScrollView_scrollToTopRight); tolua_function(tolua_S,"isScrolling",lua_ax_ui_ScrollView_isScrolling); tolua_function(tolua_S,"scrollToLeft",lua_ax_ui_ScrollView_scrollToLeft); tolua_function(tolua_S,"jumpToPercentBothDirection",lua_ax_ui_ScrollView_jumpToPercentBothDirection); tolua_function(tolua_S,"stopOverallScroll",lua_ax_ui_ScrollView_stopOverallScroll); tolua_function(tolua_S,"scrollToPercentVertical",lua_ax_ui_ScrollView_scrollToPercentVertical); tolua_function(tolua_S,"setScrollBarWidth",lua_ax_ui_ScrollView_setScrollBarWidth); tolua_function(tolua_S,"getScrollBarOpacity",lua_ax_ui_ScrollView_getScrollBarOpacity); tolua_function(tolua_S,"scrollToBottomRight",lua_ax_ui_ScrollView_scrollToBottomRight); tolua_function(tolua_S,"setScrollBarPositionFromCorner",lua_ax_ui_ScrollView_setScrollBarPositionFromCorner); tolua_function(tolua_S,"setScrollBarPositionFromCornerForVertical",lua_ax_ui_ScrollView_setScrollBarPositionFromCornerForVertical); tolua_function(tolua_S,"getScrollBarAutoHideTime",lua_ax_ui_ScrollView_getScrollBarAutoHideTime); tolua_function(tolua_S,"jumpToLeft",lua_ax_ui_ScrollView_jumpToLeft); tolua_function(tolua_S,"scrollToRight",lua_ax_ui_ScrollView_scrollToRight); tolua_function(tolua_S,"getScrollBarPositionFromCornerForVertical",lua_ax_ui_ScrollView_getScrollBarPositionFromCornerForVertical); tolua_function(tolua_S,"getScrollBarWidth",lua_ax_ui_ScrollView_getScrollBarWidth); tolua_function(tolua_S,"isScrollBarAutoHideEnabled",lua_ax_ui_ScrollView_isScrollBarAutoHideEnabled); tolua_function(tolua_S,"jumpToBottomLeft",lua_ax_ui_ScrollView_jumpToBottomLeft); tolua_function(tolua_S,"jumpToRight",lua_ax_ui_ScrollView_jumpToRight); tolua_function(tolua_S,"getInnerContainerSize",lua_ax_ui_ScrollView_getInnerContainerSize); tolua_function(tolua_S,"jumpToPercentHorizontal",lua_ax_ui_ScrollView_jumpToPercentHorizontal); tolua_function(tolua_S,"create", lua_ax_ui_ScrollView_create); tolua_function(tolua_S,"createInstance", lua_ax_ui_ScrollView_createInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::ScrollView).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.ScrollView"; g_typeCast[typeName] = "axui.ScrollView"; return 1; } int lua_ax_ui_ListView_setGravity(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setGravity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::ListView::Gravity arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.ListView:setGravity"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setGravity'", nullptr); return 0; } cobj->setGravity(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setGravity",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setGravity'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_removeLastItem(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_removeLastItem'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_removeLastItem'", nullptr); return 0; } cobj->removeLastItem(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:removeLastItem",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_removeLastItem'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getLeftPadding(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getLeftPadding'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getLeftPadding'", nullptr); return 0; } double ret = cobj->getLeftPadding(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getLeftPadding",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getLeftPadding'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getCenterItemInCurrentView(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getCenterItemInCurrentView'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getCenterItemInCurrentView'", nullptr); return 0; } ax::ui::Widget* ret = cobj->getCenterItemInCurrentView(); object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getCenterItemInCurrentView",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getCenterItemInCurrentView'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getCurSelectedIndex(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getCurSelectedIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getCurSelectedIndex'", nullptr); return 0; } ssize_t ret = cobj->getCurSelectedIndex(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getCurSelectedIndex",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getCurSelectedIndex'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getScrollDuration(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getScrollDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getScrollDuration'", nullptr); return 0; } double ret = cobj->getScrollDuration(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getScrollDuration",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getScrollDuration'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getMagneticAllowedOutOfBoundary(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getMagneticAllowedOutOfBoundary'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getMagneticAllowedOutOfBoundary'", nullptr); return 0; } bool ret = cobj->getMagneticAllowedOutOfBoundary(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getMagneticAllowedOutOfBoundary",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getMagneticAllowedOutOfBoundary'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getItemsMargin(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getItemsMargin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getItemsMargin'", nullptr); return 0; } double ret = cobj->getItemsMargin(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getItemsMargin",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getItemsMargin'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_scrollToItem(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_scrollToItem'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 4) { ssize_t arg0; ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.ListView:scrollToItem"); if (!ok) { break; } ax::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "axui.ListView:scrollToItem"); if (!ok) { break; } ax::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 4, &arg2, "axui.ListView:scrollToItem"); if (!ok) { break; } double arg3; ok &= luaval_to_number(tolua_S, 5,&arg3, "axui.ListView:scrollToItem"); if (!ok) { break; } cobj->scrollToItem(arg0, arg1, arg2, arg3); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 3) { ssize_t arg0; ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.ListView:scrollToItem"); if (!ok) { break; } ax::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "axui.ListView:scrollToItem"); if (!ok) { break; } ax::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 4, &arg2, "axui.ListView:scrollToItem"); if (!ok) { break; } cobj->scrollToItem(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:scrollToItem",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_scrollToItem'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_jumpToItem(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_jumpToItem'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { ssize_t arg0; ax::Vec2 arg1; ax::Vec2 arg2; ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.ListView:jumpToItem"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "axui.ListView:jumpToItem"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "axui.ListView:jumpToItem"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_jumpToItem'", nullptr); return 0; } cobj->jumpToItem(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:jumpToItem",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_jumpToItem'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_setTopPadding(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setTopPadding'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setTopPadding"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setTopPadding'", nullptr); return 0; } cobj->setTopPadding(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setTopPadding",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setTopPadding'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getIndex(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::Widget* arg0; ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.ListView:getIndex"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getIndex'", nullptr); return 0; } ssize_t ret = cobj->getIndex(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getIndex",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getIndex'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_pushBackCustomItem(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_pushBackCustomItem'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::Widget* arg0; ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.ListView:pushBackCustomItem"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_pushBackCustomItem'", nullptr); return 0; } cobj->pushBackCustomItem(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:pushBackCustomItem",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_pushBackCustomItem'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_setCurSelectedIndex(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setCurSelectedIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.ListView:setCurSelectedIndex"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setCurSelectedIndex'", nullptr); return 0; } cobj->setCurSelectedIndex(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setCurSelectedIndex",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setCurSelectedIndex'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_insertDefaultItem(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_insertDefaultItem'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ssize_t arg0; ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.ListView:insertDefaultItem"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_insertDefaultItem'", nullptr); return 0; } cobj->insertDefaultItem(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:insertDefaultItem",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_insertDefaultItem'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_setMagneticType(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setMagneticType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::ListView::MagneticType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.ListView:setMagneticType"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setMagneticType'", nullptr); return 0; } cobj->setMagneticType(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setMagneticType",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setMagneticType'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_setMagneticAllowedOutOfBoundary(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setMagneticAllowedOutOfBoundary'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.ListView:setMagneticAllowedOutOfBoundary"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setMagneticAllowedOutOfBoundary'", nullptr); return 0; } cobj->setMagneticAllowedOutOfBoundary(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setMagneticAllowedOutOfBoundary",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setMagneticAllowedOutOfBoundary'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_addEventListener(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_addEventListener'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::function arg0; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_addEventListener'", nullptr); return 0; } cobj->addEventListener(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:addEventListener",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_addEventListener'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_doLayout(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_doLayout'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_doLayout'", nullptr); return 0; } cobj->doLayout(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:doLayout",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_doLayout'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getTopmostItemInCurrentView(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getTopmostItemInCurrentView'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getTopmostItemInCurrentView'", nullptr); return 0; } ax::ui::Widget* ret = cobj->getTopmostItemInCurrentView(); object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getTopmostItemInCurrentView",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getTopmostItemInCurrentView'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_setPadding(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setPadding'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; double arg1; double arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setPadding"); ok &= luaval_to_number(tolua_S, 3,&arg1, "axui.ListView:setPadding"); ok &= luaval_to_number(tolua_S, 4,&arg2, "axui.ListView:setPadding"); ok &= luaval_to_number(tolua_S, 5,&arg3, "axui.ListView:setPadding"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setPadding'", nullptr); return 0; } cobj->setPadding(arg0, arg1, arg2, arg3); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setPadding",argc, 4); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setPadding'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_removeAllItems(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_removeAllItems'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_removeAllItems'", nullptr); return 0; } cobj->removeAllItems(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:removeAllItems",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_removeAllItems'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getRightPadding(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getRightPadding'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getRightPadding'", nullptr); return 0; } double ret = cobj->getRightPadding(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getRightPadding",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getRightPadding'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getBottommostItemInCurrentView(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getBottommostItemInCurrentView'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getBottommostItemInCurrentView'", nullptr); return 0; } ax::ui::Widget* ret = cobj->getBottommostItemInCurrentView(); object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getBottommostItemInCurrentView",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getBottommostItemInCurrentView'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getItems(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getItems'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getItems'", nullptr); return 0; } ax::Vector& ret = cobj->getItems(); ccvector_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getItems",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getItems'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getLeftmostItemInCurrentView(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getLeftmostItemInCurrentView'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getLeftmostItemInCurrentView'", nullptr); return 0; } ax::ui::Widget* ret = cobj->getLeftmostItemInCurrentView(); object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getLeftmostItemInCurrentView",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getLeftmostItemInCurrentView'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_setItemsMargin(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setItemsMargin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setItemsMargin"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setItemsMargin'", nullptr); return 0; } cobj->setItemsMargin(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setItemsMargin",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setItemsMargin'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getMagneticType(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getMagneticType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getMagneticType'", nullptr); return 0; } int ret = (int)cobj->getMagneticType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getMagneticType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getMagneticType'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getItem(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getItem'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ssize_t arg0; ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.ListView:getItem"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getItem'", nullptr); return 0; } ax::ui::Widget* ret = cobj->getItem(arg0); object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getItem",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getItem'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_removeItem(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_removeItem'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ssize_t arg0; ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.ListView:removeItem"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_removeItem'", nullptr); return 0; } cobj->removeItem(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:removeItem",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_removeItem'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getTopPadding(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getTopPadding'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getTopPadding'", nullptr); return 0; } double ret = cobj->getTopPadding(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getTopPadding",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getTopPadding'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_pushBackDefaultItem(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_pushBackDefaultItem'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_pushBackDefaultItem'", nullptr); return 0; } cobj->pushBackDefaultItem(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:pushBackDefaultItem",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_pushBackDefaultItem'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_setLeftPadding(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setLeftPadding'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setLeftPadding"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setLeftPadding'", nullptr); return 0; } cobj->setLeftPadding(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setLeftPadding",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setLeftPadding'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getClosestItemToPosition(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getClosestItemToPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { ax::Vec2 arg0; ax::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ListView:getClosestItemToPosition"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "axui.ListView:getClosestItemToPosition"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getClosestItemToPosition'", nullptr); return 0; } ax::ui::Widget* ret = cobj->getClosestItemToPosition(arg0, arg1); object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getClosestItemToPosition",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getClosestItemToPosition'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_setBottomPadding(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setBottomPadding'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setBottomPadding"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setBottomPadding'", nullptr); return 0; } cobj->setBottomPadding(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setBottomPadding",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setBottomPadding'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_setScrollDuration(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setScrollDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setScrollDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setScrollDuration'", nullptr); return 0; } cobj->setScrollDuration(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setScrollDuration",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setScrollDuration'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getClosestItemToPositionInCurrentView(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getClosestItemToPositionInCurrentView'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { ax::Vec2 arg0; ax::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.ListView:getClosestItemToPositionInCurrentView"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "axui.ListView:getClosestItemToPositionInCurrentView"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getClosestItemToPositionInCurrentView'", nullptr); return 0; } ax::ui::Widget* ret = cobj->getClosestItemToPositionInCurrentView(arg0, arg1); object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getClosestItemToPositionInCurrentView",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getClosestItemToPositionInCurrentView'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getRightmostItemInCurrentView(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getRightmostItemInCurrentView'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getRightmostItemInCurrentView'", nullptr); return 0; } ax::ui::Widget* ret = cobj->getRightmostItemInCurrentView(); object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getRightmostItemInCurrentView",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getRightmostItemInCurrentView'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_setRightPadding(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setRightPadding'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.ListView:setRightPadding"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setRightPadding'", nullptr); return 0; } cobj->setRightPadding(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setRightPadding",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setRightPadding'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_setItemModel(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_setItemModel'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::Widget* arg0; ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.ListView:setItemModel"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_setItemModel'", nullptr); return 0; } cobj->setItemModel(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:setItemModel",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_setItemModel'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_getBottomPadding(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_getBottomPadding'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_getBottomPadding'", nullptr); return 0; } double ret = cobj->getBottomPadding(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:getBottomPadding",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_getBottomPadding'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_insertCustomItem(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_ListView_insertCustomItem'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { ax::ui::Widget* arg0; ssize_t arg1; ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.ListView:insertCustomItem"); ok &= luaval_to_ssize_t(tolua_S, 3, &arg1, "axui.ListView:insertCustomItem"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_insertCustomItem'", nullptr); return 0; } cobj->insertCustomItem(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:insertCustomItem",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_insertCustomItem'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_create'", nullptr); return 0; } ax::ui::ListView* ret = ax::ui::ListView::create(); object_to_luaval(tolua_S, "axui.ListView",(ax::ui::ListView*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.ListView:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_createInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.ListView",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_createInstance'", nullptr); return 0; } ax::Ref* ret = ax::ui::ListView::createInstance(); object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.ListView:createInstance",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_createInstance'.",&tolua_err); #endif return 0; } int lua_ax_ui_ListView_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::ListView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_ListView_constructor'", nullptr); return 0; } cobj = new ax::ui::ListView(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.ListView"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.ListView:ListView",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_ListView_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_ListView_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ListView)"); return 0; } int lua_register_ax_ui_ListView(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.ListView"); tolua_cclass(tolua_S,"ListView","axui.ListView","axui.ScrollView",nullptr); tolua_beginmodule(tolua_S,"ListView"); tolua_function(tolua_S,"new",lua_ax_ui_ListView_constructor); tolua_function(tolua_S,"setGravity",lua_ax_ui_ListView_setGravity); tolua_function(tolua_S,"removeLastItem",lua_ax_ui_ListView_removeLastItem); tolua_function(tolua_S,"getLeftPadding",lua_ax_ui_ListView_getLeftPadding); tolua_function(tolua_S,"getCenterItemInCurrentView",lua_ax_ui_ListView_getCenterItemInCurrentView); tolua_function(tolua_S,"getCurSelectedIndex",lua_ax_ui_ListView_getCurSelectedIndex); tolua_function(tolua_S,"getScrollDuration",lua_ax_ui_ListView_getScrollDuration); tolua_function(tolua_S,"getMagneticAllowedOutOfBoundary",lua_ax_ui_ListView_getMagneticAllowedOutOfBoundary); tolua_function(tolua_S,"getItemsMargin",lua_ax_ui_ListView_getItemsMargin); tolua_function(tolua_S,"scrollToItem",lua_ax_ui_ListView_scrollToItem); tolua_function(tolua_S,"jumpToItem",lua_ax_ui_ListView_jumpToItem); tolua_function(tolua_S,"setTopPadding",lua_ax_ui_ListView_setTopPadding); tolua_function(tolua_S,"getIndex",lua_ax_ui_ListView_getIndex); tolua_function(tolua_S,"pushBackCustomItem",lua_ax_ui_ListView_pushBackCustomItem); tolua_function(tolua_S,"setCurSelectedIndex",lua_ax_ui_ListView_setCurSelectedIndex); tolua_function(tolua_S,"insertDefaultItem",lua_ax_ui_ListView_insertDefaultItem); tolua_function(tolua_S,"setMagneticType",lua_ax_ui_ListView_setMagneticType); tolua_function(tolua_S,"setMagneticAllowedOutOfBoundary",lua_ax_ui_ListView_setMagneticAllowedOutOfBoundary); tolua_function(tolua_S,"addEventListener",lua_ax_ui_ListView_addEventListener); tolua_function(tolua_S,"doLayout",lua_ax_ui_ListView_doLayout); tolua_function(tolua_S,"getTopmostItemInCurrentView",lua_ax_ui_ListView_getTopmostItemInCurrentView); tolua_function(tolua_S,"setPadding",lua_ax_ui_ListView_setPadding); tolua_function(tolua_S,"removeAllItems",lua_ax_ui_ListView_removeAllItems); tolua_function(tolua_S,"getRightPadding",lua_ax_ui_ListView_getRightPadding); tolua_function(tolua_S,"getBottommostItemInCurrentView",lua_ax_ui_ListView_getBottommostItemInCurrentView); tolua_function(tolua_S,"getItems",lua_ax_ui_ListView_getItems); tolua_function(tolua_S,"getLeftmostItemInCurrentView",lua_ax_ui_ListView_getLeftmostItemInCurrentView); tolua_function(tolua_S,"setItemsMargin",lua_ax_ui_ListView_setItemsMargin); tolua_function(tolua_S,"getMagneticType",lua_ax_ui_ListView_getMagneticType); tolua_function(tolua_S,"getItem",lua_ax_ui_ListView_getItem); tolua_function(tolua_S,"removeItem",lua_ax_ui_ListView_removeItem); tolua_function(tolua_S,"getTopPadding",lua_ax_ui_ListView_getTopPadding); tolua_function(tolua_S,"pushBackDefaultItem",lua_ax_ui_ListView_pushBackDefaultItem); tolua_function(tolua_S,"setLeftPadding",lua_ax_ui_ListView_setLeftPadding); tolua_function(tolua_S,"getClosestItemToPosition",lua_ax_ui_ListView_getClosestItemToPosition); tolua_function(tolua_S,"setBottomPadding",lua_ax_ui_ListView_setBottomPadding); tolua_function(tolua_S,"setScrollDuration",lua_ax_ui_ListView_setScrollDuration); tolua_function(tolua_S,"getClosestItemToPositionInCurrentView",lua_ax_ui_ListView_getClosestItemToPositionInCurrentView); tolua_function(tolua_S,"getRightmostItemInCurrentView",lua_ax_ui_ListView_getRightmostItemInCurrentView); tolua_function(tolua_S,"setRightPadding",lua_ax_ui_ListView_setRightPadding); tolua_function(tolua_S,"setItemModel",lua_ax_ui_ListView_setItemModel); tolua_function(tolua_S,"getBottomPadding",lua_ax_ui_ListView_getBottomPadding); tolua_function(tolua_S,"insertCustomItem",lua_ax_ui_ListView_insertCustomItem); tolua_function(tolua_S,"create", lua_ax_ui_ListView_create); tolua_function(tolua_S,"createInstance", lua_ax_ui_ListView_createInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::ListView).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.ListView"; g_typeCast[typeName] = "axui.ListView"; return 1; } int lua_ax_ui_Slider_setPercent(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_setPercent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Slider:setPercent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_setPercent'", nullptr); return 0; } cobj->setPercent(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:setPercent",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_setPercent'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_getMaxPercent(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getMaxPercent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getMaxPercent'", nullptr); return 0; } int ret = cobj->getMaxPercent(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getMaxPercent",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getMaxPercent'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_loadSlidBallTextureNormal(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_loadSlidBallTextureNormal'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadSlidBallTextureNormal"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadSlidBallTextureNormal'", nullptr); return 0; } cobj->loadSlidBallTextureNormal(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadSlidBallTextureNormal"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Slider:loadSlidBallTextureNormal"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadSlidBallTextureNormal'", nullptr); return 0; } cobj->loadSlidBallTextureNormal(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:loadSlidBallTextureNormal",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_loadSlidBallTextureNormal'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_loadProgressBarTexture(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_loadProgressBarTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadProgressBarTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadProgressBarTexture'", nullptr); return 0; } cobj->loadProgressBarTexture(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadProgressBarTexture"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Slider:loadProgressBarTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadProgressBarTexture'", nullptr); return 0; } cobj->loadProgressBarTexture(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:loadProgressBarTexture",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_loadProgressBarTexture'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_getBallNormalFile(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getBallNormalFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getBallNormalFile'", nullptr); return 0; } ax::ResourceData ret = cobj->getBallNormalFile(); resourceData_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getBallNormalFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getBallNormalFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_getSlidBallDisabledRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getSlidBallDisabledRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getSlidBallDisabledRenderer'", nullptr); return 0; } ax::Sprite* ret = cobj->getSlidBallDisabledRenderer(); object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getSlidBallDisabledRenderer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getSlidBallDisabledRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_setScale9Enabled(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_setScale9Enabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Slider:setScale9Enabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_setScale9Enabled'", nullptr); return 0; } cobj->setScale9Enabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:setScale9Enabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_setScale9Enabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_getBallPressedFile(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getBallPressedFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getBallPressedFile'", nullptr); return 0; } ax::ResourceData ret = cobj->getBallPressedFile(); resourceData_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getBallPressedFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getBallPressedFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_getZoomScale(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getZoomScale'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getZoomScale'", nullptr); return 0; } double ret = cobj->getZoomScale(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getZoomScale",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getZoomScale'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_setCapInsetProgressBarRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_setCapInsetProgressBarRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Slider:setCapInsetProgressBarRenderer"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_setCapInsetProgressBarRenderer'", nullptr); return 0; } cobj->setCapInsetProgressBarRenderer(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:setCapInsetProgressBarRenderer",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_setCapInsetProgressBarRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_loadSlidBallTextures(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_loadSlidBallTextures'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadSlidBallTextures"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadSlidBallTextures'", nullptr); return 0; } cobj->loadSlidBallTextures(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadSlidBallTextures"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Slider:loadSlidBallTextures"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadSlidBallTextures'", nullptr); return 0; } cobj->loadSlidBallTextures(arg0, arg1); lua_settop(tolua_S, 1); return 1; } if (argc == 3) { std::string_view arg0; std::string_view arg1; std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadSlidBallTextures"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Slider:loadSlidBallTextures"); ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.Slider:loadSlidBallTextures"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadSlidBallTextures'", nullptr); return 0; } cobj->loadSlidBallTextures(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } if (argc == 4) { std::string_view arg0; std::string_view arg1; std::string_view arg2; ax::ui::Widget::TextureResType arg3; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadSlidBallTextures"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Slider:loadSlidBallTextures"); ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.Slider:loadSlidBallTextures"); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "axui.Slider:loadSlidBallTextures"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadSlidBallTextures'", nullptr); return 0; } cobj->loadSlidBallTextures(arg0, arg1, arg2, arg3); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:loadSlidBallTextures",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_loadSlidBallTextures'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_getSlidBallRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getSlidBallRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getSlidBallRenderer'", nullptr); return 0; } ax::Node* ret = cobj->getSlidBallRenderer(); object_to_luaval(tolua_S, "ax.Node",(ax::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getSlidBallRenderer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getSlidBallRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_addEventListener(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_addEventListener'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::function arg0; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_addEventListener'", nullptr); return 0; } cobj->addEventListener(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:addEventListener",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_addEventListener'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_setMaxPercent(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_setMaxPercent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Slider:setMaxPercent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_setMaxPercent'", nullptr); return 0; } cobj->setMaxPercent(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:setMaxPercent",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_setMaxPercent'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_loadBarTexture(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_loadBarTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadBarTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadBarTexture'", nullptr); return 0; } cobj->loadBarTexture(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadBarTexture"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Slider:loadBarTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadBarTexture'", nullptr); return 0; } cobj->loadBarTexture(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:loadBarTexture",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_loadBarTexture'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_getProgressBarFile(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getProgressBarFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getProgressBarFile'", nullptr); return 0; } ax::ResourceData ret = cobj->getProgressBarFile(); resourceData_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getProgressBarFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getProgressBarFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_getCapInsetsBarRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getCapInsetsBarRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getCapInsetsBarRenderer'", nullptr); return 0; } const ax::Rect& ret = cobj->getCapInsetsBarRenderer(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getCapInsetsBarRenderer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getCapInsetsBarRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_updateVisualSlider(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_updateVisualSlider'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_updateVisualSlider'", nullptr); return 0; } cobj->updateVisualSlider(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:updateVisualSlider",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_updateVisualSlider'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_getCapInsetsProgressBarRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getCapInsetsProgressBarRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getCapInsetsProgressBarRenderer'", nullptr); return 0; } const ax::Rect& ret = cobj->getCapInsetsProgressBarRenderer(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getCapInsetsProgressBarRenderer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getCapInsetsProgressBarRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_getSlidBallPressedRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getSlidBallPressedRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getSlidBallPressedRenderer'", nullptr); return 0; } ax::Sprite* ret = cobj->getSlidBallPressedRenderer(); object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getSlidBallPressedRenderer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getSlidBallPressedRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_loadSlidBallTexturePressed(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_loadSlidBallTexturePressed'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadSlidBallTexturePressed"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadSlidBallTexturePressed'", nullptr); return 0; } cobj->loadSlidBallTexturePressed(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadSlidBallTexturePressed"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Slider:loadSlidBallTexturePressed"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadSlidBallTexturePressed'", nullptr); return 0; } cobj->loadSlidBallTexturePressed(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:loadSlidBallTexturePressed",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_loadSlidBallTexturePressed'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_getBackFile(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getBackFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getBackFile'", nullptr); return 0; } ax::ResourceData ret = cobj->getBackFile(); resourceData_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getBackFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getBackFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_isScale9Enabled(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_isScale9Enabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_isScale9Enabled'", nullptr); return 0; } bool ret = cobj->isScale9Enabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:isScale9Enabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_isScale9Enabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_getBallDisabledFile(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getBallDisabledFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getBallDisabledFile'", nullptr); return 0; } ax::ResourceData ret = cobj->getBallDisabledFile(); resourceData_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getBallDisabledFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getBallDisabledFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_setCapInsetsBarRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_setCapInsetsBarRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Slider:setCapInsetsBarRenderer"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_setCapInsetsBarRenderer'", nullptr); return 0; } cobj->setCapInsetsBarRenderer(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:setCapInsetsBarRenderer",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_setCapInsetsBarRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_getPercent(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getPercent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getPercent'", nullptr); return 0; } int ret = cobj->getPercent(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getPercent",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getPercent'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_setCapInsets(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_setCapInsets'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Slider:setCapInsets"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_setCapInsets'", nullptr); return 0; } cobj->setCapInsets(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:setCapInsets",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_setCapInsets'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_loadSlidBallTextureDisabled(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_loadSlidBallTextureDisabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadSlidBallTextureDisabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadSlidBallTextureDisabled'", nullptr); return 0; } cobj->loadSlidBallTextureDisabled(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:loadSlidBallTextureDisabled"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Slider:loadSlidBallTextureDisabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_loadSlidBallTextureDisabled'", nullptr); return 0; } cobj->loadSlidBallTextureDisabled(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:loadSlidBallTextureDisabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_loadSlidBallTextureDisabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_getSlidBallNormalRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_getSlidBallNormalRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_getSlidBallNormalRenderer'", nullptr); return 0; } ax::Sprite* ret = cobj->getSlidBallNormalRenderer(); object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:getSlidBallNormalRenderer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_getSlidBallNormalRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_setZoomScale(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Slider_setZoomScale'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Slider:setZoomScale"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_setZoomScale'", nullptr); return 0; } cobj->setZoomScale(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:setZoomScale",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_setZoomScale'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Slider:create"); if (!ok) { break; } ax::ui::Slider* ret = ax::ui::Slider::create(arg0, arg1); object_to_luaval(tolua_S, "axui.Slider",(ax::ui::Slider*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Slider:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Slider:create"); if (!ok) { break; } ax::ui::Widget::TextureResType arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "axui.Slider:create"); if (!ok) { break; } ax::ui::Slider* ret = ax::ui::Slider::create(arg0, arg1, arg2); object_to_luaval(tolua_S, "axui.Slider",(ax::ui::Slider*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { ax::ui::Slider* ret = ax::ui::Slider::create(); object_to_luaval(tolua_S, "axui.Slider",(ax::ui::Slider*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.Slider:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_createInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Slider",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_createInstance'", nullptr); return 0; } ax::Ref* ret = ax::ui::Slider::createInstance(); object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Slider:createInstance",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_createInstance'.",&tolua_err); #endif return 0; } int lua_ax_ui_Slider_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::Slider* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Slider_constructor'", nullptr); return 0; } cobj = new ax::ui::Slider(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.Slider"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Slider:Slider",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Slider_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_Slider_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Slider)"); return 0; } int lua_register_ax_ui_Slider(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.Slider"); tolua_cclass(tolua_S,"Slider","axui.Slider","axui.Widget",nullptr); tolua_beginmodule(tolua_S,"Slider"); tolua_function(tolua_S,"new",lua_ax_ui_Slider_constructor); tolua_function(tolua_S,"setPercent",lua_ax_ui_Slider_setPercent); tolua_function(tolua_S,"getMaxPercent",lua_ax_ui_Slider_getMaxPercent); tolua_function(tolua_S,"loadSlidBallTextureNormal",lua_ax_ui_Slider_loadSlidBallTextureNormal); tolua_function(tolua_S,"loadProgressBarTexture",lua_ax_ui_Slider_loadProgressBarTexture); tolua_function(tolua_S,"getBallNormalFile",lua_ax_ui_Slider_getBallNormalFile); tolua_function(tolua_S,"getSlidBallDisabledRenderer",lua_ax_ui_Slider_getSlidBallDisabledRenderer); tolua_function(tolua_S,"setScale9Enabled",lua_ax_ui_Slider_setScale9Enabled); tolua_function(tolua_S,"getBallPressedFile",lua_ax_ui_Slider_getBallPressedFile); tolua_function(tolua_S,"getZoomScale",lua_ax_ui_Slider_getZoomScale); tolua_function(tolua_S,"setCapInsetProgressBarRenderer",lua_ax_ui_Slider_setCapInsetProgressBarRenderer); tolua_function(tolua_S,"loadSlidBallTextures",lua_ax_ui_Slider_loadSlidBallTextures); tolua_function(tolua_S,"getSlidBallRenderer",lua_ax_ui_Slider_getSlidBallRenderer); tolua_function(tolua_S,"addEventListener",lua_ax_ui_Slider_addEventListener); tolua_function(tolua_S,"setMaxPercent",lua_ax_ui_Slider_setMaxPercent); tolua_function(tolua_S,"loadBarTexture",lua_ax_ui_Slider_loadBarTexture); tolua_function(tolua_S,"getProgressBarFile",lua_ax_ui_Slider_getProgressBarFile); tolua_function(tolua_S,"getCapInsetsBarRenderer",lua_ax_ui_Slider_getCapInsetsBarRenderer); tolua_function(tolua_S,"updateVisualSlider",lua_ax_ui_Slider_updateVisualSlider); tolua_function(tolua_S,"getCapInsetsProgressBarRenderer",lua_ax_ui_Slider_getCapInsetsProgressBarRenderer); tolua_function(tolua_S,"getSlidBallPressedRenderer",lua_ax_ui_Slider_getSlidBallPressedRenderer); tolua_function(tolua_S,"loadSlidBallTexturePressed",lua_ax_ui_Slider_loadSlidBallTexturePressed); tolua_function(tolua_S,"getBackFile",lua_ax_ui_Slider_getBackFile); tolua_function(tolua_S,"isScale9Enabled",lua_ax_ui_Slider_isScale9Enabled); tolua_function(tolua_S,"getBallDisabledFile",lua_ax_ui_Slider_getBallDisabledFile); tolua_function(tolua_S,"setCapInsetsBarRenderer",lua_ax_ui_Slider_setCapInsetsBarRenderer); tolua_function(tolua_S,"getPercent",lua_ax_ui_Slider_getPercent); tolua_function(tolua_S,"setCapInsets",lua_ax_ui_Slider_setCapInsets); tolua_function(tolua_S,"loadSlidBallTextureDisabled",lua_ax_ui_Slider_loadSlidBallTextureDisabled); tolua_function(tolua_S,"getSlidBallNormalRenderer",lua_ax_ui_Slider_getSlidBallNormalRenderer); tolua_function(tolua_S,"setZoomScale",lua_ax_ui_Slider_setZoomScale); tolua_function(tolua_S,"create", lua_ax_ui_Slider_create); tolua_function(tolua_S,"createInstance", lua_ax_ui_Slider_createInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::Slider).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.Slider"; g_typeCast[typeName] = "axui.Slider"; return 1; } int lua_ax_ui_TextField_setAttachWithIME(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setAttachWithIME'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setAttachWithIME"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setAttachWithIME'", nullptr); return 0; } cobj->setAttachWithIME(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setAttachWithIME",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setAttachWithIME'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_getFontSize(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getFontSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getFontSize'", nullptr); return 0; } int ret = cobj->getFontSize(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getFontSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getFontSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_getString(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getString'", nullptr); return 0; } std::string_view ret = cobj->getString(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getString",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getString'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setPasswordStyleText(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setPasswordStyleText'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextField:setPasswordStyleText"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setPasswordStyleText'", nullptr); return 0; } cobj->setPasswordStyleText(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setPasswordStyleText",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setPasswordStyleText'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_getDeleteBackward(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getDeleteBackward'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getDeleteBackward'", nullptr); return 0; } bool ret = cobj->getDeleteBackward(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getDeleteBackward",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getDeleteBackward'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_getTextColor(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getTextColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getTextColor'", nullptr); return 0; } const ax::Color4B& ret = cobj->getTextColor(); color4b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getTextColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getTextColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_detachWithIME(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_detachWithIME'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_detachWithIME'", nullptr); return 0; } cobj->detachWithIME(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:detachWithIME",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_detachWithIME'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_getPlaceHolder(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getPlaceHolder'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getPlaceHolder'", nullptr); return 0; } std::string_view ret = cobj->getPlaceHolder(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getPlaceHolder",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getPlaceHolder'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_getAttachWithIME(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getAttachWithIME'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getAttachWithIME'", nullptr); return 0; } bool ret = cobj->getAttachWithIME(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getAttachWithIME",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getAttachWithIME'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setFontName(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setFontName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextField:setFontName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setFontName'", nullptr); return 0; } cobj->setFontName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setFontName",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setFontName'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_getInsertText(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getInsertText'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getInsertText'", nullptr); return 0; } bool ret = cobj->getInsertText(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getInsertText",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getInsertText'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setInsertText(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setInsertText'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setInsertText"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setInsertText'", nullptr); return 0; } cobj->setInsertText(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setInsertText",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setInsertText'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setString(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextField:setString"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setString'", nullptr); return 0; } cobj->setString(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setString",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setString'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_getDetachWithIME(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getDetachWithIME'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getDetachWithIME'", nullptr); return 0; } bool ret = cobj->getDetachWithIME(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getDetachWithIME",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getDetachWithIME'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setTextVerticalAlignment(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setTextVerticalAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::TextVAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TextField:setTextVerticalAlignment"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setTextVerticalAlignment'", nullptr); return 0; } cobj->setTextVerticalAlignment(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setTextVerticalAlignment",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setTextVerticalAlignment'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_addEventListener(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_addEventListener'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::function arg0; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_addEventListener'", nullptr); return 0; } cobj->addEventListener(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:addEventListener",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_addEventListener'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_didNotSelectSelf(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_didNotSelectSelf'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_didNotSelectSelf'", nullptr); return 0; } cobj->didNotSelectSelf(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:didNotSelectSelf",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_didNotSelectSelf'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_getFontName(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getFontName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getFontName'", nullptr); return 0; } std::string_view ret = cobj->getFontName(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getFontName",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getFontName'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setTextAreaSize(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setTextAreaSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.TextField:setTextAreaSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setTextAreaSize'", nullptr); return 0; } cobj->setTextAreaSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setTextAreaSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setTextAreaSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_attachWithIME(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_attachWithIME'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_attachWithIME'", nullptr); return 0; } cobj->attachWithIME(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:attachWithIME",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_attachWithIME'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_getStringLength(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getStringLength'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getStringLength'", nullptr); return 0; } int ret = cobj->getStringLength(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getStringLength",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getStringLength'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_getAutoRenderSize(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getAutoRenderSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getAutoRenderSize'", nullptr); return 0; } ax::Vec2 ret = cobj->getAutoRenderSize(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getAutoRenderSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getAutoRenderSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setPasswordEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setPasswordEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setPasswordEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setPasswordEnabled'", nullptr); return 0; } cobj->setPasswordEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setPasswordEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setPasswordEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_getPlaceHolderColor(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getPlaceHolderColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getPlaceHolderColor'", nullptr); return 0; } const ax::Color4B& ret = cobj->getPlaceHolderColor(); color4b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getPlaceHolderColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getPlaceHolderColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_getPasswordStyleText(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getPasswordStyleText'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getPasswordStyleText'", nullptr); return 0; } std::string_view ret = cobj->getPasswordStyleText(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getPasswordStyleText",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getPasswordStyleText'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setMaxLengthEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setMaxLengthEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setMaxLengthEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setMaxLengthEnabled'", nullptr); return 0; } cobj->setMaxLengthEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setMaxLengthEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setMaxLengthEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_isPasswordEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_isPasswordEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_isPasswordEnabled'", nullptr); return 0; } bool ret = cobj->isPasswordEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:isPasswordEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_isPasswordEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setDeleteBackward(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setDeleteBackward'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setDeleteBackward"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setDeleteBackward'", nullptr); return 0; } cobj->setDeleteBackward(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setDeleteBackward",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setDeleteBackward'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setCursorPosition(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setCursorPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { unsigned int arg0; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "axui.TextField:setCursorPosition"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setCursorPosition'", nullptr); return 0; } cobj->setCursorPosition(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setCursorPosition",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setCursorPosition'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_getTextHorizontalAlignment(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getTextHorizontalAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getTextHorizontalAlignment'", nullptr); return 0; } int ret = (int)cobj->getTextHorizontalAlignment(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getTextHorizontalAlignment",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getTextHorizontalAlignment'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setFontSize(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setFontSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TextField:setFontSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setFontSize'", nullptr); return 0; } cobj->setFontSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setFontSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setFontSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setPlaceHolder(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setPlaceHolder'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextField:setPlaceHolder"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setPlaceHolder'", nullptr); return 0; } cobj->setPlaceHolder(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setPlaceHolder",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setPlaceHolder'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setCursorFromPoint(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setCursorFromPoint'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { ax::Vec2 arg0; const ax::Camera* arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.TextField:setCursorFromPoint"); ok &= luaval_to_object(tolua_S, 3, "ax.Camera",&arg1, "axui.TextField:setCursorFromPoint"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setCursorFromPoint'", nullptr); return 0; } cobj->setCursorFromPoint(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setCursorFromPoint",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setCursorFromPoint'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setPlaceHolderColor(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setPlaceHolderColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { ax::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.TextField:setPlaceHolderColor"); if (!ok) { break; } cobj->setPlaceHolderColor(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { ax::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.TextField:setPlaceHolderColor"); if (!ok) { break; } cobj->setPlaceHolderColor(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setPlaceHolderColor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setPlaceHolderColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setTextHorizontalAlignment(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setTextHorizontalAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TextField:setTextHorizontalAlignment"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setTextHorizontalAlignment'", nullptr); return 0; } cobj->setTextHorizontalAlignment(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setTextHorizontalAlignment",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setTextHorizontalAlignment'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setTextColor(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setTextColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.TextField:setTextColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setTextColor'", nullptr); return 0; } cobj->setTextColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setTextColor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setTextColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setCursorChar(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setCursorChar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int32_t arg0; ok &= luaval_to_int32(tolua_S, 2,&arg0, "axui.TextField:setCursorChar"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setCursorChar'", nullptr); return 0; } cobj->setCursorChar(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setCursorChar",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setCursorChar'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_getMaxLength(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getMaxLength'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getMaxLength'", nullptr); return 0; } int ret = cobj->getMaxLength(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getMaxLength",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getMaxLength'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_isMaxLengthEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_isMaxLengthEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_isMaxLengthEnabled'", nullptr); return 0; } bool ret = cobj->isMaxLengthEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:isMaxLengthEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_isMaxLengthEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setDetachWithIME(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setDetachWithIME'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setDetachWithIME"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setDetachWithIME'", nullptr); return 0; } cobj->setDetachWithIME(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setDetachWithIME",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setDetachWithIME'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_getTextVerticalAlignment(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getTextVerticalAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getTextVerticalAlignment'", nullptr); return 0; } int ret = (int)cobj->getTextVerticalAlignment(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getTextVerticalAlignment",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getTextVerticalAlignment'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setTouchAreaEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setTouchAreaEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setTouchAreaEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setTouchAreaEnabled'", nullptr); return 0; } cobj->setTouchAreaEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setTouchAreaEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setTouchAreaEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setMaxLength(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setMaxLength'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TextField:setMaxLength"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setMaxLength'", nullptr); return 0; } cobj->setMaxLength(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setMaxLength",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setMaxLength'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setCursorEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setCursorEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TextField:setCursorEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setCursorEnabled'", nullptr); return 0; } cobj->setCursorEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setCursorEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setCursorEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_setTouchSize(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_setTouchSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.TextField:setTouchSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_setTouchSize'", nullptr); return 0; } cobj->setTouchSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:setTouchSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_setTouchSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_getTouchSize(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextField_getTouchSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_getTouchSize'", nullptr); return 0; } ax::Vec2 ret = cobj->getTouchSize(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:getTouchSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_getTouchSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 3) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextField:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.TextField:create"); if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "axui.TextField:create"); if (!ok) { break; } ax::ui::TextField* ret = ax::ui::TextField::create(arg0, arg1, arg2); object_to_luaval(tolua_S, "axui.TextField",(ax::ui::TextField*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { ax::ui::TextField* ret = ax::ui::TextField::create(); object_to_luaval(tolua_S, "axui.TextField",(ax::ui::TextField*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.TextField:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_createInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.TextField",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_createInstance'", nullptr); return 0; } ax::Ref* ret = ax::ui::TextField::createInstance(); object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.TextField:createInstance",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_createInstance'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextField_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::TextField* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextField_constructor'", nullptr); return 0; } cobj = new ax::ui::TextField(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.TextField"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextField:TextField",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextField_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_TextField_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TextField)"); return 0; } int lua_register_ax_ui_TextField(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.TextField"); tolua_cclass(tolua_S,"TextField","axui.TextField","axui.Widget",nullptr); tolua_beginmodule(tolua_S,"TextField"); tolua_function(tolua_S,"new",lua_ax_ui_TextField_constructor); tolua_function(tolua_S,"setAttachWithIME",lua_ax_ui_TextField_setAttachWithIME); tolua_function(tolua_S,"getFontSize",lua_ax_ui_TextField_getFontSize); tolua_function(tolua_S,"getString",lua_ax_ui_TextField_getString); tolua_function(tolua_S,"setPasswordStyleText",lua_ax_ui_TextField_setPasswordStyleText); tolua_function(tolua_S,"getDeleteBackward",lua_ax_ui_TextField_getDeleteBackward); tolua_function(tolua_S,"getTextColor",lua_ax_ui_TextField_getTextColor); tolua_function(tolua_S,"detachWithIME",lua_ax_ui_TextField_detachWithIME); tolua_function(tolua_S,"getPlaceHolder",lua_ax_ui_TextField_getPlaceHolder); tolua_function(tolua_S,"getAttachWithIME",lua_ax_ui_TextField_getAttachWithIME); tolua_function(tolua_S,"setFontName",lua_ax_ui_TextField_setFontName); tolua_function(tolua_S,"getInsertText",lua_ax_ui_TextField_getInsertText); tolua_function(tolua_S,"setInsertText",lua_ax_ui_TextField_setInsertText); tolua_function(tolua_S,"setString",lua_ax_ui_TextField_setString); tolua_function(tolua_S,"getDetachWithIME",lua_ax_ui_TextField_getDetachWithIME); tolua_function(tolua_S,"setTextVerticalAlignment",lua_ax_ui_TextField_setTextVerticalAlignment); tolua_function(tolua_S,"addEventListener",lua_ax_ui_TextField_addEventListener); tolua_function(tolua_S,"didNotSelectSelf",lua_ax_ui_TextField_didNotSelectSelf); tolua_function(tolua_S,"getFontName",lua_ax_ui_TextField_getFontName); tolua_function(tolua_S,"setTextAreaSize",lua_ax_ui_TextField_setTextAreaSize); tolua_function(tolua_S,"attachWithIME",lua_ax_ui_TextField_attachWithIME); tolua_function(tolua_S,"getStringLength",lua_ax_ui_TextField_getStringLength); tolua_function(tolua_S,"getAutoRenderSize",lua_ax_ui_TextField_getAutoRenderSize); tolua_function(tolua_S,"setPasswordEnabled",lua_ax_ui_TextField_setPasswordEnabled); tolua_function(tolua_S,"getPlaceHolderColor",lua_ax_ui_TextField_getPlaceHolderColor); tolua_function(tolua_S,"getPasswordStyleText",lua_ax_ui_TextField_getPasswordStyleText); tolua_function(tolua_S,"setMaxLengthEnabled",lua_ax_ui_TextField_setMaxLengthEnabled); tolua_function(tolua_S,"isPasswordEnabled",lua_ax_ui_TextField_isPasswordEnabled); tolua_function(tolua_S,"setDeleteBackward",lua_ax_ui_TextField_setDeleteBackward); tolua_function(tolua_S,"setCursorPosition",lua_ax_ui_TextField_setCursorPosition); tolua_function(tolua_S,"getTextHorizontalAlignment",lua_ax_ui_TextField_getTextHorizontalAlignment); tolua_function(tolua_S,"setFontSize",lua_ax_ui_TextField_setFontSize); tolua_function(tolua_S,"setPlaceHolder",lua_ax_ui_TextField_setPlaceHolder); tolua_function(tolua_S,"setCursorFromPoint",lua_ax_ui_TextField_setCursorFromPoint); tolua_function(tolua_S,"setPlaceHolderColor",lua_ax_ui_TextField_setPlaceHolderColor); tolua_function(tolua_S,"setTextHorizontalAlignment",lua_ax_ui_TextField_setTextHorizontalAlignment); tolua_function(tolua_S,"setTextColor",lua_ax_ui_TextField_setTextColor); tolua_function(tolua_S,"setCursorChar",lua_ax_ui_TextField_setCursorChar); tolua_function(tolua_S,"getMaxLength",lua_ax_ui_TextField_getMaxLength); tolua_function(tolua_S,"isMaxLengthEnabled",lua_ax_ui_TextField_isMaxLengthEnabled); tolua_function(tolua_S,"setDetachWithIME",lua_ax_ui_TextField_setDetachWithIME); tolua_function(tolua_S,"getTextVerticalAlignment",lua_ax_ui_TextField_getTextVerticalAlignment); tolua_function(tolua_S,"setTouchAreaEnabled",lua_ax_ui_TextField_setTouchAreaEnabled); tolua_function(tolua_S,"setMaxLength",lua_ax_ui_TextField_setMaxLength); tolua_function(tolua_S,"setCursorEnabled",lua_ax_ui_TextField_setCursorEnabled); tolua_function(tolua_S,"setTouchSize",lua_ax_ui_TextField_setTouchSize); tolua_function(tolua_S,"getTouchSize",lua_ax_ui_TextField_getTouchSize); tolua_function(tolua_S,"create", lua_ax_ui_TextField_create); tolua_function(tolua_S,"createInstance", lua_ax_ui_TextField_createInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::TextField).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.TextField"; g_typeCast[typeName] = "axui.TextField"; return 1; } int lua_ax_ui_TextBMFont_getStringLength(lua_State* tolua_S) { int argc = 0; ax::ui::TextBMFont* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextBMFont",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextBMFont_getStringLength'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextBMFont_getStringLength'", nullptr); return 0; } ssize_t ret = cobj->getStringLength(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextBMFont:getStringLength",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextBMFont_getStringLength'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextBMFont_getString(lua_State* tolua_S) { int argc = 0; ax::ui::TextBMFont* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextBMFont",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextBMFont_getString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextBMFont_getString'", nullptr); return 0; } std::string_view ret = cobj->getString(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextBMFont:getString",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextBMFont_getString'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextBMFont_setString(lua_State* tolua_S) { int argc = 0; ax::ui::TextBMFont* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextBMFont",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextBMFont_setString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextBMFont:setString"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextBMFont_setString'", nullptr); return 0; } cobj->setString(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextBMFont:setString",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextBMFont_setString'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextBMFont_getRenderFile(lua_State* tolua_S) { int argc = 0; ax::ui::TextBMFont* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextBMFont",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextBMFont_getRenderFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextBMFont_getRenderFile'", nullptr); return 0; } ax::ResourceData ret = cobj->getRenderFile(); resourceData_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextBMFont:getRenderFile",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextBMFont_getRenderFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextBMFont_setFntFile(lua_State* tolua_S) { int argc = 0; ax::ui::TextBMFont* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextBMFont",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextBMFont_setFntFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextBMFont:setFntFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextBMFont_setFntFile'", nullptr); return 0; } cobj->setFntFile(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextBMFont:setFntFile",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextBMFont_setFntFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextBMFont_resetRender(lua_State* tolua_S) { int argc = 0; ax::ui::TextBMFont* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TextBMFont",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TextBMFont_resetRender'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextBMFont_resetRender'", nullptr); return 0; } cobj->resetRender(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextBMFont:resetRender",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextBMFont_resetRender'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextBMFont_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.TextBMFont",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TextBMFont:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.TextBMFont:create"); if (!ok) { break; } ax::ui::TextBMFont* ret = ax::ui::TextBMFont::create(arg0, arg1); object_to_luaval(tolua_S, "axui.TextBMFont",(ax::ui::TextBMFont*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { ax::ui::TextBMFont* ret = ax::ui::TextBMFont::create(); object_to_luaval(tolua_S, "axui.TextBMFont",(ax::ui::TextBMFont*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.TextBMFont:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextBMFont_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextBMFont_createInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.TextBMFont",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextBMFont_createInstance'", nullptr); return 0; } ax::Ref* ret = ax::ui::TextBMFont::createInstance(); object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.TextBMFont:createInstance",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextBMFont_createInstance'.",&tolua_err); #endif return 0; } int lua_ax_ui_TextBMFont_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::TextBMFont* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TextBMFont_constructor'", nullptr); return 0; } cobj = new ax::ui::TextBMFont(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.TextBMFont"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TextBMFont:TextBMFont",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TextBMFont_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_TextBMFont_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TextBMFont)"); return 0; } int lua_register_ax_ui_TextBMFont(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.TextBMFont"); tolua_cclass(tolua_S,"TextBMFont","axui.TextBMFont","axui.Widget",nullptr); tolua_beginmodule(tolua_S,"TextBMFont"); tolua_function(tolua_S,"new",lua_ax_ui_TextBMFont_constructor); tolua_function(tolua_S,"getStringLength",lua_ax_ui_TextBMFont_getStringLength); tolua_function(tolua_S,"getString",lua_ax_ui_TextBMFont_getString); tolua_function(tolua_S,"setString",lua_ax_ui_TextBMFont_setString); tolua_function(tolua_S,"getRenderFile",lua_ax_ui_TextBMFont_getRenderFile); tolua_function(tolua_S,"setFntFile",lua_ax_ui_TextBMFont_setFntFile); tolua_function(tolua_S,"resetRender",lua_ax_ui_TextBMFont_resetRender); tolua_function(tolua_S,"create", lua_ax_ui_TextBMFont_create); tolua_function(tolua_S,"createInstance", lua_ax_ui_TextBMFont_createInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::TextBMFont).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.TextBMFont"; g_typeCast[typeName] = "axui.TextBMFont"; return 1; } int lua_ax_ui_PageView_setIndicatorSpaceBetweenIndexNodes(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorSpaceBetweenIndexNodes'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.PageView:setIndicatorSpaceBetweenIndexNodes"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorSpaceBetweenIndexNodes'", nullptr); return 0; } cobj->setIndicatorSpaceBetweenIndexNodes(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorSpaceBetweenIndexNodes",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorSpaceBetweenIndexNodes'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_insertPage(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_insertPage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { ax::ui::Widget* arg0; int arg1; ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.PageView:insertPage"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.PageView:insertPage"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_insertPage'", nullptr); return 0; } cobj->insertPage(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:insertPage",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_insertPage'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_setIndicatorIndexNodesOpacity(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorIndexNodesOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { uint16_t arg0; ok &= luaval_to_uint16(tolua_S, 2,&arg0, "axui.PageView:setIndicatorIndexNodesOpacity"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorIndexNodesOpacity'", nullptr); return 0; } cobj->setIndicatorIndexNodesOpacity(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorIndexNodesOpacity",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorIndexNodesOpacity'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_setIndicatorSelectedIndexOpacity(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorSelectedIndexOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { uint16_t arg0; ok &= luaval_to_uint16(tolua_S, 2,&arg0, "axui.PageView:setIndicatorSelectedIndexOpacity"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorSelectedIndexOpacity'", nullptr); return 0; } cobj->setIndicatorSelectedIndexOpacity(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorSelectedIndexOpacity",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorSelectedIndexOpacity'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_removeAllPages(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_removeAllPages'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_removeAllPages'", nullptr); return 0; } cobj->removeAllPages(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:removeAllPages",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_removeAllPages'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_setAutoScrollStopEpsilon(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setAutoScrollStopEpsilon'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.PageView:setAutoScrollStopEpsilon"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setAutoScrollStopEpsilon'", nullptr); return 0; } cobj->setAutoScrollStopEpsilon(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setAutoScrollStopEpsilon",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setAutoScrollStopEpsilon'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_setIndicatorIndexNodesScale(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorIndexNodesScale'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.PageView:setIndicatorIndexNodesScale"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorIndexNodesScale'", nullptr); return 0; } cobj->setIndicatorIndexNodesScale(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorIndexNodesScale",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorIndexNodesScale'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_setIndicatorEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.PageView:setIndicatorEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorEnabled'", nullptr); return 0; } cobj->setIndicatorEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_setIndicatorSelectedIndexColor(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorSelectedIndexColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.PageView:setIndicatorSelectedIndexColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorSelectedIndexColor'", nullptr); return 0; } cobj->setIndicatorSelectedIndexColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorSelectedIndexColor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorSelectedIndexColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_addEventListener(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_addEventListener'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::function arg0; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_addEventListener'", nullptr); return 0; } cobj->addEventListener(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:addEventListener",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_addEventListener'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_getIndicatorPosition(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorPosition'", nullptr); return 0; } const ax::Vec2& ret = cobj->getIndicatorPosition(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorPosition",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorPosition'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_setCurrentPageIndex(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setCurrentPageIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ssize_t arg0; ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.PageView:setCurrentPageIndex"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setCurrentPageIndex'", nullptr); return 0; } cobj->setCurrentPageIndex(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setCurrentPageIndex",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setCurrentPageIndex'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_getIndicatorIndexNodesColor(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorIndexNodesColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorIndexNodesColor'", nullptr); return 0; } const ax::Color3B& ret = cobj->getIndicatorIndexNodesColor(); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorIndexNodesColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorIndexNodesColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_getIndicatorSelectedIndexColor(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorSelectedIndexColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorSelectedIndexColor'", nullptr); return 0; } const ax::Color3B& ret = cobj->getIndicatorSelectedIndexColor(); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorSelectedIndexColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorSelectedIndexColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_getIndicatorIndexNodesScale(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorIndexNodesScale'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorIndexNodesScale'", nullptr); return 0; } double ret = cobj->getIndicatorIndexNodesScale(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorIndexNodesScale",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorIndexNodesScale'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_setIndicatorPosition(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.PageView:setIndicatorPosition"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorPosition'", nullptr); return 0; } cobj->setIndicatorPosition(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorPosition",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorPosition'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_getIndicatorSelectedIndexOpacity(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorSelectedIndexOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorSelectedIndexOpacity'", nullptr); return 0; } uint16_t ret = cobj->getIndicatorSelectedIndexOpacity(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorSelectedIndexOpacity",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorSelectedIndexOpacity'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_scrollToPage(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_scrollToPage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { ssize_t arg0; ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.PageView:scrollToPage"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "axui.PageView:scrollToPage"); if (!ok) { break; } cobj->scrollToPage(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { ssize_t arg0; ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.PageView:scrollToPage"); if (!ok) { break; } cobj->scrollToPage(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:scrollToPage",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_scrollToPage'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_setIndicatorPositionAsAnchorPoint(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorPositionAsAnchorPoint'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.PageView:setIndicatorPositionAsAnchorPoint"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorPositionAsAnchorPoint'", nullptr); return 0; } cobj->setIndicatorPositionAsAnchorPoint(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorPositionAsAnchorPoint",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorPositionAsAnchorPoint'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_scrollToItem(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_scrollToItem'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { ssize_t arg0; ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.PageView:scrollToItem"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "axui.PageView:scrollToItem"); if (!ok) { break; } cobj->scrollToItem(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { ssize_t arg0; ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.PageView:scrollToItem"); if (!ok) { break; } cobj->scrollToItem(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:scrollToItem",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_scrollToItem'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_setIndicatorIndexNodesColor(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorIndexNodesColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.PageView:setIndicatorIndexNodesColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorIndexNodesColor'", nullptr); return 0; } cobj->setIndicatorIndexNodesColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorIndexNodesColor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorIndexNodesColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_getIndicatorIndexNodesOpacity(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorIndexNodesOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorIndexNodesOpacity'", nullptr); return 0; } uint16_t ret = cobj->getIndicatorIndexNodesOpacity(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorIndexNodesOpacity",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorIndexNodesOpacity'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_getIndicatorPositionAsAnchorPoint(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorPositionAsAnchorPoint'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorPositionAsAnchorPoint'", nullptr); return 0; } const ax::Vec2& ret = cobj->getIndicatorPositionAsAnchorPoint(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorPositionAsAnchorPoint",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorPositionAsAnchorPoint'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_getCurrentPageIndex(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getCurrentPageIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getCurrentPageIndex'", nullptr); return 0; } ssize_t ret = cobj->getCurrentPageIndex(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getCurrentPageIndex",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getCurrentPageIndex'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_removePage(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_removePage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::Widget* arg0; ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.PageView:removePage"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_removePage'", nullptr); return 0; } cobj->removePage(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:removePage",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_removePage'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_setIndicatorIndexNodesTexture(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_setIndicatorIndexNodesTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.PageView:setIndicatorIndexNodesTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorIndexNodesTexture'", nullptr); return 0; } cobj->setIndicatorIndexNodesTexture(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.PageView:setIndicatorIndexNodesTexture"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.PageView:setIndicatorIndexNodesTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_setIndicatorIndexNodesTexture'", nullptr); return 0; } cobj->setIndicatorIndexNodesTexture(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:setIndicatorIndexNodesTexture",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_setIndicatorIndexNodesTexture'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_getIndicatorEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorEnabled'", nullptr); return 0; } bool ret = cobj->getIndicatorEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_removePageAtIndex(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_removePageAtIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ssize_t arg0; ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "axui.PageView:removePageAtIndex"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_removePageAtIndex'", nullptr); return 0; } cobj->removePageAtIndex(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:removePageAtIndex",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_removePageAtIndex'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_getIndicatorSpaceBetweenIndexNodes(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_getIndicatorSpaceBetweenIndexNodes'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_getIndicatorSpaceBetweenIndexNodes'", nullptr); return 0; } double ret = cobj->getIndicatorSpaceBetweenIndexNodes(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:getIndicatorSpaceBetweenIndexNodes",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_getIndicatorSpaceBetweenIndexNodes'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_addPage(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_PageView_addPage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::Widget* arg0; ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.PageView:addPage"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_addPage'", nullptr); return 0; } cobj->addPage(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:addPage",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_addPage'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_create'", nullptr); return 0; } ax::ui::PageView* ret = ax::ui::PageView::create(); object_to_luaval(tolua_S, "axui.PageView",(ax::ui::PageView*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.PageView:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_createInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.PageView",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_createInstance'", nullptr); return 0; } ax::Ref* ret = ax::ui::PageView::createInstance(); object_to_luaval(tolua_S, "ax.Ref",(ax::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.PageView:createInstance",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_createInstance'.",&tolua_err); #endif return 0; } int lua_ax_ui_PageView_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::PageView* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_PageView_constructor'", nullptr); return 0; } cobj = new ax::ui::PageView(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.PageView"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.PageView:PageView",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_PageView_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_PageView_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (PageView)"); return 0; } int lua_register_ax_ui_PageView(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.PageView"); tolua_cclass(tolua_S,"PageView","axui.PageView","axui.ListView",nullptr); tolua_beginmodule(tolua_S,"PageView"); tolua_function(tolua_S,"new",lua_ax_ui_PageView_constructor); tolua_function(tolua_S,"setIndicatorSpaceBetweenIndexNodes",lua_ax_ui_PageView_setIndicatorSpaceBetweenIndexNodes); tolua_function(tolua_S,"insertPage",lua_ax_ui_PageView_insertPage); tolua_function(tolua_S,"setIndicatorIndexNodesOpacity",lua_ax_ui_PageView_setIndicatorIndexNodesOpacity); tolua_function(tolua_S,"setIndicatorSelectedIndexOpacity",lua_ax_ui_PageView_setIndicatorSelectedIndexOpacity); tolua_function(tolua_S,"removeAllPages",lua_ax_ui_PageView_removeAllPages); tolua_function(tolua_S,"setAutoScrollStopEpsilon",lua_ax_ui_PageView_setAutoScrollStopEpsilon); tolua_function(tolua_S,"setIndicatorIndexNodesScale",lua_ax_ui_PageView_setIndicatorIndexNodesScale); tolua_function(tolua_S,"setIndicatorEnabled",lua_ax_ui_PageView_setIndicatorEnabled); tolua_function(tolua_S,"setIndicatorSelectedIndexColor",lua_ax_ui_PageView_setIndicatorSelectedIndexColor); tolua_function(tolua_S,"addEventListener",lua_ax_ui_PageView_addEventListener); tolua_function(tolua_S,"getIndicatorPosition",lua_ax_ui_PageView_getIndicatorPosition); tolua_function(tolua_S,"setCurrentPageIndex",lua_ax_ui_PageView_setCurrentPageIndex); tolua_function(tolua_S,"getIndicatorIndexNodesColor",lua_ax_ui_PageView_getIndicatorIndexNodesColor); tolua_function(tolua_S,"getIndicatorSelectedIndexColor",lua_ax_ui_PageView_getIndicatorSelectedIndexColor); tolua_function(tolua_S,"getIndicatorIndexNodesScale",lua_ax_ui_PageView_getIndicatorIndexNodesScale); tolua_function(tolua_S,"setIndicatorPosition",lua_ax_ui_PageView_setIndicatorPosition); tolua_function(tolua_S,"getIndicatorSelectedIndexOpacity",lua_ax_ui_PageView_getIndicatorSelectedIndexOpacity); tolua_function(tolua_S,"scrollToPage",lua_ax_ui_PageView_scrollToPage); tolua_function(tolua_S,"setIndicatorPositionAsAnchorPoint",lua_ax_ui_PageView_setIndicatorPositionAsAnchorPoint); tolua_function(tolua_S,"scrollToItem",lua_ax_ui_PageView_scrollToItem); tolua_function(tolua_S,"setIndicatorIndexNodesColor",lua_ax_ui_PageView_setIndicatorIndexNodesColor); tolua_function(tolua_S,"getIndicatorIndexNodesOpacity",lua_ax_ui_PageView_getIndicatorIndexNodesOpacity); tolua_function(tolua_S,"getIndicatorPositionAsAnchorPoint",lua_ax_ui_PageView_getIndicatorPositionAsAnchorPoint); tolua_function(tolua_S,"getCurrentPageIndex",lua_ax_ui_PageView_getCurrentPageIndex); tolua_function(tolua_S,"removePage",lua_ax_ui_PageView_removePage); tolua_function(tolua_S,"setIndicatorIndexNodesTexture",lua_ax_ui_PageView_setIndicatorIndexNodesTexture); tolua_function(tolua_S,"getIndicatorEnabled",lua_ax_ui_PageView_getIndicatorEnabled); tolua_function(tolua_S,"removePageAtIndex",lua_ax_ui_PageView_removePageAtIndex); tolua_function(tolua_S,"getIndicatorSpaceBetweenIndexNodes",lua_ax_ui_PageView_getIndicatorSpaceBetweenIndexNodes); tolua_function(tolua_S,"addPage",lua_ax_ui_PageView_addPage); tolua_function(tolua_S,"create", lua_ax_ui_PageView_create); tolua_function(tolua_S,"createInstance", lua_ax_ui_PageView_createInstance); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::PageView).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.PageView"; g_typeCast[typeName] = "axui.PageView"; return 1; } int lua_ax_ui_Helper_getSubStringOfUTF8String(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Helper",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 3) { std::string_view arg0; unsigned int arg1; unsigned int arg2; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Helper:getSubStringOfUTF8String"); ok &= luaval_to_uint32(tolua_S, 3,&arg1, "axui.Helper:getSubStringOfUTF8String"); ok &= luaval_to_uint32(tolua_S, 4,&arg2, "axui.Helper:getSubStringOfUTF8String"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_getSubStringOfUTF8String'", nullptr); return 0; } std::string ret = ax::ui::Helper::getSubStringOfUTF8String(arg0, arg1, arg2); lua_pushlstring(tolua_S,ret.c_str(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:getSubStringOfUTF8String",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_getSubStringOfUTF8String'.",&tolua_err); #endif return 0; } int lua_ax_ui_Helper_convertBoundingBoxToScreen(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Helper",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { ax::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "axui.Helper:convertBoundingBoxToScreen"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_convertBoundingBoxToScreen'", nullptr); return 0; } ax::Rect ret = ax::ui::Helper::convertBoundingBoxToScreen(arg0); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:convertBoundingBoxToScreen",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_convertBoundingBoxToScreen'.",&tolua_err); #endif return 0; } int lua_ax_ui_Helper_changeLayoutSystemActiveState(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Helper",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Helper:changeLayoutSystemActiveState"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_changeLayoutSystemActiveState'", nullptr); return 0; } ax::ui::Helper::changeLayoutSystemActiveState(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:changeLayoutSystemActiveState",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_changeLayoutSystemActiveState'.",&tolua_err); #endif return 0; } int lua_ax_ui_Helper_seekActionWidgetByActionTag(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Helper",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { ax::ui::Widget* arg0; int arg1; ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.Helper:seekActionWidgetByActionTag"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Helper:seekActionWidgetByActionTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_seekActionWidgetByActionTag'", nullptr); return 0; } ax::ui::Widget* ret = ax::ui::Helper::seekActionWidgetByActionTag(arg0, arg1); object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:seekActionWidgetByActionTag",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_seekActionWidgetByActionTag'.",&tolua_err); #endif return 0; } int lua_ax_ui_Helper_seekWidgetByName(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Helper",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { ax::ui::Widget* arg0; std::string_view arg1; ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.Helper:seekWidgetByName"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Helper:seekWidgetByName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_seekWidgetByName'", nullptr); return 0; } ax::ui::Widget* ret = ax::ui::Helper::seekWidgetByName(arg0, arg1); object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:seekWidgetByName",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_seekWidgetByName'.",&tolua_err); #endif return 0; } int lua_ax_ui_Helper_seekWidgetByTag(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Helper",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { ax::ui::Widget* arg0; int arg1; ok &= luaval_to_object(tolua_S, 2, "axui.Widget",&arg0, "axui.Helper:seekWidgetByTag"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.Helper:seekWidgetByTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_seekWidgetByTag'", nullptr); return 0; } ax::ui::Widget* ret = ax::ui::Helper::seekWidgetByTag(arg0, arg1); object_to_luaval(tolua_S, "axui.Widget",(ax::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:seekWidgetByTag",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_seekWidgetByTag'.",&tolua_err); #endif return 0; } int lua_ax_ui_Helper_restrictCapInsetRect(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Helper",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { ax::Rect arg0; ax::Vec2 arg1; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Helper:restrictCapInsetRect"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "axui.Helper:restrictCapInsetRect"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_restrictCapInsetRect'", nullptr); return 0; } ax::Rect ret = ax::ui::Helper::restrictCapInsetRect(arg0, arg1); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:restrictCapInsetRect",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_restrictCapInsetRect'.",&tolua_err); #endif return 0; } int lua_ax_ui_Helper_doLayout(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Helper",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { ax::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "axui.Helper:doLayout"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Helper_doLayout'", nullptr); return 0; } ax::ui::Helper::doLayout(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.Helper:doLayout",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Helper_doLayout'.",&tolua_err); #endif return 0; } static int lua_ax_ui_Helper_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Helper)"); return 0; } int lua_register_ax_ui_Helper(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.Helper"); tolua_cclass(tolua_S,"Helper","axui.Helper","",nullptr); tolua_beginmodule(tolua_S,"Helper"); tolua_function(tolua_S,"getSubStringOfUTF8String", lua_ax_ui_Helper_getSubStringOfUTF8String); tolua_function(tolua_S,"convertBoundingBoxToScreen", lua_ax_ui_Helper_convertBoundingBoxToScreen); tolua_function(tolua_S,"changeLayoutSystemActiveState", lua_ax_ui_Helper_changeLayoutSystemActiveState); tolua_function(tolua_S,"seekActionWidgetByActionTag", lua_ax_ui_Helper_seekActionWidgetByActionTag); tolua_function(tolua_S,"seekWidgetByName", lua_ax_ui_Helper_seekWidgetByName); tolua_function(tolua_S,"seekWidgetByTag", lua_ax_ui_Helper_seekWidgetByTag); tolua_function(tolua_S,"restrictCapInsetRect", lua_ax_ui_Helper_restrictCapInsetRect); tolua_function(tolua_S,"doLayout", lua_ax_ui_Helper_doLayout); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::Helper).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.Helper"; g_typeCast[typeName] = "axui.Helper"; return 1; } int lua_ax_ui_RichElement_equalType(lua_State* tolua_S) { int argc = 0; ax::ui::RichElement* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichElement",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichElement*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElement_equalType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::RichElement::Type arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElement:equalType"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElement_equalType'", nullptr); return 0; } bool ret = cobj->equalType(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElement:equalType",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElement_equalType'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichElement_init(lua_State* tolua_S) { int argc = 0; ax::ui::RichElement* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichElement",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichElement*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElement_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { int arg0; ax::Color3B arg1; uint16_t arg2; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElement:init"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElement:init"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElement:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElement_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElement:init",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElement_init'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichElement_setColor(lua_State* tolua_S) { int argc = 0; ax::ui::RichElement* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichElement",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichElement*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElement_setColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.RichElement:setColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElement_setColor'", nullptr); return 0; } cobj->setColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElement:setColor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElement_setColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichElement_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::RichElement* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElement_constructor'", nullptr); return 0; } cobj = new ax::ui::RichElement(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.RichElement"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElement:RichElement",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElement_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_RichElement_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RichElement)"); return 0; } int lua_register_ax_ui_RichElement(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.RichElement"); tolua_cclass(tolua_S,"RichElement","axui.RichElement","ax.Ref",nullptr); tolua_beginmodule(tolua_S,"RichElement"); tolua_function(tolua_S,"new",lua_ax_ui_RichElement_constructor); tolua_function(tolua_S,"equalType",lua_ax_ui_RichElement_equalType); tolua_function(tolua_S,"init",lua_ax_ui_RichElement_init); tolua_function(tolua_S,"setColor",lua_ax_ui_RichElement_setColor); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::RichElement).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.RichElement"; g_typeCast[typeName] = "axui.RichElement"; return 1; } int lua_ax_ui_RichElementText_init(lua_State* tolua_S) { int argc = 0; ax::ui::RichElementText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichElementText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichElementText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElementText_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 8) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementText:init"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementText:init"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementText:init"); ok &= luaval_to_number(tolua_S, 7,&arg5, "axui.RichElementText:init"); ok &= luaval_to_uint32(tolua_S, 8,&arg6, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 9,&arg7, "axui.RichElementText:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementText_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 9) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; ax::Color3B arg8; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementText:init"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementText:init"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementText:init"); ok &= luaval_to_number(tolua_S, 7,&arg5, "axui.RichElementText:init"); ok &= luaval_to_uint32(tolua_S, 8,&arg6, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 9,&arg7, "axui.RichElementText:init"); ok &= luaval_to_color3b(tolua_S, 10, &arg8, "axui.RichElementText:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementText_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 10) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; ax::Color3B arg8; int arg9; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementText:init"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementText:init"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementText:init"); ok &= luaval_to_number(tolua_S, 7,&arg5, "axui.RichElementText:init"); ok &= luaval_to_uint32(tolua_S, 8,&arg6, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 9,&arg7, "axui.RichElementText:init"); ok &= luaval_to_color3b(tolua_S, 10, &arg8, "axui.RichElementText:init"); ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "axui.RichElementText:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementText_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 11) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; ax::Color3B arg8; int arg9; ax::Color3B arg10; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementText:init"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementText:init"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementText:init"); ok &= luaval_to_number(tolua_S, 7,&arg5, "axui.RichElementText:init"); ok &= luaval_to_uint32(tolua_S, 8,&arg6, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 9,&arg7, "axui.RichElementText:init"); ok &= luaval_to_color3b(tolua_S, 10, &arg8, "axui.RichElementText:init"); ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "axui.RichElementText:init"); ok &= luaval_to_color3b(tolua_S, 12, &arg10, "axui.RichElementText:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementText_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 12) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; ax::Color3B arg8; int arg9; ax::Color3B arg10; ax::Vec2 arg11; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementText:init"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementText:init"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementText:init"); ok &= luaval_to_number(tolua_S, 7,&arg5, "axui.RichElementText:init"); ok &= luaval_to_uint32(tolua_S, 8,&arg6, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 9,&arg7, "axui.RichElementText:init"); ok &= luaval_to_color3b(tolua_S, 10, &arg8, "axui.RichElementText:init"); ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "axui.RichElementText:init"); ok &= luaval_to_color3b(tolua_S, 12, &arg10, "axui.RichElementText:init"); ok &= luaval_to_vec2(tolua_S, 13, &arg11, "axui.RichElementText:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementText_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 13) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; ax::Color3B arg8; int arg9; ax::Color3B arg10; ax::Vec2 arg11; int arg12; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementText:init"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementText:init"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementText:init"); ok &= luaval_to_number(tolua_S, 7,&arg5, "axui.RichElementText:init"); ok &= luaval_to_uint32(tolua_S, 8,&arg6, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 9,&arg7, "axui.RichElementText:init"); ok &= luaval_to_color3b(tolua_S, 10, &arg8, "axui.RichElementText:init"); ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "axui.RichElementText:init"); ok &= luaval_to_color3b(tolua_S, 12, &arg10, "axui.RichElementText:init"); ok &= luaval_to_vec2(tolua_S, 13, &arg11, "axui.RichElementText:init"); ok &= luaval_to_int32(tolua_S, 14,(int *)&arg12, "axui.RichElementText:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementText_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 14) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; ax::Color3B arg8; int arg9; ax::Color3B arg10; ax::Vec2 arg11; int arg12; ax::Color3B arg13; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementText:init"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementText:init"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementText:init"); ok &= luaval_to_number(tolua_S, 7,&arg5, "axui.RichElementText:init"); ok &= luaval_to_uint32(tolua_S, 8,&arg6, "axui.RichElementText:init"); ok &= luaval_to_std_string_view(tolua_S, 9,&arg7, "axui.RichElementText:init"); ok &= luaval_to_color3b(tolua_S, 10, &arg8, "axui.RichElementText:init"); ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "axui.RichElementText:init"); ok &= luaval_to_color3b(tolua_S, 12, &arg10, "axui.RichElementText:init"); ok &= luaval_to_vec2(tolua_S, 13, &arg11, "axui.RichElementText:init"); ok &= luaval_to_int32(tolua_S, 14,(int *)&arg12, "axui.RichElementText:init"); ok &= luaval_to_color3b(tolua_S, 15, &arg13, "axui.RichElementText:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementText_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementText:init",argc, 8); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementText_init'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichElementText_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.RichElementText",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 6) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementText:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementText:create"); ok &= luaval_to_number(tolua_S, 7,&arg5, "axui.RichElementText:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementText_create'", nullptr); return 0; } ax::ui::RichElementText* ret = ax::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5); object_to_luaval(tolua_S, "axui.RichElementText",(ax::ui::RichElementText*)ret); return 1; } if (argc == 7) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementText:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementText:create"); ok &= luaval_to_number(tolua_S, 7,&arg5, "axui.RichElementText:create"); ok &= luaval_to_uint32(tolua_S, 8,&arg6, "axui.RichElementText:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementText_create'", nullptr); return 0; } ax::ui::RichElementText* ret = ax::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6); object_to_luaval(tolua_S, "axui.RichElementText",(ax::ui::RichElementText*)ret); return 1; } if (argc == 8) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementText:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementText:create"); ok &= luaval_to_number(tolua_S, 7,&arg5, "axui.RichElementText:create"); ok &= luaval_to_uint32(tolua_S, 8,&arg6, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 9,&arg7, "axui.RichElementText:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementText_create'", nullptr); return 0; } ax::ui::RichElementText* ret = ax::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); object_to_luaval(tolua_S, "axui.RichElementText",(ax::ui::RichElementText*)ret); return 1; } if (argc == 9) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; ax::Color3B arg8; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementText:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementText:create"); ok &= luaval_to_number(tolua_S, 7,&arg5, "axui.RichElementText:create"); ok &= luaval_to_uint32(tolua_S, 8,&arg6, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 9,&arg7, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 10, &arg8, "axui.RichElementText:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementText_create'", nullptr); return 0; } ax::ui::RichElementText* ret = ax::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); object_to_luaval(tolua_S, "axui.RichElementText",(ax::ui::RichElementText*)ret); return 1; } if (argc == 10) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; ax::Color3B arg8; int arg9; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementText:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementText:create"); ok &= luaval_to_number(tolua_S, 7,&arg5, "axui.RichElementText:create"); ok &= luaval_to_uint32(tolua_S, 8,&arg6, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 9,&arg7, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 10, &arg8, "axui.RichElementText:create"); ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "axui.RichElementText:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementText_create'", nullptr); return 0; } ax::ui::RichElementText* ret = ax::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); object_to_luaval(tolua_S, "axui.RichElementText",(ax::ui::RichElementText*)ret); return 1; } if (argc == 11) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; ax::Color3B arg8; int arg9; ax::Color3B arg10; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementText:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementText:create"); ok &= luaval_to_number(tolua_S, 7,&arg5, "axui.RichElementText:create"); ok &= luaval_to_uint32(tolua_S, 8,&arg6, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 9,&arg7, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 10, &arg8, "axui.RichElementText:create"); ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 12, &arg10, "axui.RichElementText:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementText_create'", nullptr); return 0; } ax::ui::RichElementText* ret = ax::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); object_to_luaval(tolua_S, "axui.RichElementText",(ax::ui::RichElementText*)ret); return 1; } if (argc == 12) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; ax::Color3B arg8; int arg9; ax::Color3B arg10; ax::Vec2 arg11; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementText:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementText:create"); ok &= luaval_to_number(tolua_S, 7,&arg5, "axui.RichElementText:create"); ok &= luaval_to_uint32(tolua_S, 8,&arg6, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 9,&arg7, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 10, &arg8, "axui.RichElementText:create"); ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 12, &arg10, "axui.RichElementText:create"); ok &= luaval_to_vec2(tolua_S, 13, &arg11, "axui.RichElementText:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementText_create'", nullptr); return 0; } ax::ui::RichElementText* ret = ax::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); object_to_luaval(tolua_S, "axui.RichElementText",(ax::ui::RichElementText*)ret); return 1; } if (argc == 13) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; ax::Color3B arg8; int arg9; ax::Color3B arg10; ax::Vec2 arg11; int arg12; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementText:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementText:create"); ok &= luaval_to_number(tolua_S, 7,&arg5, "axui.RichElementText:create"); ok &= luaval_to_uint32(tolua_S, 8,&arg6, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 9,&arg7, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 10, &arg8, "axui.RichElementText:create"); ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 12, &arg10, "axui.RichElementText:create"); ok &= luaval_to_vec2(tolua_S, 13, &arg11, "axui.RichElementText:create"); ok &= luaval_to_int32(tolua_S, 14,(int *)&arg12, "axui.RichElementText:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementText_create'", nullptr); return 0; } ax::ui::RichElementText* ret = ax::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); object_to_luaval(tolua_S, "axui.RichElementText",(ax::ui::RichElementText*)ret); return 1; } if (argc == 14) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; ax::Color3B arg8; int arg9; ax::Color3B arg10; ax::Vec2 arg11; int arg12; ax::Color3B arg13; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementText:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementText:create"); ok &= luaval_to_number(tolua_S, 7,&arg5, "axui.RichElementText:create"); ok &= luaval_to_uint32(tolua_S, 8,&arg6, "axui.RichElementText:create"); ok &= luaval_to_std_string_view(tolua_S, 9,&arg7, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 10, &arg8, "axui.RichElementText:create"); ok &= luaval_to_int32(tolua_S, 11,(int *)&arg9, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 12, &arg10, "axui.RichElementText:create"); ok &= luaval_to_vec2(tolua_S, 13, &arg11, "axui.RichElementText:create"); ok &= luaval_to_int32(tolua_S, 14,(int *)&arg12, "axui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 15, &arg13, "axui.RichElementText:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementText_create'", nullptr); return 0; } ax::ui::RichElementText* ret = ax::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13); object_to_luaval(tolua_S, "axui.RichElementText",(ax::ui::RichElementText*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.RichElementText:create",argc, 6); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementText_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichElementText_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::RichElementText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementText_constructor'", nullptr); return 0; } cobj = new ax::ui::RichElementText(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.RichElementText"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementText:RichElementText",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementText_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_RichElementText_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RichElementText)"); return 0; } int lua_register_ax_ui_RichElementText(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.RichElementText"); tolua_cclass(tolua_S,"RichElementText","axui.RichElementText","axui.RichElement",nullptr); tolua_beginmodule(tolua_S,"RichElementText"); tolua_function(tolua_S,"new",lua_ax_ui_RichElementText_constructor); tolua_function(tolua_S,"init",lua_ax_ui_RichElementText_init); tolua_function(tolua_S,"create", lua_ax_ui_RichElementText_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::RichElementText).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.RichElementText"; g_typeCast[typeName] = "axui.RichElementText"; return 1; } int lua_ax_ui_RichElementImage_setHeight(lua_State* tolua_S) { int argc = 0; ax::ui::RichElementImage* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichElementImage",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElementImage_setHeight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementImage:setHeight"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_setHeight'", nullptr); return 0; } cobj->setHeight(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementImage:setHeight",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementImage_setHeight'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichElementImage_init(lua_State* tolua_S) { int argc = 0; ax::ui::RichElementImage* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichElementImage",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElementImage_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementImage:init"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementImage:init"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementImage:init"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementImage:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 5) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementImage:init"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementImage:init"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementImage:init"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementImage:init"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementImage:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 6) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; ax::ui::Widget::TextureResType arg5; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementImage:init"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementImage:init"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementImage:init"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementImage:init"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementImage:init"); ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "axui.RichElementImage:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementImage:init",argc, 4); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementImage_init'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichElementImage_setWidth(lua_State* tolua_S) { int argc = 0; ax::ui::RichElementImage* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichElementImage",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElementImage_setWidth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementImage:setWidth"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_setWidth'", nullptr); return 0; } cobj->setWidth(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementImage:setWidth",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementImage_setWidth'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichElementImage_setUrl(lua_State* tolua_S) { int argc = 0; ax::ui::RichElementImage* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichElementImage",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElementImage_setUrl'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichElementImage:setUrl"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_setUrl'", nullptr); return 0; } cobj->setUrl(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementImage:setUrl",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementImage_setUrl'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichElementImage_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.RichElementImage",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementImage:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementImage:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementImage:create"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementImage:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_create'", nullptr); return 0; } ax::ui::RichElementImage* ret = ax::ui::RichElementImage::create(arg0, arg1, arg2, arg3); object_to_luaval(tolua_S, "axui.RichElementImage",(ax::ui::RichElementImage*)ret); return 1; } if (argc == 5) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementImage:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementImage:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementImage:create"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementImage:create"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementImage:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_create'", nullptr); return 0; } ax::ui::RichElementImage* ret = ax::ui::RichElementImage::create(arg0, arg1, arg2, arg3, arg4); object_to_luaval(tolua_S, "axui.RichElementImage",(ax::ui::RichElementImage*)ret); return 1; } if (argc == 6) { int arg0; ax::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; ax::ui::Widget::TextureResType arg5; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementImage:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementImage:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementImage:create"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.RichElementImage:create"); ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.RichElementImage:create"); ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "axui.RichElementImage:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_create'", nullptr); return 0; } ax::ui::RichElementImage* ret = ax::ui::RichElementImage::create(arg0, arg1, arg2, arg3, arg4, arg5); object_to_luaval(tolua_S, "axui.RichElementImage",(ax::ui::RichElementImage*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.RichElementImage:create",argc, 4); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementImage_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichElementImage_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::RichElementImage* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementImage_constructor'", nullptr); return 0; } cobj = new ax::ui::RichElementImage(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.RichElementImage"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementImage:RichElementImage",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementImage_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_RichElementImage_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RichElementImage)"); return 0; } int lua_register_ax_ui_RichElementImage(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.RichElementImage"); tolua_cclass(tolua_S,"RichElementImage","axui.RichElementImage","axui.RichElement",nullptr); tolua_beginmodule(tolua_S,"RichElementImage"); tolua_function(tolua_S,"new",lua_ax_ui_RichElementImage_constructor); tolua_function(tolua_S,"setHeight",lua_ax_ui_RichElementImage_setHeight); tolua_function(tolua_S,"init",lua_ax_ui_RichElementImage_init); tolua_function(tolua_S,"setWidth",lua_ax_ui_RichElementImage_setWidth); tolua_function(tolua_S,"setUrl",lua_ax_ui_RichElementImage_setUrl); tolua_function(tolua_S,"create", lua_ax_ui_RichElementImage_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::RichElementImage).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.RichElementImage"; g_typeCast[typeName] = "axui.RichElementImage"; return 1; } int lua_ax_ui_RichElementCustomNode_init(lua_State* tolua_S) { int argc = 0; ax::ui::RichElementCustomNode* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichElementCustomNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichElementCustomNode*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichElementCustomNode_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { int arg0; ax::Color3B arg1; uint16_t arg2; ax::Node* arg3; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementCustomNode:init"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementCustomNode:init"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementCustomNode:init"); ok &= luaval_to_object(tolua_S, 5, "ax.Node",&arg3, "axui.RichElementCustomNode:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementCustomNode_init'", nullptr); return 0; } bool ret = cobj->init(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementCustomNode:init",argc, 4); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementCustomNode_init'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichElementCustomNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.RichElementCustomNode",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { int arg0; ax::Color3B arg1; uint16_t arg2; ax::Node* arg3; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementCustomNode:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementCustomNode:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementCustomNode:create"); ok &= luaval_to_object(tolua_S, 5, "ax.Node",&arg3, "axui.RichElementCustomNode:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementCustomNode_create'", nullptr); return 0; } ax::ui::RichElementCustomNode* ret = ax::ui::RichElementCustomNode::create(arg0, arg1, arg2, arg3); object_to_luaval(tolua_S, "axui.RichElementCustomNode",(ax::ui::RichElementCustomNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.RichElementCustomNode:create",argc, 4); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementCustomNode_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichElementCustomNode_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::RichElementCustomNode* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementCustomNode_constructor'", nullptr); return 0; } cobj = new ax::ui::RichElementCustomNode(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.RichElementCustomNode"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementCustomNode:RichElementCustomNode",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementCustomNode_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_RichElementCustomNode_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RichElementCustomNode)"); return 0; } int lua_register_ax_ui_RichElementCustomNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.RichElementCustomNode"); tolua_cclass(tolua_S,"RichElementCustomNode","axui.RichElementCustomNode","axui.RichElement",nullptr); tolua_beginmodule(tolua_S,"RichElementCustomNode"); tolua_function(tolua_S,"new",lua_ax_ui_RichElementCustomNode_constructor); tolua_function(tolua_S,"init",lua_ax_ui_RichElementCustomNode_init); tolua_function(tolua_S,"create", lua_ax_ui_RichElementCustomNode_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::RichElementCustomNode).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.RichElementCustomNode"; g_typeCast[typeName] = "axui.RichElementCustomNode"; return 1; } int lua_ax_ui_RichElementNewLine_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.RichElementNewLine",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 3) { int arg0; ax::Color3B arg1; uint16_t arg2; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichElementNewLine:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichElementNewLine:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "axui.RichElementNewLine:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementNewLine_create'", nullptr); return 0; } ax::ui::RichElementNewLine* ret = ax::ui::RichElementNewLine::create(arg0, arg1, arg2); object_to_luaval(tolua_S, "axui.RichElementNewLine",(ax::ui::RichElementNewLine*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.RichElementNewLine:create",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementNewLine_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichElementNewLine_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::RichElementNewLine* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichElementNewLine_constructor'", nullptr); return 0; } cobj = new ax::ui::RichElementNewLine(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.RichElementNewLine"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichElementNewLine:RichElementNewLine",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichElementNewLine_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_RichElementNewLine_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RichElementNewLine)"); return 0; } int lua_register_ax_ui_RichElementNewLine(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.RichElementNewLine"); tolua_cclass(tolua_S,"RichElementNewLine","axui.RichElementNewLine","axui.RichElement",nullptr); tolua_beginmodule(tolua_S,"RichElementNewLine"); tolua_function(tolua_S,"new",lua_ax_ui_RichElementNewLine_constructor); tolua_function(tolua_S,"create", lua_ax_ui_RichElementNewLine_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::RichElementNewLine).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.RichElementNewLine"; g_typeCast[typeName] = "axui.RichElementNewLine"; return 1; } int lua_ax_ui_RichText_insertElement(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_insertElement'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { ax::ui::RichElement* arg0; int arg1; ok &= luaval_to_object(tolua_S, 2, "axui.RichElement",&arg0, "axui.RichText:insertElement"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.RichText:insertElement"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_insertElement'", nullptr); return 0; } cobj->insertElement(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:insertElement",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_insertElement'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_setAnchorTextOutline(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setAnchorTextOutline'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextOutline"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextOutline'", nullptr); return 0; } cobj->setAnchorTextOutline(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { bool arg0; ax::Color3B arg1; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextOutline"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichText:setAnchorTextOutline"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextOutline'", nullptr); return 0; } cobj->setAnchorTextOutline(arg0, arg1); lua_settop(tolua_S, 1); return 1; } if (argc == 3) { bool arg0; ax::Color3B arg1; int arg2; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextOutline"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichText:setAnchorTextOutline"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "axui.RichText:setAnchorTextOutline"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextOutline'", nullptr); return 0; } cobj->setAnchorTextOutline(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setAnchorTextOutline",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setAnchorTextOutline'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_getFontSize(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getFontSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getFontSize'", nullptr); return 0; } double ret = cobj->getFontSize(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getFontSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getFontSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_pushBackElement(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_pushBackElement'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::RichElement* arg0; ok &= luaval_to_object(tolua_S, 2, "axui.RichElement",&arg0, "axui.RichText:pushBackElement"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_pushBackElement'", nullptr); return 0; } cobj->pushBackElement(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:pushBackElement",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_pushBackElement'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_setAnchorTextBold(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setAnchorTextBold'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextBold"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextBold'", nullptr); return 0; } cobj->setAnchorTextBold(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setAnchorTextBold",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setAnchorTextBold'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_getAnchorFontColor(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorFontColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorFontColor'", nullptr); return 0; } std::string ret = cobj->getAnchorFontColor(); lua_pushlstring(tolua_S,ret.c_str(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorFontColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorFontColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_getAnchorTextShadowBlurRadius(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorTextShadowBlurRadius'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorTextShadowBlurRadius'", nullptr); return 0; } int ret = cobj->getAnchorTextShadowBlurRadius(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorTextShadowBlurRadius",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorTextShadowBlurRadius'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_setAnchorTextShadow(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setAnchorTextShadow'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextShadow"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextShadow'", nullptr); return 0; } cobj->setAnchorTextShadow(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { bool arg0; ax::Color3B arg1; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextShadow"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichText:setAnchorTextShadow"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextShadow'", nullptr); return 0; } cobj->setAnchorTextShadow(arg0, arg1); lua_settop(tolua_S, 1); return 1; } if (argc == 3) { bool arg0; ax::Color3B arg1; ax::Vec2 arg2; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextShadow"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichText:setAnchorTextShadow"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "axui.RichText:setAnchorTextShadow"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextShadow'", nullptr); return 0; } cobj->setAnchorTextShadow(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } if (argc == 4) { bool arg0; ax::Color3B arg1; ax::Vec2 arg2; int arg3; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextShadow"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichText:setAnchorTextShadow"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "axui.RichText:setAnchorTextShadow"); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "axui.RichText:setAnchorTextShadow"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextShadow'", nullptr); return 0; } cobj->setAnchorTextShadow(arg0, arg1, arg2, arg3); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setAnchorTextShadow",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setAnchorTextShadow'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_isAnchorTextItalicEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextItalicEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextItalicEnabled'", nullptr); return 0; } bool ret = cobj->isAnchorTextItalicEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextItalicEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextItalicEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_setAnchorFontColor(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setAnchorFontColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:setAnchorFontColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorFontColor'", nullptr); return 0; } cobj->setAnchorFontColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setAnchorFontColor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setAnchorFontColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_setFontFace(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setFontFace'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:setFontFace"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setFontFace'", nullptr); return 0; } cobj->setFontFace(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setFontFace",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setFontFace'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_setAnchorTextGlow(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setAnchorTextGlow'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextGlow"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextGlow'", nullptr); return 0; } cobj->setAnchorTextGlow(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { bool arg0; ax::Color3B arg1; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextGlow"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "axui.RichText:setAnchorTextGlow"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextGlow'", nullptr); return 0; } cobj->setAnchorTextGlow(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setAnchorTextGlow",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setAnchorTextGlow'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_getHorizontalAlignment(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getHorizontalAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getHorizontalAlignment'", nullptr); return 0; } int ret = (int)cobj->getHorizontalAlignment(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getHorizontalAlignment",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getHorizontalAlignment'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_setHorizontalAlignment(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setHorizontalAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::RichText::HorizontalAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichText:setHorizontalAlignment"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setHorizontalAlignment'", nullptr); return 0; } cobj->setHorizontalAlignment(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setHorizontalAlignment",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setHorizontalAlignment'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_setAnchorTextDel(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setAnchorTextDel'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextDel"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextDel'", nullptr); return 0; } cobj->setAnchorTextDel(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setAnchorTextDel",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setAnchorTextDel'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_getAnchorTextOutlineColor3B(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorTextOutlineColor3B'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorTextOutlineColor3B'", nullptr); return 0; } ax::Color3B ret = cobj->getAnchorTextOutlineColor3B(); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorTextOutlineColor3B",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorTextOutlineColor3B'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_stringWithColor4B(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_stringWithColor4B'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.RichText:stringWithColor4B"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_stringWithColor4B'", nullptr); return 0; } std::string ret = cobj->stringWithColor4B(arg0); lua_pushlstring(tolua_S,ret.c_str(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:stringWithColor4B",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_stringWithColor4B'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_initWithXML(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_initWithXML'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string_view arg0; ax::ValueMap arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:initWithXML"); ok &= luaval_to_ccvaluemap(tolua_S, 3, &arg1, "axui.RichText:initWithXML"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_initWithXML'", nullptr); return 0; } bool ret = cobj->initWithXML(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 3) { std::string_view arg0; ax::ValueMap arg1; std::function arg2; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:initWithXML"); ok &= luaval_to_ccvaluemap(tolua_S, 3, &arg1, "axui.RichText:initWithXML"); do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_initWithXML'", nullptr); return 0; } bool ret = cobj->initWithXML(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:initWithXML",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_initWithXML'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_getAnchorFontColor3B(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorFontColor3B'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorFontColor3B'", nullptr); return 0; } ax::Color3B ret = cobj->getAnchorFontColor3B(); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorFontColor3B",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorFontColor3B'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_formatText(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_formatText'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_formatText'", nullptr); return 0; } cobj->formatText(); lua_settop(tolua_S, 1); return 1; } if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:formatText"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_formatText'", nullptr); return 0; } cobj->formatText(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:formatText",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_formatText'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_getAnchorTextGlowColor3B(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorTextGlowColor3B'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorTextGlowColor3B'", nullptr); return 0; } ax::Color3B ret = cobj->getAnchorTextGlowColor3B(); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorTextGlowColor3B",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorTextGlowColor3B'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_openUrl(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_openUrl'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:openUrl"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_openUrl'", nullptr); return 0; } cobj->openUrl(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:openUrl",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_openUrl'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_getFontFace(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getFontFace'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getFontFace'", nullptr); return 0; } std::string ret = cobj->getFontFace(); lua_pushlstring(tolua_S,ret.c_str(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getFontFace",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getFontFace'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_setFontColor(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setFontColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:setFontColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setFontColor'", nullptr); return 0; } cobj->setFontColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setFontColor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setFontColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_isAnchorTextGlowEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextGlowEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextGlowEnabled'", nullptr); return 0; } bool ret = cobj->isAnchorTextGlowEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextGlowEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextGlowEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_getDefaults(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getDefaults'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getDefaults'", nullptr); return 0; } ax::ValueMap ret = cobj->getDefaults(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getDefaults",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getDefaults'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_isAnchorTextUnderlineEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextUnderlineEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextUnderlineEnabled'", nullptr); return 0; } bool ret = cobj->isAnchorTextUnderlineEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextUnderlineEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextUnderlineEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_getFontColor(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getFontColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getFontColor'", nullptr); return 0; } std::string ret = cobj->getFontColor(); lua_pushlstring(tolua_S,ret.c_str(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getFontColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getFontColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_isAnchorTextShadowEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextShadowEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextShadowEnabled'", nullptr); return 0; } bool ret = cobj->isAnchorTextShadowEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextShadowEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextShadowEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_getAnchorTextOutlineSize(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorTextOutlineSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorTextOutlineSize'", nullptr); return 0; } int ret = cobj->getAnchorTextOutlineSize(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorTextOutlineSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorTextOutlineSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_setVerticalSpace(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setVerticalSpace'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.RichText:setVerticalSpace"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setVerticalSpace'", nullptr); return 0; } cobj->setVerticalSpace(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setVerticalSpace",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setVerticalSpace'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_isAnchorTextDelEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextDelEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextDelEnabled'", nullptr); return 0; } bool ret = cobj->isAnchorTextDelEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextDelEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextDelEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_setDefaults(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setDefaults'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "axui.RichText:setDefaults"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setDefaults'", nullptr); return 0; } cobj->setDefaults(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setDefaults",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setDefaults'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_setWrapMode(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setWrapMode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::RichText::WrapMode arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichText:setWrapMode"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setWrapMode'", nullptr); return 0; } cobj->setWrapMode(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setWrapMode",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setWrapMode'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_setFontSize(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setFontSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.RichText:setFontSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setFontSize'", nullptr); return 0; } cobj->setFontSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setFontSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setFontSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_removeElement(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_removeElement'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { ax::ui::RichElement* arg0; ok &= luaval_to_object(tolua_S, 2, "axui.RichElement",&arg0, "axui.RichText:removeElement"); if (!ok) { break; } cobj->removeElement(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.RichText:removeElement"); if (!ok) { break; } cobj->removeElement(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:removeElement",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_removeElement'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_setAnchorTextItalic(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setAnchorTextItalic'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextItalic"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextItalic'", nullptr); return 0; } cobj->setAnchorTextItalic(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setAnchorTextItalic",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setAnchorTextItalic'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_getAnchorTextShadowOffset(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorTextShadowOffset'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorTextShadowOffset'", nullptr); return 0; } ax::Vec2 ret = cobj->getAnchorTextShadowOffset(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorTextShadowOffset",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorTextShadowOffset'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_isAnchorTextBoldEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextBoldEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextBoldEnabled'", nullptr); return 0; } bool ret = cobj->isAnchorTextBoldEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextBoldEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextBoldEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_getAnchorTextShadowColor3B(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getAnchorTextShadowColor3B'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getAnchorTextShadowColor3B'", nullptr); return 0; } ax::Color3B ret = cobj->getAnchorTextShadowColor3B(); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getAnchorTextShadowColor3B",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getAnchorTextShadowColor3B'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_stringWithColor3B(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_stringWithColor3B'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.RichText:stringWithColor3B"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_stringWithColor3B'", nullptr); return 0; } std::string ret = cobj->stringWithColor3B(arg0); lua_pushlstring(tolua_S,ret.c_str(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:stringWithColor3B",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_stringWithColor3B'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_isAnchorTextOutlineEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_isAnchorTextOutlineEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_isAnchorTextOutlineEnabled'", nullptr); return 0; } bool ret = cobj->isAnchorTextOutlineEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:isAnchorTextOutlineEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_isAnchorTextOutlineEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_getFontColor3B(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getFontColor3B'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getFontColor3B'", nullptr); return 0; } ax::Color3B ret = cobj->getFontColor3B(); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getFontColor3B",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getFontColor3B'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_getWrapMode(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_getWrapMode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_getWrapMode'", nullptr); return 0; } int ret = (int)cobj->getWrapMode(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:getWrapMode",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_getWrapMode'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_setAnchorTextUnderline(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_setAnchorTextUnderline'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.RichText:setAnchorTextUnderline"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_setAnchorTextUnderline'", nullptr); return 0; } cobj->setAnchorTextUnderline(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:setAnchorTextUnderline",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_setAnchorTextUnderline'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_color3BWithString(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RichText_color3BWithString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:color3BWithString"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_color3BWithString'", nullptr); return 0; } ax::Color3B ret = cobj->color3BWithString(arg0); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:color3BWithString",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_color3BWithString'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_create'", nullptr); return 0; } ax::ui::RichText* ret = ax::ui::RichText::create(); object_to_luaval(tolua_S, "axui.RichText",(ax::ui::RichText*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.RichText:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_createWithXML(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.RichText",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { std::string_view arg0; ax::ValueMap arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:createWithXML"); ok &= luaval_to_ccvaluemap(tolua_S, 3, &arg1, "axui.RichText:createWithXML"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_createWithXML'", nullptr); return 0; } ax::ui::RichText* ret = ax::ui::RichText::createWithXML(arg0, arg1); object_to_luaval(tolua_S, "axui.RichText",(ax::ui::RichText*)ret); return 1; } if (argc == 3) { std::string_view arg0; ax::ValueMap arg1; std::function arg2; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.RichText:createWithXML"); ok &= luaval_to_ccvaluemap(tolua_S, 3, &arg1, "axui.RichText:createWithXML"); do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_createWithXML'", nullptr); return 0; } ax::ui::RichText* ret = ax::ui::RichText::createWithXML(arg0, arg1, arg2); object_to_luaval(tolua_S, "axui.RichText",(ax::ui::RichText*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.RichText:createWithXML",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_createWithXML'.",&tolua_err); #endif return 0; } int lua_ax_ui_RichText_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::RichText* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RichText_constructor'", nullptr); return 0; } cobj = new ax::ui::RichText(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.RichText"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RichText:RichText",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RichText_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_RichText_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RichText)"); return 0; } int lua_register_ax_ui_RichText(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.RichText"); tolua_cclass(tolua_S,"RichText","axui.RichText","axui.Widget",nullptr); tolua_beginmodule(tolua_S,"RichText"); tolua_function(tolua_S,"new",lua_ax_ui_RichText_constructor); tolua_function(tolua_S,"insertElement",lua_ax_ui_RichText_insertElement); tolua_function(tolua_S,"setAnchorTextOutline",lua_ax_ui_RichText_setAnchorTextOutline); tolua_function(tolua_S,"getFontSize",lua_ax_ui_RichText_getFontSize); tolua_function(tolua_S,"pushBackElement",lua_ax_ui_RichText_pushBackElement); tolua_function(tolua_S,"setAnchorTextBold",lua_ax_ui_RichText_setAnchorTextBold); tolua_function(tolua_S,"getAnchorFontColor",lua_ax_ui_RichText_getAnchorFontColor); tolua_function(tolua_S,"getAnchorTextShadowBlurRadius",lua_ax_ui_RichText_getAnchorTextShadowBlurRadius); tolua_function(tolua_S,"setAnchorTextShadow",lua_ax_ui_RichText_setAnchorTextShadow); tolua_function(tolua_S,"isAnchorTextItalicEnabled",lua_ax_ui_RichText_isAnchorTextItalicEnabled); tolua_function(tolua_S,"setAnchorFontColor",lua_ax_ui_RichText_setAnchorFontColor); tolua_function(tolua_S,"setFontFace",lua_ax_ui_RichText_setFontFace); tolua_function(tolua_S,"setAnchorTextGlow",lua_ax_ui_RichText_setAnchorTextGlow); tolua_function(tolua_S,"getHorizontalAlignment",lua_ax_ui_RichText_getHorizontalAlignment); tolua_function(tolua_S,"setHorizontalAlignment",lua_ax_ui_RichText_setHorizontalAlignment); tolua_function(tolua_S,"setAnchorTextDel",lua_ax_ui_RichText_setAnchorTextDel); tolua_function(tolua_S,"getAnchorTextOutlineColor3B",lua_ax_ui_RichText_getAnchorTextOutlineColor3B); tolua_function(tolua_S,"stringWithColor4B",lua_ax_ui_RichText_stringWithColor4B); tolua_function(tolua_S,"initWithXML",lua_ax_ui_RichText_initWithXML); tolua_function(tolua_S,"getAnchorFontColor3B",lua_ax_ui_RichText_getAnchorFontColor3B); tolua_function(tolua_S,"formatText",lua_ax_ui_RichText_formatText); tolua_function(tolua_S,"getAnchorTextGlowColor3B",lua_ax_ui_RichText_getAnchorTextGlowColor3B); tolua_function(tolua_S,"openUrl",lua_ax_ui_RichText_openUrl); tolua_function(tolua_S,"getFontFace",lua_ax_ui_RichText_getFontFace); tolua_function(tolua_S,"setFontColor",lua_ax_ui_RichText_setFontColor); tolua_function(tolua_S,"isAnchorTextGlowEnabled",lua_ax_ui_RichText_isAnchorTextGlowEnabled); tolua_function(tolua_S,"getDefaults",lua_ax_ui_RichText_getDefaults); tolua_function(tolua_S,"isAnchorTextUnderlineEnabled",lua_ax_ui_RichText_isAnchorTextUnderlineEnabled); tolua_function(tolua_S,"getFontColor",lua_ax_ui_RichText_getFontColor); tolua_function(tolua_S,"isAnchorTextShadowEnabled",lua_ax_ui_RichText_isAnchorTextShadowEnabled); tolua_function(tolua_S,"getAnchorTextOutlineSize",lua_ax_ui_RichText_getAnchorTextOutlineSize); tolua_function(tolua_S,"setVerticalSpace",lua_ax_ui_RichText_setVerticalSpace); tolua_function(tolua_S,"isAnchorTextDelEnabled",lua_ax_ui_RichText_isAnchorTextDelEnabled); tolua_function(tolua_S,"setDefaults",lua_ax_ui_RichText_setDefaults); tolua_function(tolua_S,"setWrapMode",lua_ax_ui_RichText_setWrapMode); tolua_function(tolua_S,"setFontSize",lua_ax_ui_RichText_setFontSize); tolua_function(tolua_S,"removeElement",lua_ax_ui_RichText_removeElement); tolua_function(tolua_S,"setAnchorTextItalic",lua_ax_ui_RichText_setAnchorTextItalic); tolua_function(tolua_S,"getAnchorTextShadowOffset",lua_ax_ui_RichText_getAnchorTextShadowOffset); tolua_function(tolua_S,"isAnchorTextBoldEnabled",lua_ax_ui_RichText_isAnchorTextBoldEnabled); tolua_function(tolua_S,"getAnchorTextShadowColor3B",lua_ax_ui_RichText_getAnchorTextShadowColor3B); tolua_function(tolua_S,"stringWithColor3B",lua_ax_ui_RichText_stringWithColor3B); tolua_function(tolua_S,"isAnchorTextOutlineEnabled",lua_ax_ui_RichText_isAnchorTextOutlineEnabled); tolua_function(tolua_S,"getFontColor3B",lua_ax_ui_RichText_getFontColor3B); tolua_function(tolua_S,"getWrapMode",lua_ax_ui_RichText_getWrapMode); tolua_function(tolua_S,"setAnchorTextUnderline",lua_ax_ui_RichText_setAnchorTextUnderline); tolua_function(tolua_S,"color3BWithString",lua_ax_ui_RichText_color3BWithString); tolua_function(tolua_S,"create", lua_ax_ui_RichText_create); tolua_function(tolua_S,"createWithXML", lua_ax_ui_RichText_createWithXML); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::RichText).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.RichText"; g_typeCast[typeName] = "axui.RichText"; return 1; } int lua_ax_ui_HBox_initWithSize(lua_State* tolua_S) { int argc = 0; ax::ui::HBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.HBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::HBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_HBox_initWithSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.HBox:initWithSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_HBox_initWithSize'", nullptr); return 0; } bool ret = cobj->initWithSize(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.HBox:initWithSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_HBox_initWithSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_HBox_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.HBox",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.HBox:create"); if (!ok) { break; } ax::ui::HBox* ret = ax::ui::HBox::create(arg0); object_to_luaval(tolua_S, "axui.HBox",(ax::ui::HBox*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { ax::ui::HBox* ret = ax::ui::HBox::create(); object_to_luaval(tolua_S, "axui.HBox",(ax::ui::HBox*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.HBox:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_HBox_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_HBox_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::HBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_HBox_constructor'", nullptr); return 0; } cobj = new ax::ui::HBox(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.HBox"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.HBox:HBox",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_HBox_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_HBox_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (HBox)"); return 0; } int lua_register_ax_ui_HBox(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.HBox"); tolua_cclass(tolua_S,"HBox","axui.HBox","axui.Layout",nullptr); tolua_beginmodule(tolua_S,"HBox"); tolua_function(tolua_S,"new",lua_ax_ui_HBox_constructor); tolua_function(tolua_S,"initWithSize",lua_ax_ui_HBox_initWithSize); tolua_function(tolua_S,"create", lua_ax_ui_HBox_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::HBox).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.HBox"; g_typeCast[typeName] = "axui.HBox"; return 1; } int lua_ax_ui_VBox_initWithSize(lua_State* tolua_S) { int argc = 0; ax::ui::VBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.VBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::VBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_VBox_initWithSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.VBox:initWithSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_VBox_initWithSize'", nullptr); return 0; } bool ret = cobj->initWithSize(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VBox:initWithSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_VBox_initWithSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_VBox_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.VBox",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.VBox:create"); if (!ok) { break; } ax::ui::VBox* ret = ax::ui::VBox::create(arg0); object_to_luaval(tolua_S, "axui.VBox",(ax::ui::VBox*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { ax::ui::VBox* ret = ax::ui::VBox::create(); object_to_luaval(tolua_S, "axui.VBox",(ax::ui::VBox*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.VBox:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_VBox_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_VBox_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::VBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_VBox_constructor'", nullptr); return 0; } cobj = new ax::ui::VBox(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.VBox"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VBox:VBox",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_VBox_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_VBox_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (VBox)"); return 0; } int lua_register_ax_ui_VBox(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.VBox"); tolua_cclass(tolua_S,"VBox","axui.VBox","axui.Layout",nullptr); tolua_beginmodule(tolua_S,"VBox"); tolua_function(tolua_S,"new",lua_ax_ui_VBox_constructor); tolua_function(tolua_S,"initWithSize",lua_ax_ui_VBox_initWithSize); tolua_function(tolua_S,"create", lua_ax_ui_VBox_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::VBox).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.VBox"; g_typeCast[typeName] = "axui.VBox"; return 1; } int lua_ax_ui_RelativeBox_initWithSize(lua_State* tolua_S) { int argc = 0; ax::ui::RelativeBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.RelativeBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::RelativeBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_RelativeBox_initWithSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.RelativeBox:initWithSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RelativeBox_initWithSize'", nullptr); return 0; } bool ret = cobj->initWithSize(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RelativeBox:initWithSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RelativeBox_initWithSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_RelativeBox_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.RelativeBox",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.RelativeBox:create"); if (!ok) { break; } ax::ui::RelativeBox* ret = ax::ui::RelativeBox::create(arg0); object_to_luaval(tolua_S, "axui.RelativeBox",(ax::ui::RelativeBox*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { ax::ui::RelativeBox* ret = ax::ui::RelativeBox::create(); object_to_luaval(tolua_S, "axui.RelativeBox",(ax::ui::RelativeBox*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.RelativeBox:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RelativeBox_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_RelativeBox_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::RelativeBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_RelativeBox_constructor'", nullptr); return 0; } cobj = new ax::ui::RelativeBox(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.RelativeBox"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.RelativeBox:RelativeBox",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_RelativeBox_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_RelativeBox_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RelativeBox)"); return 0; } int lua_register_ax_ui_RelativeBox(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.RelativeBox"); tolua_cclass(tolua_S,"RelativeBox","axui.RelativeBox","axui.Layout",nullptr); tolua_beginmodule(tolua_S,"RelativeBox"); tolua_function(tolua_S,"new",lua_ax_ui_RelativeBox_constructor); tolua_function(tolua_S,"initWithSize",lua_ax_ui_RelativeBox_initWithSize); tolua_function(tolua_S,"create", lua_ax_ui_RelativeBox_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::RelativeBox).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.RelativeBox"; g_typeCast[typeName] = "axui.RelativeBox"; return 1; } int lua_ax_ui_Scale9Sprite_updateWithSprite(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_updateWithSprite'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 6) { ax::Sprite* arg0; ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "axui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } ax::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "axui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } ax::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "axui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } ax::Vec2 arg4; ok &= luaval_to_vec2(tolua_S, 6, &arg4, "axui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } ax::Rect arg5; ok &= luaval_to_rect(tolua_S, 7, &arg5, "axui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } bool ret = cobj->updateWithSprite(arg0, arg1, arg2, arg3, arg4, arg5); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 4) { ax::Sprite* arg0; ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "axui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } ax::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "axui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } ax::Rect arg3; ok &= luaval_to_rect(tolua_S, 5, &arg3, "axui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } bool ret = cobj->updateWithSprite(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:updateWithSprite",argc, 4); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_updateWithSprite'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_resizableSpriteWithCapInsets(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_resizableSpriteWithCapInsets'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Scale9Sprite:resizableSpriteWithCapInsets"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_resizableSpriteWithCapInsets'", nullptr); return 0; } ax::ui::Scale9Sprite* ret = cobj->resizableSpriteWithCapInsets(arg0); object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:resizableSpriteWithCapInsets",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_resizableSpriteWithCapInsets'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_getCapInsets(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getCapInsets'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getCapInsets'", nullptr); return 0; } ax::Rect ret = cobj->getCapInsets(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getCapInsets",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getCapInsets'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_setState(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setState'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::Scale9Sprite::State arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Scale9Sprite:setState"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setState'", nullptr); return 0; } cobj->setState(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setState",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setState'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_setInsetBottom(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setInsetBottom'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Scale9Sprite:setInsetBottom"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setInsetBottom'", nullptr); return 0; } cobj->setInsetBottom(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setInsetBottom",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setInsetBottom'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_initWithSpriteFrameName(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_initWithSpriteFrameName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string_view arg0; ax::Rect arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Scale9Sprite:initWithSpriteFrameName"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:initWithSpriteFrameName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_initWithSpriteFrameName'", nullptr); return 0; } bool ret = cobj->initWithSpriteFrameName(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:initWithSpriteFrameName",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_initWithSpriteFrameName'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_getSprite(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getSprite'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getSprite'", nullptr); return 0; } ax::Sprite* ret = cobj->getSprite(); object_to_luaval(tolua_S, "ax.Sprite",(ax::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getSprite",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getSprite'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_setInsetTop(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setInsetTop'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Scale9Sprite:setInsetTop"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setInsetTop'", nullptr); return 0; } cobj->setInsetTop(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setInsetTop",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setInsetTop'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_setRenderingType(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setRenderingType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::Scale9Sprite::RenderingType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.Scale9Sprite:setRenderingType"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setRenderingType'", nullptr); return 0; } cobj->setRenderingType(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setRenderingType",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setRenderingType'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_init(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { ax::Sprite* arg0; ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "axui.Scale9Sprite:init"); if (!ok) { break; } ax::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:init"); if (!ok) { break; } ax::Rect arg2; ok &= luaval_to_rect(tolua_S, 4, &arg2, "axui.Scale9Sprite:init"); if (!ok) { break; } bool ret = cobj->init(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 4) { ax::Sprite* arg0; ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "axui.Scale9Sprite:init"); if (!ok) { break; } ax::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:init"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "axui.Scale9Sprite:init"); if (!ok) { break; } ax::Rect arg3; ok &= luaval_to_rect(tolua_S, 5, &arg3, "axui.Scale9Sprite:init"); if (!ok) { break; } bool ret = cobj->init(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 6) { ax::Sprite* arg0; ok &= luaval_to_object(tolua_S, 2, "ax.Sprite",&arg0, "axui.Scale9Sprite:init"); if (!ok) { break; } ax::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:init"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "axui.Scale9Sprite:init"); if (!ok) { break; } ax::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "axui.Scale9Sprite:init"); if (!ok) { break; } ax::Vec2 arg4; ok &= luaval_to_vec2(tolua_S, 6, &arg4, "axui.Scale9Sprite:init"); if (!ok) { break; } ax::Rect arg5; ok &= luaval_to_rect(tolua_S, 7, &arg5, "axui.Scale9Sprite:init"); if (!ok) { break; } bool ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:init",argc, 6); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_init'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_setPreferredSize(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setPreferredSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.Scale9Sprite:setPreferredSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setPreferredSize'", nullptr); return 0; } cobj->setPreferredSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setPreferredSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setPreferredSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_copyTo(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_copyTo'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::Scale9Sprite* arg0; ok &= luaval_to_object(tolua_S, 2, "axui.Scale9Sprite",&arg0, "axui.Scale9Sprite:copyTo"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_copyTo'", nullptr); return 0; } cobj->copyTo(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:copyTo",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_copyTo'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_setSpriteFrame(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setSpriteFrame'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { ax::SpriteFrame* arg0; ax::Rect arg1; ok &= luaval_to_object(tolua_S, 2, "ax.SpriteFrame",&arg0, "axui.Scale9Sprite:setSpriteFrame"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:setSpriteFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setSpriteFrame'", nullptr); return 0; } cobj->setSpriteFrame(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setSpriteFrame",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setSpriteFrame'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_getState(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getState'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getState'", nullptr); return 0; } int ret = (int)cobj->getState(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getState",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getState'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_getInsetBottom(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getInsetBottom'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getInsetBottom'", nullptr); return 0; } double ret = cobj->getInsetBottom(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getInsetBottom",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getInsetBottom'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_setScale9Enabled(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setScale9Enabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.Scale9Sprite:setScale9Enabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setScale9Enabled'", nullptr); return 0; } cobj->setScale9Enabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setScale9Enabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setScale9Enabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_isScale9Enabled(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_isScale9Enabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_isScale9Enabled'", nullptr); return 0; } bool ret = cobj->isScale9Enabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:isScale9Enabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_isScale9Enabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_resetRender(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_resetRender'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_resetRender'", nullptr); return 0; } cobj->resetRender(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:resetRender",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_resetRender'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_getRenderingType(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getRenderingType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getRenderingType'", nullptr); return 0; } int ret = (int)cobj->getRenderingType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getRenderingType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getRenderingType'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_getInsetRight(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getInsetRight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getInsetRight'", nullptr); return 0; } double ret = cobj->getInsetRight(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getInsetRight",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getInsetRight'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_getOriginalSize(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getOriginalSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getOriginalSize'", nullptr); return 0; } ax::Vec2 ret = cobj->getOriginalSize(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getOriginalSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getOriginalSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_initWithFile(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_initWithFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Scale9Sprite:initWithFile"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Scale9Sprite:initWithFile"); if (!ok) { break; } bool ret = cobj->initWithFile(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 3) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Scale9Sprite:initWithFile"); if (!ok) { break; } ax::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:initWithFile"); if (!ok) { break; } ax::Rect arg2; ok &= luaval_to_rect(tolua_S, 4, &arg2, "axui.Scale9Sprite:initWithFile"); if (!ok) { break; } bool ret = cobj->initWithFile(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:initWithFile",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_initWithFile'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_getInsetTop(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getInsetTop'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getInsetTop'", nullptr); return 0; } double ret = cobj->getInsetTop(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getInsetTop",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getInsetTop'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_setInsetLeft(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setInsetLeft'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Scale9Sprite:setInsetLeft"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setInsetLeft'", nullptr); return 0; } cobj->setInsetLeft(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setInsetLeft",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setInsetLeft'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_initWithSpriteFrame(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_initWithSpriteFrame'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { ax::SpriteFrame* arg0; ax::Rect arg1; ok &= luaval_to_object(tolua_S, 2, "ax.SpriteFrame",&arg0, "axui.Scale9Sprite:initWithSpriteFrame"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:initWithSpriteFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_initWithSpriteFrame'", nullptr); return 0; } bool ret = cobj->initWithSpriteFrame(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:initWithSpriteFrame",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_initWithSpriteFrame'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_getPreferredSize(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getPreferredSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getPreferredSize'", nullptr); return 0; } ax::Vec2 ret = cobj->getPreferredSize(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getPreferredSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getPreferredSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_setCapInsets(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setCapInsets'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Scale9Sprite:setCapInsets"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setCapInsets'", nullptr); return 0; } cobj->setCapInsets(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setCapInsets",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setCapInsets'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_getInsetLeft(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_getInsetLeft'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_getInsetLeft'", nullptr); return 0; } double ret = cobj->getInsetLeft(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:getInsetLeft",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_getInsetLeft'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_setInsetRight(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_Scale9Sprite_setInsetRight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.Scale9Sprite:setInsetRight"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_setInsetRight'", nullptr); return 0; } cobj->setInsetRight(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:setInsetRight",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_setInsetRight'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 3) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Scale9Sprite:create"); if (!ok) { break; } ax::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:create"); if (!ok) { break; } ax::Rect arg2; ok &= luaval_to_rect(tolua_S, 4, &arg2, "axui.Scale9Sprite:create"); if (!ok) { break; } ax::ui::Scale9Sprite* ret = ax::ui::Scale9Sprite::create(arg0, arg1, arg2); object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { ax::ui::Scale9Sprite* ret = ax::ui::Scale9Sprite::create(); object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.Scale9Sprite:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.Scale9Sprite:create"); if (!ok) { break; } ax::ui::Scale9Sprite* ret = ax::ui::Scale9Sprite::create(arg0, arg1); object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Scale9Sprite:create"); if (!ok) { break; } ax::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:create"); if (!ok) { break; } ax::ui::Scale9Sprite* ret = ax::ui::Scale9Sprite::create(arg0, arg1); object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); return 1; } } while (0); ok = true; do { if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Scale9Sprite:create"); if (!ok) { break; } ax::ui::Scale9Sprite* ret = ax::ui::Scale9Sprite::create(arg0); object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.Scale9Sprite:create",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_createWithSpriteFrameName(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Scale9Sprite:createWithSpriteFrameName"); if (!ok) { break; } ax::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:createWithSpriteFrameName"); if (!ok) { break; } ax::ui::Scale9Sprite* ret = ax::ui::Scale9Sprite::createWithSpriteFrameName(arg0, arg1); object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); return 1; } } while (0); ok = true; do { if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.Scale9Sprite:createWithSpriteFrameName"); if (!ok) { break; } ax::ui::Scale9Sprite* ret = ax::ui::Scale9Sprite::createWithSpriteFrameName(arg0); object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.Scale9Sprite:createWithSpriteFrameName",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_createWithSpriteFrameName'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_createWithSpriteFrame(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { ax::SpriteFrame* arg0; ok &= luaval_to_object(tolua_S, 2, "ax.SpriteFrame",&arg0, "axui.Scale9Sprite:createWithSpriteFrame"); if (!ok) { break; } ax::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "axui.Scale9Sprite:createWithSpriteFrame"); if (!ok) { break; } ax::ui::Scale9Sprite* ret = ax::ui::Scale9Sprite::createWithSpriteFrame(arg0, arg1); object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); return 1; } } while (0); ok = true; do { if (argc == 1) { ax::SpriteFrame* arg0; ok &= luaval_to_object(tolua_S, 2, "ax.SpriteFrame",&arg0, "axui.Scale9Sprite:createWithSpriteFrame"); if (!ok) { break; } ax::ui::Scale9Sprite* ret = ax::ui::Scale9Sprite::createWithSpriteFrame(arg0); object_to_luaval(tolua_S, "axui.Scale9Sprite",(ax::ui::Scale9Sprite*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.Scale9Sprite:createWithSpriteFrame",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_createWithSpriteFrame'.",&tolua_err); #endif return 0; } int lua_ax_ui_Scale9Sprite_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_Scale9Sprite_constructor'", nullptr); return 0; } cobj = new ax::ui::Scale9Sprite(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.Scale9Sprite"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.Scale9Sprite:Scale9Sprite",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_Scale9Sprite_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_Scale9Sprite_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Scale9Sprite)"); return 0; } int lua_register_ax_ui_Scale9Sprite(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.Scale9Sprite"); tolua_cclass(tolua_S,"Scale9Sprite","axui.Scale9Sprite","ax.Sprite",nullptr); tolua_beginmodule(tolua_S,"Scale9Sprite"); tolua_function(tolua_S,"new",lua_ax_ui_Scale9Sprite_constructor); tolua_function(tolua_S,"updateWithSprite",lua_ax_ui_Scale9Sprite_updateWithSprite); tolua_function(tolua_S,"resizableSpriteWithCapInsets",lua_ax_ui_Scale9Sprite_resizableSpriteWithCapInsets); tolua_function(tolua_S,"getCapInsets",lua_ax_ui_Scale9Sprite_getCapInsets); tolua_function(tolua_S,"setState",lua_ax_ui_Scale9Sprite_setState); tolua_function(tolua_S,"setInsetBottom",lua_ax_ui_Scale9Sprite_setInsetBottom); tolua_function(tolua_S,"initWithSpriteFrameName",lua_ax_ui_Scale9Sprite_initWithSpriteFrameName); tolua_function(tolua_S,"getSprite",lua_ax_ui_Scale9Sprite_getSprite); tolua_function(tolua_S,"setInsetTop",lua_ax_ui_Scale9Sprite_setInsetTop); tolua_function(tolua_S,"setRenderingType",lua_ax_ui_Scale9Sprite_setRenderingType); tolua_function(tolua_S,"init",lua_ax_ui_Scale9Sprite_init); tolua_function(tolua_S,"setPreferredSize",lua_ax_ui_Scale9Sprite_setPreferredSize); tolua_function(tolua_S,"copyTo",lua_ax_ui_Scale9Sprite_copyTo); tolua_function(tolua_S,"setSpriteFrame",lua_ax_ui_Scale9Sprite_setSpriteFrame); tolua_function(tolua_S,"getState",lua_ax_ui_Scale9Sprite_getState); tolua_function(tolua_S,"getInsetBottom",lua_ax_ui_Scale9Sprite_getInsetBottom); tolua_function(tolua_S,"setScale9Enabled",lua_ax_ui_Scale9Sprite_setScale9Enabled); tolua_function(tolua_S,"isScale9Enabled",lua_ax_ui_Scale9Sprite_isScale9Enabled); tolua_function(tolua_S,"resetRender",lua_ax_ui_Scale9Sprite_resetRender); tolua_function(tolua_S,"getRenderingType",lua_ax_ui_Scale9Sprite_getRenderingType); tolua_function(tolua_S,"getInsetRight",lua_ax_ui_Scale9Sprite_getInsetRight); tolua_function(tolua_S,"getOriginalSize",lua_ax_ui_Scale9Sprite_getOriginalSize); tolua_function(tolua_S,"initWithFile",lua_ax_ui_Scale9Sprite_initWithFile); tolua_function(tolua_S,"getInsetTop",lua_ax_ui_Scale9Sprite_getInsetTop); tolua_function(tolua_S,"setInsetLeft",lua_ax_ui_Scale9Sprite_setInsetLeft); tolua_function(tolua_S,"initWithSpriteFrame",lua_ax_ui_Scale9Sprite_initWithSpriteFrame); tolua_function(tolua_S,"getPreferredSize",lua_ax_ui_Scale9Sprite_getPreferredSize); tolua_function(tolua_S,"setCapInsets",lua_ax_ui_Scale9Sprite_setCapInsets); tolua_function(tolua_S,"getInsetLeft",lua_ax_ui_Scale9Sprite_getInsetLeft); tolua_function(tolua_S,"setInsetRight",lua_ax_ui_Scale9Sprite_setInsetRight); tolua_function(tolua_S,"create", lua_ax_ui_Scale9Sprite_create); tolua_function(tolua_S,"createWithSpriteFrameName", lua_ax_ui_Scale9Sprite_createWithSpriteFrameName); tolua_function(tolua_S,"createWithSpriteFrame", lua_ax_ui_Scale9Sprite_createWithSpriteFrame); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::Scale9Sprite).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.Scale9Sprite"; g_typeCast[typeName] = "axui.Scale9Sprite"; return 1; } int lua_ax_ui_EditBox_getFontSize(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getFontSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getFontSize'", nullptr); return 0; } int ret = cobj->getFontSize(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getFontSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getFontSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_keyboardDidShow(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_keyboardDidShow'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::IMEKeyboardNotificationInfo arg0; #pragma warning NO CONVERSION TO NATIVE FOR IMEKeyboardNotificationInfo ok = false; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_keyboardDidShow'", nullptr); return 0; } cobj->keyboardDidShow(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:keyboardDidShow",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_keyboardDidShow'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setMaxLength(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setMaxLength'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setMaxLength"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setMaxLength'", nullptr); return 0; } cobj->setMaxLength(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setMaxLength",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setMaxLength'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_openKeyboard(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_openKeyboard'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_openKeyboard'", nullptr); return 0; } cobj->openKeyboard(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:openKeyboard",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_openKeyboard'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setFontSize(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setFontSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setFontSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setFontSize'", nullptr); return 0; } cobj->setFontSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setFontSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setFontSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_getText(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getText'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getText'", nullptr); return 0; } const char* ret = cobj->getText(); tolua_pushstring(tolua_S,(const char*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getText",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getText'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_getInputMode(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getInputMode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getInputMode'", nullptr); return 0; } int ret = (int)cobj->getInputMode(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getInputMode",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getInputMode'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_initWithSizeAndBackgroundSprite(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_initWithSizeAndBackgroundSprite'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { ax::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "axui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } ax::ui::Scale9Sprite* arg1; ok &= luaval_to_object(tolua_S, 3, "axui.Scale9Sprite",&arg1, "axui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } bool ret = cobj->initWithSizeAndBackgroundSprite(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 2) { ax::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "axui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } bool ret = cobj->initWithSizeAndBackgroundSprite(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 3) { ax::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "axui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } ax::ui::Widget::TextureResType arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "axui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } bool ret = cobj->initWithSizeAndBackgroundSprite(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 4) { ax::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "axui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } ax::ui::Scale9Sprite* arg1; ok &= luaval_to_object(tolua_S, 3, "axui.Scale9Sprite",&arg1, "axui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } ax::ui::Scale9Sprite* arg2; ok &= luaval_to_object(tolua_S, 4, "axui.Scale9Sprite",&arg2, "axui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } ax::ui::Scale9Sprite* arg3; ok &= luaval_to_object(tolua_S, 5, "axui.Scale9Sprite",&arg3, "axui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } bool ret = cobj->initWithSizeAndBackgroundSprite(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:initWithSizeAndBackgroundSprite",argc, 4); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_initWithSizeAndBackgroundSprite'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_getPlaceholderFontName(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getPlaceholderFontName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getPlaceholderFontName'", nullptr); return 0; } const char* ret = cobj->getPlaceholderFontName(); tolua_pushstring(tolua_S,(const char*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getPlaceholderFontName",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getPlaceholderFontName'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_keyboardDidHide(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_keyboardDidHide'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::IMEKeyboardNotificationInfo arg0; #pragma warning NO CONVERSION TO NATIVE FOR IMEKeyboardNotificationInfo ok = false; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_keyboardDidHide'", nullptr); return 0; } cobj->keyboardDidHide(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:keyboardDidHide",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_keyboardDidHide'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setPlaceholderFontName(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setPlaceholderFontName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "axui.EditBox:setPlaceholderFontName"); arg0 = arg0_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setPlaceholderFontName'", nullptr); return 0; } cobj->setPlaceholderFontName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setPlaceholderFontName",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setPlaceholderFontName'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_getPlaceholderFontSize(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getPlaceholderFontSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getPlaceholderFontSize'", nullptr); return 0; } int ret = cobj->getPlaceholderFontSize(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getPlaceholderFontSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getPlaceholderFontSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_getCapInsetsDisabledRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getCapInsetsDisabledRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getCapInsetsDisabledRenderer'", nullptr); return 0; } const ax::Rect& ret = cobj->getCapInsetsDisabledRenderer(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getCapInsetsDisabledRenderer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getCapInsetsDisabledRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_getPlaceHolder(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getPlaceHolder'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getPlaceHolder'", nullptr); return 0; } const char* ret = cobj->getPlaceHolder(); tolua_pushstring(tolua_S,(const char*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getPlaceHolder",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getPlaceHolder'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setFontName(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setFontName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "axui.EditBox:setFontName"); arg0 = arg0_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setFontName'", nullptr); return 0; } cobj->setFontName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setFontName",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setFontName'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_registerScriptEditBoxHandler(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_registerScriptEditBoxHandler'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:registerScriptEditBoxHandler"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_registerScriptEditBoxHandler'", nullptr); return 0; } cobj->registerScriptEditBoxHandler(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:registerScriptEditBoxHandler",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_registerScriptEditBoxHandler'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setCapInsetsDisabledRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setCapInsetsDisabledRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.EditBox:setCapInsetsDisabledRenderer"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setCapInsetsDisabledRenderer'", nullptr); return 0; } cobj->setCapInsetsDisabledRenderer(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setCapInsetsDisabledRenderer",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setCapInsetsDisabledRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setPlaceholderFontSize(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setPlaceholderFontSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setPlaceholderFontSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setPlaceholderFontSize'", nullptr); return 0; } cobj->setPlaceholderFontSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setPlaceholderFontSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setPlaceholderFontSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_loadTextureDisabled(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_loadTextureDisabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.EditBox:loadTextureDisabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_loadTextureDisabled'", nullptr); return 0; } cobj->loadTextureDisabled(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.EditBox:loadTextureDisabled"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.EditBox:loadTextureDisabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_loadTextureDisabled'", nullptr); return 0; } cobj->loadTextureDisabled(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:loadTextureDisabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_loadTextureDisabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setInputMode(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setInputMode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::EditBox::InputMode arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setInputMode"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setInputMode'", nullptr); return 0; } cobj->setInputMode(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setInputMode",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setInputMode'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_unregisterScriptEditBoxHandler(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_unregisterScriptEditBoxHandler'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_unregisterScriptEditBoxHandler'", nullptr); return 0; } cobj->unregisterScriptEditBoxHandler(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:unregisterScriptEditBoxHandler",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_unregisterScriptEditBoxHandler'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_keyboardWillShow(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_keyboardWillShow'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::IMEKeyboardNotificationInfo arg0; #pragma warning NO CONVERSION TO NATIVE FOR IMEKeyboardNotificationInfo ok = false; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_keyboardWillShow'", nullptr); return 0; } cobj->keyboardWillShow(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:keyboardWillShow",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_keyboardWillShow'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setPlaceholderFontColor(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setPlaceholderFontColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { ax::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.EditBox:setPlaceholderFontColor"); if (!ok) { break; } cobj->setPlaceholderFontColor(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { ax::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.EditBox:setPlaceholderFontColor"); if (!ok) { break; } cobj->setPlaceholderFontColor(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setPlaceholderFontColor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setPlaceholderFontColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_getReturnType(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getReturnType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getReturnType'", nullptr); return 0; } int ret = (int)cobj->getReturnType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getReturnType",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getReturnType'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setFontColor(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setFontColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { ax::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.EditBox:setFontColor"); if (!ok) { break; } cobj->setFontColor(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { ax::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "axui.EditBox:setFontColor"); if (!ok) { break; } cobj->setFontColor(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setFontColor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setFontColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_getFontName(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getFontName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getFontName'", nullptr); return 0; } const char* ret = cobj->getFontName(); tolua_pushstring(tolua_S,(const char*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getFontName",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getFontName'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_keyboardWillHide(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_keyboardWillHide'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::IMEKeyboardNotificationInfo arg0; #pragma warning NO CONVERSION TO NATIVE FOR IMEKeyboardNotificationInfo ok = false; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_keyboardWillHide'", nullptr); return 0; } cobj->keyboardWillHide(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:keyboardWillHide",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_keyboardWillHide'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_closeKeyboard(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_closeKeyboard'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_closeKeyboard'", nullptr); return 0; } cobj->closeKeyboard(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:closeKeyboard",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_closeKeyboard'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setCapInsetsNormalRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setCapInsetsNormalRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.EditBox:setCapInsetsNormalRenderer"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setCapInsetsNormalRenderer'", nullptr); return 0; } cobj->setCapInsetsNormalRenderer(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setCapInsetsNormalRenderer",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setCapInsetsNormalRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_loadTexturePressed(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_loadTexturePressed'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.EditBox:loadTexturePressed"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_loadTexturePressed'", nullptr); return 0; } cobj->loadTexturePressed(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.EditBox:loadTexturePressed"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.EditBox:loadTexturePressed"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_loadTexturePressed'", nullptr); return 0; } cobj->loadTexturePressed(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:loadTexturePressed",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_loadTexturePressed'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_getFontColor(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getFontColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getFontColor'", nullptr); return 0; } const ax::Color4B& ret = cobj->getFontColor(); color4b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getFontColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getFontColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_getInputFlag(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getInputFlag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getInputFlag'", nullptr); return 0; } int ret = (int)cobj->getInputFlag(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getInputFlag",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getInputFlag'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_initWithSizeAndTexture(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_initWithSizeAndTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { ax::Size arg0; std::string_view arg1; ok &= luaval_to_size(tolua_S, 2, &arg0, "axui.EditBox:initWithSizeAndTexture"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.EditBox:initWithSizeAndTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_initWithSizeAndTexture'", nullptr); return 0; } bool ret = cobj->initWithSizeAndTexture(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 3) { ax::Size arg0; std::string_view arg1; std::string_view arg2; ok &= luaval_to_size(tolua_S, 2, &arg0, "axui.EditBox:initWithSizeAndTexture"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.EditBox:initWithSizeAndTexture"); ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.EditBox:initWithSizeAndTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_initWithSizeAndTexture'", nullptr); return 0; } bool ret = cobj->initWithSizeAndTexture(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 4) { ax::Size arg0; std::string_view arg1; std::string_view arg2; std::string_view arg3; ok &= luaval_to_size(tolua_S, 2, &arg0, "axui.EditBox:initWithSizeAndTexture"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.EditBox:initWithSizeAndTexture"); ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.EditBox:initWithSizeAndTexture"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.EditBox:initWithSizeAndTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_initWithSizeAndTexture'", nullptr); return 0; } bool ret = cobj->initWithSizeAndTexture(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 5) { ax::Size arg0; std::string_view arg1; std::string_view arg2; std::string_view arg3; ax::ui::Widget::TextureResType arg4; ok &= luaval_to_size(tolua_S, 2, &arg0, "axui.EditBox:initWithSizeAndTexture"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.EditBox:initWithSizeAndTexture"); ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.EditBox:initWithSizeAndTexture"); ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.EditBox:initWithSizeAndTexture"); ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "axui.EditBox:initWithSizeAndTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_initWithSizeAndTexture'", nullptr); return 0; } bool ret = cobj->initWithSizeAndTexture(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:initWithSizeAndTexture",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_initWithSizeAndTexture'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_getTextHorizontalAlignment(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getTextHorizontalAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getTextHorizontalAlignment'", nullptr); return 0; } int ret = (int)cobj->getTextHorizontalAlignment(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getTextHorizontalAlignment",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getTextHorizontalAlignment'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_getCapInsetsNormalRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getCapInsetsNormalRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getCapInsetsNormalRenderer'", nullptr); return 0; } const ax::Rect& ret = cobj->getCapInsetsNormalRenderer(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getCapInsetsNormalRenderer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getCapInsetsNormalRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_getCapInsetsPressedRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getCapInsetsPressedRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getCapInsetsPressedRenderer'", nullptr); return 0; } const ax::Rect& ret = cobj->getCapInsetsPressedRenderer(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getCapInsetsPressedRenderer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getCapInsetsPressedRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_getScriptEditBoxHandler(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getScriptEditBoxHandler'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getScriptEditBoxHandler'", nullptr); return 0; } int ret = cobj->getScriptEditBoxHandler(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getScriptEditBoxHandler",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getScriptEditBoxHandler'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_loadTextures(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_loadTextures'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string_view arg0; std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.EditBox:loadTextures"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.EditBox:loadTextures"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_loadTextures'", nullptr); return 0; } cobj->loadTextures(arg0, arg1); lua_settop(tolua_S, 1); return 1; } if (argc == 3) { std::string_view arg0; std::string_view arg1; std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.EditBox:loadTextures"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.EditBox:loadTextures"); ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.EditBox:loadTextures"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_loadTextures'", nullptr); return 0; } cobj->loadTextures(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } if (argc == 4) { std::string_view arg0; std::string_view arg1; std::string_view arg2; ax::ui::Widget::TextureResType arg3; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.EditBox:loadTextures"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.EditBox:loadTextures"); ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.EditBox:loadTextures"); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "axui.EditBox:loadTextures"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_loadTextures'", nullptr); return 0; } cobj->loadTextures(arg0, arg1, arg2, arg3); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:loadTextures",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_loadTextures'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setPlaceHolder(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setPlaceHolder'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "axui.EditBox:setPlaceHolder"); arg0 = arg0_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setPlaceHolder'", nullptr); return 0; } cobj->setPlaceHolder(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setPlaceHolder",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setPlaceHolder'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setInputFlag(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setInputFlag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::EditBox::InputFlag arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setInputFlag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setInputFlag'", nullptr); return 0; } cobj->setInputFlag(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setInputFlag",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setInputFlag'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setReturnType(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setReturnType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::EditBox::KeyboardReturnType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setReturnType"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setReturnType'", nullptr); return 0; } cobj->setReturnType(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setReturnType",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setReturnType'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_loadTextureNormal(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_loadTextureNormal'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.EditBox:loadTextureNormal"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_loadTextureNormal'", nullptr); return 0; } cobj->loadTextureNormal(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string_view arg0; ax::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.EditBox:loadTextureNormal"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.EditBox:loadTextureNormal"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_loadTextureNormal'", nullptr); return 0; } cobj->loadTextureNormal(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:loadTextureNormal",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_loadTextureNormal'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_getMaxLength(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getMaxLength'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getMaxLength'", nullptr); return 0; } int ret = cobj->getMaxLength(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getMaxLength",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getMaxLength'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setCapInsetsPressedRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setCapInsetsPressedRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.EditBox:setCapInsetsPressedRenderer"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setCapInsetsPressedRenderer'", nullptr); return 0; } cobj->setCapInsetsPressedRenderer(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setCapInsetsPressedRenderer",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setCapInsetsPressedRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setText(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setText'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "axui.EditBox:setText"); arg0 = arg0_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setText'", nullptr); return 0; } cobj->setText(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setText",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setText'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setPlaceholderFont(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setPlaceholderFont'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { const char* arg0; int arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "axui.EditBox:setPlaceholderFont"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.EditBox:setPlaceholderFont"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setPlaceholderFont'", nullptr); return 0; } cobj->setPlaceholderFont(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setPlaceholderFont",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setPlaceholderFont'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_getPlaceholderFontColor(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_getPlaceholderFontColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_getPlaceholderFontColor'", nullptr); return 0; } const ax::Color4B& ret = cobj->getPlaceholderFontColor(); color4b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:getPlaceholderFontColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_getPlaceholderFontColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setCapInsets(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setCapInsets'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "axui.EditBox:setCapInsets"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setCapInsets'", nullptr); return 0; } cobj->setCapInsets(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setCapInsets",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setCapInsets'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setFont(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setFont'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { const char* arg0; int arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "axui.EditBox:setFont"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "axui.EditBox:setFont"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setFont'", nullptr); return 0; } cobj->setFont(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setFont",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setFont'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_setTextHorizontalAlignment(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_EditBox_setTextHorizontalAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.EditBox:setTextHorizontalAlignment"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_setTextHorizontalAlignment'", nullptr); return 0; } cobj->setTextHorizontalAlignment(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:setTextHorizontalAlignment",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_setTextHorizontalAlignment'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 3) { ax::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "axui.EditBox:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.EditBox:create"); if (!ok) { break; } ax::ui::Widget::TextureResType arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "axui.EditBox:create"); if (!ok) { break; } ax::ui::EditBox* ret = ax::ui::EditBox::create(arg0, arg1, arg2); object_to_luaval(tolua_S, "axui.EditBox",(ax::ui::EditBox*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { ax::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "axui.EditBox:create"); if (!ok) { break; } ax::ui::Scale9Sprite* arg1; ok &= luaval_to_object(tolua_S, 3, "axui.Scale9Sprite",&arg1, "axui.EditBox:create"); if (!ok) { break; } ax::ui::EditBox* ret = ax::ui::EditBox::create(arg0, arg1); object_to_luaval(tolua_S, "axui.EditBox",(ax::ui::EditBox*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { ax::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "axui.EditBox:create"); if (!ok) { break; } ax::ui::Scale9Sprite* arg1; ok &= luaval_to_object(tolua_S, 3, "axui.Scale9Sprite",&arg1, "axui.EditBox:create"); if (!ok) { break; } ax::ui::Scale9Sprite* arg2; ok &= luaval_to_object(tolua_S, 4, "axui.Scale9Sprite",&arg2, "axui.EditBox:create"); if (!ok) { break; } ax::ui::EditBox* ret = ax::ui::EditBox::create(arg0, arg1, arg2); object_to_luaval(tolua_S, "axui.EditBox",(ax::ui::EditBox*)ret); return 1; } } while (0); ok = true; do { if (argc == 4) { ax::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "axui.EditBox:create"); if (!ok) { break; } ax::ui::Scale9Sprite* arg1; ok &= luaval_to_object(tolua_S, 3, "axui.Scale9Sprite",&arg1, "axui.EditBox:create"); if (!ok) { break; } ax::ui::Scale9Sprite* arg2; ok &= luaval_to_object(tolua_S, 4, "axui.Scale9Sprite",&arg2, "axui.EditBox:create"); if (!ok) { break; } ax::ui::Scale9Sprite* arg3; ok &= luaval_to_object(tolua_S, 5, "axui.Scale9Sprite",&arg3, "axui.EditBox:create"); if (!ok) { break; } ax::ui::EditBox* ret = ax::ui::EditBox::create(arg0, arg1, arg2, arg3); object_to_luaval(tolua_S, "axui.EditBox",(ax::ui::EditBox*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { ax::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "axui.EditBox:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.EditBox:create"); if (!ok) { break; } ax::ui::EditBox* ret = ax::ui::EditBox::create(arg0, arg1); object_to_luaval(tolua_S, "axui.EditBox",(ax::ui::EditBox*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { ax::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "axui.EditBox:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.EditBox:create"); if (!ok) { break; } std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.EditBox:create"); if (!ok) { break; } ax::ui::EditBox* ret = ax::ui::EditBox::create(arg0, arg1, arg2); object_to_luaval(tolua_S, "axui.EditBox",(ax::ui::EditBox*)ret); return 1; } } while (0); ok = true; do { if (argc == 4) { ax::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "axui.EditBox:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.EditBox:create"); if (!ok) { break; } std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.EditBox:create"); if (!ok) { break; } std::string_view arg3; ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.EditBox:create"); if (!ok) { break; } ax::ui::EditBox* ret = ax::ui::EditBox::create(arg0, arg1, arg2, arg3); object_to_luaval(tolua_S, "axui.EditBox",(ax::ui::EditBox*)ret); return 1; } } while (0); ok = true; do { if (argc == 5) { ax::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "axui.EditBox:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.EditBox:create"); if (!ok) { break; } std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.EditBox:create"); if (!ok) { break; } std::string_view arg3; ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.EditBox:create"); if (!ok) { break; } ax::ui::Widget::TextureResType arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "axui.EditBox:create"); if (!ok) { break; } ax::ui::EditBox* ret = ax::ui::EditBox::create(arg0, arg1, arg2, arg3, arg4); object_to_luaval(tolua_S, "axui.EditBox",(ax::ui::EditBox*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.EditBox:create",argc, 2); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_EditBox_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::EditBox* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_EditBox_constructor'", nullptr); return 0; } cobj = new ax::ui::EditBox(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.EditBox"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.EditBox:EditBox",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_EditBox_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_EditBox_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EditBox)"); return 0; } int lua_register_ax_ui_EditBox(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.EditBox"); tolua_cclass(tolua_S,"EditBox","axui.EditBox","axui.Widget",nullptr); tolua_beginmodule(tolua_S,"EditBox"); tolua_function(tolua_S,"new",lua_ax_ui_EditBox_constructor); tolua_function(tolua_S,"getFontSize",lua_ax_ui_EditBox_getFontSize); tolua_function(tolua_S,"keyboardDidShow",lua_ax_ui_EditBox_keyboardDidShow); tolua_function(tolua_S,"setMaxLength",lua_ax_ui_EditBox_setMaxLength); tolua_function(tolua_S,"openKeyboard",lua_ax_ui_EditBox_openKeyboard); tolua_function(tolua_S,"setFontSize",lua_ax_ui_EditBox_setFontSize); tolua_function(tolua_S,"getText",lua_ax_ui_EditBox_getText); tolua_function(tolua_S,"getInputMode",lua_ax_ui_EditBox_getInputMode); tolua_function(tolua_S,"initWithSizeAndBackgroundSprite",lua_ax_ui_EditBox_initWithSizeAndBackgroundSprite); tolua_function(tolua_S,"getPlaceholderFontName",lua_ax_ui_EditBox_getPlaceholderFontName); tolua_function(tolua_S,"keyboardDidHide",lua_ax_ui_EditBox_keyboardDidHide); tolua_function(tolua_S,"setPlaceholderFontName",lua_ax_ui_EditBox_setPlaceholderFontName); tolua_function(tolua_S,"getPlaceholderFontSize",lua_ax_ui_EditBox_getPlaceholderFontSize); tolua_function(tolua_S,"getCapInsetsDisabledRenderer",lua_ax_ui_EditBox_getCapInsetsDisabledRenderer); tolua_function(tolua_S,"getPlaceHolder",lua_ax_ui_EditBox_getPlaceHolder); tolua_function(tolua_S,"setFontName",lua_ax_ui_EditBox_setFontName); tolua_function(tolua_S,"registerScriptEditBoxHandler",lua_ax_ui_EditBox_registerScriptEditBoxHandler); tolua_function(tolua_S,"setCapInsetsDisabledRenderer",lua_ax_ui_EditBox_setCapInsetsDisabledRenderer); tolua_function(tolua_S,"setPlaceholderFontSize",lua_ax_ui_EditBox_setPlaceholderFontSize); tolua_function(tolua_S,"loadTextureDisabled",lua_ax_ui_EditBox_loadTextureDisabled); tolua_function(tolua_S,"setInputMode",lua_ax_ui_EditBox_setInputMode); tolua_function(tolua_S,"unregisterScriptEditBoxHandler",lua_ax_ui_EditBox_unregisterScriptEditBoxHandler); tolua_function(tolua_S,"keyboardWillShow",lua_ax_ui_EditBox_keyboardWillShow); tolua_function(tolua_S,"setPlaceholderFontColor",lua_ax_ui_EditBox_setPlaceholderFontColor); tolua_function(tolua_S,"getReturnType",lua_ax_ui_EditBox_getReturnType); tolua_function(tolua_S,"setFontColor",lua_ax_ui_EditBox_setFontColor); tolua_function(tolua_S,"getFontName",lua_ax_ui_EditBox_getFontName); tolua_function(tolua_S,"keyboardWillHide",lua_ax_ui_EditBox_keyboardWillHide); tolua_function(tolua_S,"closeKeyboard",lua_ax_ui_EditBox_closeKeyboard); tolua_function(tolua_S,"setCapInsetsNormalRenderer",lua_ax_ui_EditBox_setCapInsetsNormalRenderer); tolua_function(tolua_S,"loadTexturePressed",lua_ax_ui_EditBox_loadTexturePressed); tolua_function(tolua_S,"getFontColor",lua_ax_ui_EditBox_getFontColor); tolua_function(tolua_S,"getInputFlag",lua_ax_ui_EditBox_getInputFlag); tolua_function(tolua_S,"initWithSizeAndTexture",lua_ax_ui_EditBox_initWithSizeAndTexture); tolua_function(tolua_S,"getTextHorizontalAlignment",lua_ax_ui_EditBox_getTextHorizontalAlignment); tolua_function(tolua_S,"getCapInsetsNormalRenderer",lua_ax_ui_EditBox_getCapInsetsNormalRenderer); tolua_function(tolua_S,"getCapInsetsPressedRenderer",lua_ax_ui_EditBox_getCapInsetsPressedRenderer); tolua_function(tolua_S,"getScriptEditBoxHandler",lua_ax_ui_EditBox_getScriptEditBoxHandler); tolua_function(tolua_S,"loadTextures",lua_ax_ui_EditBox_loadTextures); tolua_function(tolua_S,"setPlaceHolder",lua_ax_ui_EditBox_setPlaceHolder); tolua_function(tolua_S,"setInputFlag",lua_ax_ui_EditBox_setInputFlag); tolua_function(tolua_S,"setReturnType",lua_ax_ui_EditBox_setReturnType); tolua_function(tolua_S,"loadTextureNormal",lua_ax_ui_EditBox_loadTextureNormal); tolua_function(tolua_S,"getMaxLength",lua_ax_ui_EditBox_getMaxLength); tolua_function(tolua_S,"setCapInsetsPressedRenderer",lua_ax_ui_EditBox_setCapInsetsPressedRenderer); tolua_function(tolua_S,"setText",lua_ax_ui_EditBox_setText); tolua_function(tolua_S,"setPlaceholderFont",lua_ax_ui_EditBox_setPlaceholderFont); tolua_function(tolua_S,"getPlaceholderFontColor",lua_ax_ui_EditBox_getPlaceholderFontColor); tolua_function(tolua_S,"setCapInsets",lua_ax_ui_EditBox_setCapInsets); tolua_function(tolua_S,"setFont",lua_ax_ui_EditBox_setFont); tolua_function(tolua_S,"setTextHorizontalAlignment",lua_ax_ui_EditBox_setTextHorizontalAlignment); tolua_function(tolua_S,"create", lua_ax_ui_EditBox_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::EditBox).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.EditBox"; g_typeCast[typeName] = "axui.EditBox"; return 1; } int lua_ax_ui_LayoutComponent_setStretchWidthEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setStretchWidthEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setStretchWidthEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setStretchWidthEnabled'", nullptr); return 0; } cobj->setStretchWidthEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setStretchWidthEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setStretchWidthEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setPercentWidth(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPercentWidth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setPercentWidth"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPercentWidth'", nullptr); return 0; } cobj->setPercentWidth(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPercentWidth",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPercentWidth'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_getAnchorPosition(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getAnchorPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getAnchorPosition'", nullptr); return 0; } const ax::Point& ret = cobj->getAnchorPosition(); point_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getAnchorPosition",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getAnchorPosition'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setPositionPercentXEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPositionPercentXEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setPositionPercentXEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPositionPercentXEnabled'", nullptr); return 0; } cobj->setPositionPercentXEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPositionPercentXEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPositionPercentXEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setStretchHeightEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setStretchHeightEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setStretchHeightEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setStretchHeightEnabled'", nullptr); return 0; } cobj->setStretchHeightEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setStretchHeightEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setStretchHeightEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setActiveEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setActiveEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setActiveEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setActiveEnabled'", nullptr); return 0; } cobj->setActiveEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setActiveEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setActiveEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_getRightMargin(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getRightMargin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getRightMargin'", nullptr); return 0; } double ret = cobj->getRightMargin(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getRightMargin",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getRightMargin'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_getSize(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getSize'", nullptr); return 0; } const ax::Vec2& ret = cobj->getSize(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setAnchorPosition(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setAnchorPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Point arg0; ok &= luaval_to_point(tolua_S, 2, &arg0, "axui.LayoutComponent:setAnchorPosition"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setAnchorPosition'", nullptr); return 0; } cobj->setAnchorPosition(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setAnchorPosition",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setAnchorPosition'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_refreshLayout(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_refreshLayout'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_refreshLayout'", nullptr); return 0; } cobj->refreshLayout(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:refreshLayout",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_refreshLayout'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_isPercentWidthEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_isPercentWidthEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_isPercentWidthEnabled'", nullptr); return 0; } bool ret = cobj->isPercentWidthEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:isPercentWidthEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_isPercentWidthEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setVerticalEdge(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setVerticalEdge'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::LayoutComponent::VerticalEdge arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.LayoutComponent:setVerticalEdge"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setVerticalEdge'", nullptr); return 0; } cobj->setVerticalEdge(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setVerticalEdge",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setVerticalEdge'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_getTopMargin(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getTopMargin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getTopMargin'", nullptr); return 0; } double ret = cobj->getTopMargin(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getTopMargin",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getTopMargin'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setSizeWidth(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setSizeWidth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setSizeWidth"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setSizeWidth'", nullptr); return 0; } cobj->setSizeWidth(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setSizeWidth",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setSizeWidth'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_getPercentContentSize(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getPercentContentSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getPercentContentSize'", nullptr); return 0; } ax::Vec2 ret = cobj->getPercentContentSize(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getPercentContentSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getPercentContentSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_getVerticalEdge(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getVerticalEdge'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getVerticalEdge'", nullptr); return 0; } int ret = (int)cobj->getVerticalEdge(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getVerticalEdge",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getVerticalEdge'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setPercentWidthEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPercentWidthEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setPercentWidthEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPercentWidthEnabled'", nullptr); return 0; } cobj->setPercentWidthEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPercentWidthEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPercentWidthEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_isStretchWidthEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_isStretchWidthEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_isStretchWidthEnabled'", nullptr); return 0; } bool ret = cobj->isStretchWidthEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:isStretchWidthEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_isStretchWidthEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setLeftMargin(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setLeftMargin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setLeftMargin"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setLeftMargin'", nullptr); return 0; } cobj->setLeftMargin(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setLeftMargin",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setLeftMargin'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_getSizeWidth(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getSizeWidth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getSizeWidth'", nullptr); return 0; } double ret = cobj->getSizeWidth(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getSizeWidth",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getSizeWidth'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setPositionPercentYEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPositionPercentYEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setPositionPercentYEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPositionPercentYEnabled'", nullptr); return 0; } cobj->setPositionPercentYEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPositionPercentYEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPositionPercentYEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_getSizeHeight(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getSizeHeight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getSizeHeight'", nullptr); return 0; } double ret = cobj->getSizeHeight(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getSizeHeight",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getSizeHeight'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_getPositionPercentY(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getPositionPercentY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getPositionPercentY'", nullptr); return 0; } double ret = cobj->getPositionPercentY(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getPositionPercentY",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getPositionPercentY'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_getPositionPercentX(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getPositionPercentX'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getPositionPercentX'", nullptr); return 0; } double ret = cobj->getPositionPercentX(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getPositionPercentX",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getPositionPercentX'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setTopMargin(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setTopMargin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setTopMargin"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setTopMargin'", nullptr); return 0; } cobj->setTopMargin(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setTopMargin",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setTopMargin'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_getPercentHeight(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getPercentHeight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getPercentHeight'", nullptr); return 0; } double ret = cobj->getPercentHeight(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getPercentHeight",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getPercentHeight'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_getUsingPercentContentSize(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getUsingPercentContentSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getUsingPercentContentSize'", nullptr); return 0; } bool ret = cobj->getUsingPercentContentSize(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getUsingPercentContentSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getUsingPercentContentSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setPositionPercentY(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPositionPercentY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setPositionPercentY"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPositionPercentY'", nullptr); return 0; } cobj->setPositionPercentY(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPositionPercentY",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPositionPercentY'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setPositionPercentX(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPositionPercentX'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setPositionPercentX"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPositionPercentX'", nullptr); return 0; } cobj->setPositionPercentX(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPositionPercentX",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPositionPercentX'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setRightMargin(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setRightMargin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setRightMargin"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setRightMargin'", nullptr); return 0; } cobj->setRightMargin(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setRightMargin",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setRightMargin'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_isPositionPercentYEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_isPositionPercentYEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_isPositionPercentYEnabled'", nullptr); return 0; } bool ret = cobj->isPositionPercentYEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:isPositionPercentYEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_isPositionPercentYEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setPercentHeight(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPercentHeight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setPercentHeight"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPercentHeight'", nullptr); return 0; } cobj->setPercentHeight(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPercentHeight",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPercentHeight'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setPercentOnlyEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPercentOnlyEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setPercentOnlyEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPercentOnlyEnabled'", nullptr); return 0; } cobj->setPercentOnlyEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPercentOnlyEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPercentOnlyEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setHorizontalEdge(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setHorizontalEdge'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::LayoutComponent::HorizontalEdge arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.LayoutComponent:setHorizontalEdge"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setHorizontalEdge'", nullptr); return 0; } cobj->setHorizontalEdge(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setHorizontalEdge",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setHorizontalEdge'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setPosition(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Point arg0; ok &= luaval_to_point(tolua_S, 2, &arg0, "axui.LayoutComponent:setPosition"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPosition'", nullptr); return 0; } cobj->setPosition(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPosition",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPosition'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setUsingPercentContentSize(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setUsingPercentContentSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setUsingPercentContentSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setUsingPercentContentSize'", nullptr); return 0; } cobj->setUsingPercentContentSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setUsingPercentContentSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setUsingPercentContentSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_getLeftMargin(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getLeftMargin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getLeftMargin'", nullptr); return 0; } double ret = cobj->getLeftMargin(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getLeftMargin",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getLeftMargin'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_getPosition(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getPosition'", nullptr); return 0; } const ax::Point& ret = cobj->getPosition(); point_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getPosition",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getPosition'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setSizeHeight(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setSizeHeight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setSizeHeight"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setSizeHeight'", nullptr); return 0; } cobj->setSizeHeight(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setSizeHeight",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setSizeHeight'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_isPositionPercentXEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_isPositionPercentXEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_isPositionPercentXEnabled'", nullptr); return 0; } bool ret = cobj->isPositionPercentXEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:isPositionPercentXEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_isPositionPercentXEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_getBottomMargin(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getBottomMargin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getBottomMargin'", nullptr); return 0; } double ret = cobj->getBottomMargin(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getBottomMargin",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getBottomMargin'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setPercentHeightEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPercentHeightEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.LayoutComponent:setPercentHeightEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPercentHeightEnabled'", nullptr); return 0; } cobj->setPercentHeightEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPercentHeightEnabled",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPercentHeightEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setPercentContentSize(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setPercentContentSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.LayoutComponent:setPercentContentSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setPercentContentSize'", nullptr); return 0; } cobj->setPercentContentSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setPercentContentSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setPercentContentSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_isPercentHeightEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_isPercentHeightEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_isPercentHeightEnabled'", nullptr); return 0; } bool ret = cobj->isPercentHeightEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:isPercentHeightEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_isPercentHeightEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_getPercentWidth(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getPercentWidth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getPercentWidth'", nullptr); return 0; } double ret = cobj->getPercentWidth(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getPercentWidth",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getPercentWidth'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_getHorizontalEdge(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_getHorizontalEdge'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_getHorizontalEdge'", nullptr); return 0; } int ret = (int)cobj->getHorizontalEdge(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:getHorizontalEdge",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_getHorizontalEdge'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_isStretchHeightEnabled(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_isStretchHeightEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_isStretchHeightEnabled'", nullptr); return 0; } bool ret = cobj->isStretchHeightEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:isStretchHeightEnabled",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_isStretchHeightEnabled'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setBottomMargin(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setBottomMargin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.LayoutComponent:setBottomMargin"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setBottomMargin'", nullptr); return 0; } cobj->setBottomMargin(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setBottomMargin",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setBottomMargin'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_setSize(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_LayoutComponent_setSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "axui.LayoutComponent:setSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_setSize'", nullptr); return 0; } cobj->setSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:setSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_setSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_create'", nullptr); return 0; } ax::ui::LayoutComponent* ret = ax::ui::LayoutComponent::create(); object_to_luaval(tolua_S, "axui.LayoutComponent",(ax::ui::LayoutComponent*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.LayoutComponent:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_create'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_bindLayoutComponent(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { ax::Node* arg0; ok &= luaval_to_object(tolua_S, 2, "ax.Node",&arg0, "axui.LayoutComponent:bindLayoutComponent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_bindLayoutComponent'", nullptr); return 0; } ax::ui::LayoutComponent* ret = ax::ui::LayoutComponent::bindLayoutComponent(arg0); object_to_luaval(tolua_S, "axui.LayoutComponent",(ax::ui::LayoutComponent*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.LayoutComponent:bindLayoutComponent",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_bindLayoutComponent'.",&tolua_err); #endif return 0; } int lua_ax_ui_LayoutComponent_constructor(lua_State* tolua_S) { int argc = 0; ax::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_LayoutComponent_constructor'", nullptr); return 0; } cobj = new ax::ui::LayoutComponent(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.LayoutComponent"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.LayoutComponent:LayoutComponent",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_LayoutComponent_constructor'.",&tolua_err); #endif return 0; } static int lua_ax_ui_LayoutComponent_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (LayoutComponent)"); return 0; } int lua_register_ax_ui_LayoutComponent(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.LayoutComponent"); tolua_cclass(tolua_S,"LayoutComponent","axui.LayoutComponent","ax.Component",nullptr); tolua_beginmodule(tolua_S,"LayoutComponent"); tolua_function(tolua_S,"new",lua_ax_ui_LayoutComponent_constructor); tolua_function(tolua_S,"setStretchWidthEnabled",lua_ax_ui_LayoutComponent_setStretchWidthEnabled); tolua_function(tolua_S,"setPercentWidth",lua_ax_ui_LayoutComponent_setPercentWidth); tolua_function(tolua_S,"getAnchorPosition",lua_ax_ui_LayoutComponent_getAnchorPosition); tolua_function(tolua_S,"setPositionPercentXEnabled",lua_ax_ui_LayoutComponent_setPositionPercentXEnabled); tolua_function(tolua_S,"setStretchHeightEnabled",lua_ax_ui_LayoutComponent_setStretchHeightEnabled); tolua_function(tolua_S,"setActiveEnabled",lua_ax_ui_LayoutComponent_setActiveEnabled); tolua_function(tolua_S,"getRightMargin",lua_ax_ui_LayoutComponent_getRightMargin); tolua_function(tolua_S,"getSize",lua_ax_ui_LayoutComponent_getSize); tolua_function(tolua_S,"setAnchorPosition",lua_ax_ui_LayoutComponent_setAnchorPosition); tolua_function(tolua_S,"refreshLayout",lua_ax_ui_LayoutComponent_refreshLayout); tolua_function(tolua_S,"isPercentWidthEnabled",lua_ax_ui_LayoutComponent_isPercentWidthEnabled); tolua_function(tolua_S,"setVerticalEdge",lua_ax_ui_LayoutComponent_setVerticalEdge); tolua_function(tolua_S,"getTopMargin",lua_ax_ui_LayoutComponent_getTopMargin); tolua_function(tolua_S,"setSizeWidth",lua_ax_ui_LayoutComponent_setSizeWidth); tolua_function(tolua_S,"getPercentContentSize",lua_ax_ui_LayoutComponent_getPercentContentSize); tolua_function(tolua_S,"getVerticalEdge",lua_ax_ui_LayoutComponent_getVerticalEdge); tolua_function(tolua_S,"setPercentWidthEnabled",lua_ax_ui_LayoutComponent_setPercentWidthEnabled); tolua_function(tolua_S,"isStretchWidthEnabled",lua_ax_ui_LayoutComponent_isStretchWidthEnabled); tolua_function(tolua_S,"setLeftMargin",lua_ax_ui_LayoutComponent_setLeftMargin); tolua_function(tolua_S,"getSizeWidth",lua_ax_ui_LayoutComponent_getSizeWidth); tolua_function(tolua_S,"setPositionPercentYEnabled",lua_ax_ui_LayoutComponent_setPositionPercentYEnabled); tolua_function(tolua_S,"getSizeHeight",lua_ax_ui_LayoutComponent_getSizeHeight); tolua_function(tolua_S,"getPositionPercentY",lua_ax_ui_LayoutComponent_getPositionPercentY); tolua_function(tolua_S,"getPositionPercentX",lua_ax_ui_LayoutComponent_getPositionPercentX); tolua_function(tolua_S,"setTopMargin",lua_ax_ui_LayoutComponent_setTopMargin); tolua_function(tolua_S,"getPercentHeight",lua_ax_ui_LayoutComponent_getPercentHeight); tolua_function(tolua_S,"getUsingPercentContentSize",lua_ax_ui_LayoutComponent_getUsingPercentContentSize); tolua_function(tolua_S,"setPositionPercentY",lua_ax_ui_LayoutComponent_setPositionPercentY); tolua_function(tolua_S,"setPositionPercentX",lua_ax_ui_LayoutComponent_setPositionPercentX); tolua_function(tolua_S,"setRightMargin",lua_ax_ui_LayoutComponent_setRightMargin); tolua_function(tolua_S,"isPositionPercentYEnabled",lua_ax_ui_LayoutComponent_isPositionPercentYEnabled); tolua_function(tolua_S,"setPercentHeight",lua_ax_ui_LayoutComponent_setPercentHeight); tolua_function(tolua_S,"setPercentOnlyEnabled",lua_ax_ui_LayoutComponent_setPercentOnlyEnabled); tolua_function(tolua_S,"setHorizontalEdge",lua_ax_ui_LayoutComponent_setHorizontalEdge); tolua_function(tolua_S,"setPosition",lua_ax_ui_LayoutComponent_setPosition); tolua_function(tolua_S,"setUsingPercentContentSize",lua_ax_ui_LayoutComponent_setUsingPercentContentSize); tolua_function(tolua_S,"getLeftMargin",lua_ax_ui_LayoutComponent_getLeftMargin); tolua_function(tolua_S,"getPosition",lua_ax_ui_LayoutComponent_getPosition); tolua_function(tolua_S,"setSizeHeight",lua_ax_ui_LayoutComponent_setSizeHeight); tolua_function(tolua_S,"isPositionPercentXEnabled",lua_ax_ui_LayoutComponent_isPositionPercentXEnabled); tolua_function(tolua_S,"getBottomMargin",lua_ax_ui_LayoutComponent_getBottomMargin); tolua_function(tolua_S,"setPercentHeightEnabled",lua_ax_ui_LayoutComponent_setPercentHeightEnabled); tolua_function(tolua_S,"setPercentContentSize",lua_ax_ui_LayoutComponent_setPercentContentSize); tolua_function(tolua_S,"isPercentHeightEnabled",lua_ax_ui_LayoutComponent_isPercentHeightEnabled); tolua_function(tolua_S,"getPercentWidth",lua_ax_ui_LayoutComponent_getPercentWidth); tolua_function(tolua_S,"getHorizontalEdge",lua_ax_ui_LayoutComponent_getHorizontalEdge); tolua_function(tolua_S,"isStretchHeightEnabled",lua_ax_ui_LayoutComponent_isStretchHeightEnabled); tolua_function(tolua_S,"setBottomMargin",lua_ax_ui_LayoutComponent_setBottomMargin); tolua_function(tolua_S,"setSize",lua_ax_ui_LayoutComponent_setSize); tolua_function(tolua_S,"create", lua_ax_ui_LayoutComponent_create); tolua_function(tolua_S,"bindLayoutComponent", lua_ax_ui_LayoutComponent_bindLayoutComponent); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::LayoutComponent).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.LayoutComponent"; g_typeCast[typeName] = "axui.LayoutComponent"; return 1; } int lua_ax_ui_TabHeader_getIndexInTabControl(lua_State* tolua_S) { int argc = 0; ax::ui::TabHeader* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_getIndexInTabControl'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_getIndexInTabControl'", nullptr); return 0; } int ret = cobj->getIndexInTabControl(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:getIndexInTabControl",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_getIndexInTabControl'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabHeader_getTitleText(lua_State* tolua_S) { int argc = 0; ax::ui::TabHeader* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_getTitleText'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_getTitleText'", nullptr); return 0; } std::string_view ret = cobj->getTitleText(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:getTitleText",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_getTitleText'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabHeader_setTitleFontSize(lua_State* tolua_S) { int argc = 0; ax::ui::TabHeader* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_setTitleFontSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.TabHeader:setTitleFontSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_setTitleFontSize'", nullptr); return 0; } cobj->setTitleFontSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:setTitleFontSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_setTitleFontSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabHeader_setTitleFontName(lua_State* tolua_S) { int argc = 0; ax::ui::TabHeader* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_setTitleFontName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TabHeader:setTitleFontName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_setTitleFontName'", nullptr); return 0; } cobj->setTitleFontName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:setTitleFontName",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_setTitleFontName'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabHeader_getTitleFontSize(lua_State* tolua_S) { int argc = 0; ax::ui::TabHeader* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_getTitleFontSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_getTitleFontSize'", nullptr); return 0; } double ret = cobj->getTitleFontSize(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:getTitleFontSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_getTitleFontSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabHeader_getTitleFontName(lua_State* tolua_S) { int argc = 0; ax::ui::TabHeader* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_getTitleFontName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_getTitleFontName'", nullptr); return 0; } std::string_view ret = cobj->getTitleFontName(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:getTitleFontName",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_getTitleFontName'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabHeader_getTitleColor(lua_State* tolua_S) { int argc = 0; ax::ui::TabHeader* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_getTitleColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_getTitleColor'", nullptr); return 0; } const ax::Color4B& ret = cobj->getTitleColor(); color4b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:getTitleColor",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_getTitleColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabHeader_getTitleRenderer(lua_State* tolua_S) { int argc = 0; ax::ui::TabHeader* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_getTitleRenderer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_getTitleRenderer'", nullptr); return 0; } ax::Label* ret = cobj->getTitleRenderer(); object_to_luaval(tolua_S, "ax.Label",(ax::Label*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:getTitleRenderer",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_getTitleRenderer'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabHeader_setTitleText(lua_State* tolua_S) { int argc = 0; ax::ui::TabHeader* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_setTitleText'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TabHeader:setTitleText"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_setTitleText'", nullptr); return 0; } cobj->setTitleText(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:setTitleText",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_setTitleText'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabHeader_setTitleColor(lua_State* tolua_S) { int argc = 0; ax::ui::TabHeader* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabHeader_setTitleColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "axui.TabHeader:setTitleColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabHeader_setTitleColor'", nullptr); return 0; } cobj->setTitleColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabHeader:setTitleColor",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_setTitleColor'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabHeader_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 3) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TabHeader:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.TabHeader:create"); if (!ok) { break; } std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.TabHeader:create"); if (!ok) { break; } ax::ui::TabHeader* ret = ax::ui::TabHeader::create(arg0, arg1, arg2); object_to_luaval(tolua_S, "axui.TabHeader",(ax::ui::TabHeader*)ret); return 1; } } while (0); ok = true; do { if (argc == 4) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TabHeader:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.TabHeader:create"); if (!ok) { break; } std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.TabHeader:create"); if (!ok) { break; } ax::ui::Widget::TextureResType arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "axui.TabHeader:create"); if (!ok) { break; } ax::ui::TabHeader* ret = ax::ui::TabHeader::create(arg0, arg1, arg2, arg3); object_to_luaval(tolua_S, "axui.TabHeader",(ax::ui::TabHeader*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { ax::ui::TabHeader* ret = ax::ui::TabHeader::create(); object_to_luaval(tolua_S, "axui.TabHeader",(ax::ui::TabHeader*)ret); return 1; } } while (0); ok = true; do { if (argc == 6) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TabHeader:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.TabHeader:create"); if (!ok) { break; } std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.TabHeader:create"); if (!ok) { break; } std::string_view arg3; ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.TabHeader:create"); if (!ok) { break; } std::string_view arg4; ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.TabHeader:create"); if (!ok) { break; } std::string_view arg5; ok &= luaval_to_std_string_view(tolua_S, 7,&arg5, "axui.TabHeader:create"); if (!ok) { break; } ax::ui::TabHeader* ret = ax::ui::TabHeader::create(arg0, arg1, arg2, arg3, arg4, arg5); object_to_luaval(tolua_S, "axui.TabHeader",(ax::ui::TabHeader*)ret); return 1; } } while (0); ok = true; do { if (argc == 7) { std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.TabHeader:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "axui.TabHeader:create"); if (!ok) { break; } std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "axui.TabHeader:create"); if (!ok) { break; } std::string_view arg3; ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "axui.TabHeader:create"); if (!ok) { break; } std::string_view arg4; ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "axui.TabHeader:create"); if (!ok) { break; } std::string_view arg5; ok &= luaval_to_std_string_view(tolua_S, 7,&arg5, "axui.TabHeader:create"); if (!ok) { break; } ax::ui::Widget::TextureResType arg6; ok &= luaval_to_int32(tolua_S, 8,(int *)&arg6, "axui.TabHeader:create"); if (!ok) { break; } ax::ui::TabHeader* ret = ax::ui::TabHeader::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6); object_to_luaval(tolua_S, "axui.TabHeader",(ax::ui::TabHeader*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "axui.TabHeader:create",argc, 6); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabHeader_create'.",&tolua_err); #endif return 0; } static int lua_ax_ui_TabHeader_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TabHeader)"); return 0; } int lua_register_ax_ui_TabHeader(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.TabHeader"); tolua_cclass(tolua_S,"TabHeader","axui.TabHeader","axui.AbstractCheckButton",nullptr); tolua_beginmodule(tolua_S,"TabHeader"); tolua_function(tolua_S,"getIndexInTabControl",lua_ax_ui_TabHeader_getIndexInTabControl); tolua_function(tolua_S,"getTitleText",lua_ax_ui_TabHeader_getTitleText); tolua_function(tolua_S,"setTitleFontSize",lua_ax_ui_TabHeader_setTitleFontSize); tolua_function(tolua_S,"setTitleFontName",lua_ax_ui_TabHeader_setTitleFontName); tolua_function(tolua_S,"getTitleFontSize",lua_ax_ui_TabHeader_getTitleFontSize); tolua_function(tolua_S,"getTitleFontName",lua_ax_ui_TabHeader_getTitleFontName); tolua_function(tolua_S,"getTitleColor",lua_ax_ui_TabHeader_getTitleColor); tolua_function(tolua_S,"getTitleRenderer",lua_ax_ui_TabHeader_getTitleRenderer); tolua_function(tolua_S,"setTitleText",lua_ax_ui_TabHeader_setTitleText); tolua_function(tolua_S,"setTitleColor",lua_ax_ui_TabHeader_setTitleColor); tolua_function(tolua_S,"create", lua_ax_ui_TabHeader_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::TabHeader).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.TabHeader"; g_typeCast[typeName] = "axui.TabHeader"; return 1; } int lua_ax_ui_TabControl_setHeaderWidth(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_setHeaderWidth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.TabControl:setHeaderWidth"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_setHeaderWidth'", nullptr); return 0; } cobj->setHeaderWidth(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:setHeaderWidth",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_setHeaderWidth'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_removeTab(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_removeTab'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TabControl:removeTab"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_removeTab'", nullptr); return 0; } cobj->removeTab(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:removeTab",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_removeTab'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_getTabCount(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getTabCount'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getTabCount'", nullptr); return 0; } unsigned int ret = cobj->getTabCount(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getTabCount",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getTabCount'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_getHeaderDockPlace(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getHeaderDockPlace'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getHeaderDockPlace'", nullptr); return 0; } int ret = (int)cobj->getHeaderDockPlace(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getHeaderDockPlace",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getHeaderDockPlace'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_getSelectedTabIndex(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getSelectedTabIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getSelectedTabIndex'", nullptr); return 0; } int ret = cobj->getSelectedTabIndex(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getSelectedTabIndex",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getSelectedTabIndex'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_insertTab(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_insertTab'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { int arg0; ax::ui::TabHeader* arg1; ax::ui::Layout* arg2; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TabControl:insertTab"); ok &= luaval_to_object(tolua_S, 3, "axui.TabHeader",&arg1, "axui.TabControl:insertTab"); ok &= luaval_to_object(tolua_S, 4, "axui.Layout",&arg2, "axui.TabControl:insertTab"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_insertTab'", nullptr); return 0; } cobj->insertTab(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:insertTab",argc, 3); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_insertTab'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_ignoreHeadersTextureSize(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_ignoreHeadersTextureSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.TabControl:ignoreHeadersTextureSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_ignoreHeadersTextureSize'", nullptr); return 0; } cobj->ignoreHeadersTextureSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:ignoreHeadersTextureSize",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_ignoreHeadersTextureSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_getHeaderWidth(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getHeaderWidth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getHeaderWidth'", nullptr); return 0; } double ret = cobj->getHeaderWidth(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getHeaderWidth",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getHeaderWidth'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_setHeaderDockPlace(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_setHeaderDockPlace'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ax::ui::TabControl::Dock arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TabControl:setHeaderDockPlace"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_setHeaderDockPlace'", nullptr); return 0; } cobj->setHeaderDockPlace(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:setHeaderDockPlace",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_setHeaderDockPlace'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_setSelectTab(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_setSelectTab'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { ax::ui::TabHeader* arg0; ok &= luaval_to_object(tolua_S, 2, "axui.TabHeader",&arg0, "axui.TabControl:setSelectTab"); if (!ok) { break; } cobj->setSelectTab(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TabControl:setSelectTab"); if (!ok) { break; } cobj->setSelectTab(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:setSelectTab",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_setSelectTab'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_getTabHeader(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getTabHeader'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TabControl:getTabHeader"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getTabHeader'", nullptr); return 0; } ax::ui::TabHeader* ret = cobj->getTabHeader(arg0); object_to_luaval(tolua_S, "axui.TabHeader",(ax::ui::TabHeader*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getTabHeader",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getTabHeader'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_isIgnoreHeadersTextureSize(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_isIgnoreHeadersTextureSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_isIgnoreHeadersTextureSize'", nullptr); return 0; } bool ret = cobj->isIgnoreHeadersTextureSize(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:isIgnoreHeadersTextureSize",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_isIgnoreHeadersTextureSize'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_setTabChangedEventListener(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_setTabChangedEventListener'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::function arg0; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_setTabChangedEventListener'", nullptr); return 0; } cobj->setTabChangedEventListener(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:setTabChangedEventListener",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_setTabChangedEventListener'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_setHeaderSelectedZoom(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_setHeaderSelectedZoom'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.TabControl:setHeaderSelectedZoom"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_setHeaderSelectedZoom'", nullptr); return 0; } cobj->setHeaderSelectedZoom(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:setHeaderSelectedZoom",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_setHeaderSelectedZoom'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_setHeaderHeight(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_setHeaderHeight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.TabControl:setHeaderHeight"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_setHeaderHeight'", nullptr); return 0; } cobj->setHeaderHeight(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:setHeaderHeight",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_setHeaderHeight'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_indexOfTabHeader(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_indexOfTabHeader'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { const ax::ui::TabHeader* arg0; ok &= luaval_to_object(tolua_S, 2, "axui.TabHeader",&arg0, "axui.TabControl:indexOfTabHeader"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_indexOfTabHeader'", nullptr); return 0; } int ret = cobj->indexOfTabHeader(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:indexOfTabHeader",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_indexOfTabHeader'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_getTabContainer(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getTabContainer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.TabControl:getTabContainer"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getTabContainer'", nullptr); return 0; } ax::ui::Layout* ret = cobj->getTabContainer(arg0); object_to_luaval(tolua_S, "axui.Layout",(ax::ui::Layout*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getTabContainer",argc, 1); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getTabContainer'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_getHeaderSelectedZoom(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getHeaderSelectedZoom'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getHeaderSelectedZoom'", nullptr); return 0; } double ret = cobj->getHeaderSelectedZoom(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getHeaderSelectedZoom",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getHeaderSelectedZoom'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_getHeaderHeight(lua_State* tolua_S) { int argc = 0; ax::ui::TabControl* cobj = nullptr; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (ax::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if _AX_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_ui_TabControl_getHeaderHeight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_getHeaderHeight'", nullptr); return 0; } int ret = cobj->getHeaderHeight(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.TabControl:getHeaderHeight",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_getHeaderHeight'.",&tolua_err); #endif return 0; } int lua_ax_ui_TabControl_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if _AX_DEBUG >= 1 tolua_Error tolua_err; #endif #if _AX_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"axui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_ax_ui_TabControl_create'", nullptr); return 0; } ax::ui::TabControl* ret = ax::ui::TabControl::create(); object_to_luaval(tolua_S, "axui.TabControl",(ax::ui::TabControl*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.TabControl:create",argc, 0); return 0; #if _AX_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_ax_ui_TabControl_create'.",&tolua_err); #endif return 0; } static int lua_ax_ui_TabControl_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TabControl)"); return 0; } int lua_register_ax_ui_TabControl(lua_State* tolua_S) { tolua_usertype(tolua_S,"axui.TabControl"); tolua_cclass(tolua_S,"TabControl","axui.TabControl","axui.Widget",nullptr); tolua_beginmodule(tolua_S,"TabControl"); tolua_function(tolua_S,"setHeaderWidth",lua_ax_ui_TabControl_setHeaderWidth); tolua_function(tolua_S,"removeTab",lua_ax_ui_TabControl_removeTab); tolua_function(tolua_S,"getTabCount",lua_ax_ui_TabControl_getTabCount); tolua_function(tolua_S,"getHeaderDockPlace",lua_ax_ui_TabControl_getHeaderDockPlace); tolua_function(tolua_S,"getSelectedTabIndex",lua_ax_ui_TabControl_getSelectedTabIndex); tolua_function(tolua_S,"insertTab",lua_ax_ui_TabControl_insertTab); tolua_function(tolua_S,"ignoreHeadersTextureSize",lua_ax_ui_TabControl_ignoreHeadersTextureSize); tolua_function(tolua_S,"getHeaderWidth",lua_ax_ui_TabControl_getHeaderWidth); tolua_function(tolua_S,"setHeaderDockPlace",lua_ax_ui_TabControl_setHeaderDockPlace); tolua_function(tolua_S,"setSelectTab",lua_ax_ui_TabControl_setSelectTab); tolua_function(tolua_S,"getTabHeader",lua_ax_ui_TabControl_getTabHeader); tolua_function(tolua_S,"isIgnoreHeadersTextureSize",lua_ax_ui_TabControl_isIgnoreHeadersTextureSize); tolua_function(tolua_S,"setTabChangedEventListener",lua_ax_ui_TabControl_setTabChangedEventListener); tolua_function(tolua_S,"setHeaderSelectedZoom",lua_ax_ui_TabControl_setHeaderSelectedZoom); tolua_function(tolua_S,"setHeaderHeight",lua_ax_ui_TabControl_setHeaderHeight); tolua_function(tolua_S,"indexOfTabHeader",lua_ax_ui_TabControl_indexOfTabHeader); tolua_function(tolua_S,"getTabContainer",lua_ax_ui_TabControl_getTabContainer); tolua_function(tolua_S,"getHeaderSelectedZoom",lua_ax_ui_TabControl_getHeaderSelectedZoom); tolua_function(tolua_S,"getHeaderHeight",lua_ax_ui_TabControl_getHeaderHeight); tolua_function(tolua_S,"create", lua_ax_ui_TabControl_create); tolua_endmodule(tolua_S); auto typeName = typeid(ax::ui::TabControl).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "axui.TabControl"; g_typeCast[typeName] = "axui.TabControl"; return 1; } TOLUA_API int register_all_ax_ui(lua_State* tolua_S) { tolua_open(tolua_S); tolua_module(tolua_S,"axui",0); tolua_beginmodule(tolua_S,"axui"); lua_register_ax_ui_Widget(tolua_S); lua_register_ax_ui_Layout(tolua_S); lua_register_ax_ui_RelativeBox(tolua_S); lua_register_ax_ui_AbstractCheckButton(tolua_S); lua_register_ax_ui_CheckBox(tolua_S); lua_register_ax_ui_TextAtlas(tolua_S); lua_register_ax_ui_TextBMFont(tolua_S); lua_register_ax_ui_LoadingBar(tolua_S); lua_register_ax_ui_TextField(tolua_S); lua_register_ax_ui_Scale9Sprite(tolua_S); lua_register_ax_ui_Slider(tolua_S); lua_register_ax_ui_RichElement(tolua_S); lua_register_ax_ui_RichElementCustomNode(tolua_S); lua_register_ax_ui_VBox(tolua_S); lua_register_ax_ui_RadioButtonGroup(tolua_S); lua_register_ax_ui_TabControl(tolua_S); lua_register_ax_ui_ScrollView(tolua_S); lua_register_ax_ui_ListView(tolua_S); lua_register_ax_ui_TabHeader(tolua_S); lua_register_ax_ui_RichElementNewLine(tolua_S); lua_register_ax_ui_LayoutComponent(tolua_S); lua_register_ax_ui_Button(tolua_S); lua_register_ax_ui_LayoutParameter(tolua_S); lua_register_ax_ui_LinearLayoutParameter(tolua_S); lua_register_ax_ui_RadioButton(tolua_S); lua_register_ax_ui_ImageView(tolua_S); lua_register_ax_ui_HBox(tolua_S); lua_register_ax_ui_RichElementText(tolua_S); lua_register_ax_ui_PageView(tolua_S); lua_register_ax_ui_Helper(tolua_S); lua_register_ax_ui_EditBox(tolua_S); lua_register_ax_ui_Text(tolua_S); lua_register_ax_ui_RichText(tolua_S); lua_register_ax_ui_RichElementImage(tolua_S); lua_register_ax_ui_RelativeLayoutParameter(tolua_S); tolua_endmodule(tolua_S); return 1; }