Committing genbindings changes

This commit is contained in:
halx99 2023-02-14 15:38:16 +00:00 committed by GitHub Actions
parent c108ee1917
commit 68774d8319
19 changed files with 106571 additions and 107195 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -51,13 +51,6 @@ int register_all_ax_backend(lua_State* tolua_S);

File diff suppressed because it is too large Load Diff

View File

@ -2407,8 +2407,6 @@ int register_all_ax_base(lua_State* tolua_S);

View File

@ -4,59 +4,6 @@
#include "scripting/lua-bindings/manual/tolua_fix.h"
#include "scripting/lua-bindings/manual/LuaBasicConversions.h"
int lua_ax_controller_Controller_receiveExternalKeyEvent(lua_State* tolua_S)
{
int argc = 0;
ax::Controller* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Controller",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Controller*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_Controller_receiveExternalKeyEvent'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 2)
{
int arg0;
bool arg1;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Controller:receiveExternalKeyEvent");
ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.Controller:receiveExternalKeyEvent");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_Controller_receiveExternalKeyEvent'", nullptr);
return 0;
}
cobj->receiveExternalKeyEvent(arg0, arg1);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Controller:receiveExternalKeyEvent",argc, 2);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_Controller_receiveExternalKeyEvent'.",&tolua_err);
#endif
return 0;
}
int lua_ax_controller_Controller_getDeviceName(lua_State* tolua_S)
{
int argc = 0;
@ -104,6 +51,53 @@ int lua_ax_controller_Controller_getDeviceName(lua_State* tolua_S)
return 0;
}
int lua_ax_controller_Controller_getDeviceId(lua_State* tolua_S)
{
int argc = 0;
ax::Controller* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Controller",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Controller*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_Controller_getDeviceId'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_Controller_getDeviceId'", nullptr);
return 0;
}
auto&& ret = cobj->getDeviceId();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Controller:getDeviceId",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_Controller_getDeviceId'.",&tolua_err);
#endif
return 0;
}
int lua_ax_controller_Controller_isConnected(lua_State* tolua_S)
{
int argc = 0;
@ -151,7 +145,7 @@ int lua_ax_controller_Controller_isConnected(lua_State* tolua_S)
return 0;
}
int lua_ax_controller_Controller_getDeviceId(lua_State* tolua_S)
int lua_ax_controller_Controller_receiveExternalKeyEvent(lua_State* tolua_S)
{
int argc = 0;
ax::Controller* cobj = nullptr;
@ -171,29 +165,35 @@ int lua_ax_controller_Controller_getDeviceId(lua_State* tolua_S)
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_Controller_getDeviceId'", nullptr);
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_Controller_receiveExternalKeyEvent'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
if (argc == 2)
{
int arg0;
bool arg1;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Controller:receiveExternalKeyEvent");
ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.Controller:receiveExternalKeyEvent");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_Controller_getDeviceId'", nullptr);
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_Controller_receiveExternalKeyEvent'", nullptr);
return 0;
}
auto&& ret = cobj->getDeviceId();
tolua_pushnumber(tolua_S,(lua_Number)ret);
cobj->receiveExternalKeyEvent(arg0, arg1);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Controller:getDeviceId",argc, 0);
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Controller:receiveExternalKeyEvent",argc, 2);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_Controller_getDeviceId'.",&tolua_err);
tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_Controller_receiveExternalKeyEvent'.",&tolua_err);
#endif
return 0;
@ -295,6 +295,78 @@ int lua_ax_controller_Controller_getTag(lua_State* tolua_S)
return 0;
}
int lua_ax_controller_Controller_getControllerByTag(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,"ax.Controller",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 1)
{
int arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Controller:getControllerByTag");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_Controller_getControllerByTag'", nullptr);
return 0;
}
auto&& ret = ax::Controller::getControllerByTag(arg0);
object_to_luaval<ax::Controller>(tolua_S, "ax.Controller",(ax::Controller*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Controller:getControllerByTag",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_Controller_getControllerByTag'.",&tolua_err);
#endif
return 0;
}
int lua_ax_controller_Controller_getControllerByDeviceId(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,"ax.Controller",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 1)
{
int arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Controller:getControllerByDeviceId");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_Controller_getControllerByDeviceId'", nullptr);
return 0;
}
auto&& ret = ax::Controller::getControllerByDeviceId(arg0);
object_to_luaval<ax::Controller>(tolua_S, "ax.Controller",(ax::Controller*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Controller:getControllerByDeviceId",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_Controller_getControllerByDeviceId'.",&tolua_err);
#endif
return 0;
}
int lua_ax_controller_Controller_startDiscoveryController(lua_State* tolua_S)
{
int argc = 0;
@ -363,78 +435,6 @@ int lua_ax_controller_Controller_stopDiscoveryController(lua_State* tolua_S)
#endif
return 0;
}
int lua_ax_controller_Controller_getControllerByDeviceId(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,"ax.Controller",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 1)
{
int arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Controller:getControllerByDeviceId");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_Controller_getControllerByDeviceId'", nullptr);
return 0;
}
auto&& ret = ax::Controller::getControllerByDeviceId(arg0);
object_to_luaval<ax::Controller>(tolua_S, "ax.Controller",(ax::Controller*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Controller:getControllerByDeviceId",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_Controller_getControllerByDeviceId'.",&tolua_err);
#endif
return 0;
}
int lua_ax_controller_Controller_getControllerByTag(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,"ax.Controller",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 1)
{
int arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Controller:getControllerByTag");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_Controller_getControllerByTag'", nullptr);
return 0;
}
auto&& ret = ax::Controller::getControllerByTag(arg0);
object_to_luaval<ax::Controller>(tolua_S, "ax.Controller",(ax::Controller*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Controller:getControllerByTag",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_Controller_getControllerByTag'.",&tolua_err);
#endif
return 0;
}
static int lua_ax_controller_Controller_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (Controller)");
@ -447,16 +447,16 @@ int lua_register_ax_controller_Controller(lua_State* tolua_S)
tolua_cclass(tolua_S,"Controller","ax.Controller","",nullptr);
tolua_beginmodule(tolua_S,"Controller");
tolua_function(tolua_S,"receiveExternalKeyEvent",lua_ax_controller_Controller_receiveExternalKeyEvent);
tolua_function(tolua_S,"getDeviceName",lua_ax_controller_Controller_getDeviceName);
tolua_function(tolua_S,"isConnected",lua_ax_controller_Controller_isConnected);
tolua_function(tolua_S,"getDeviceId",lua_ax_controller_Controller_getDeviceId);
tolua_function(tolua_S,"isConnected",lua_ax_controller_Controller_isConnected);
tolua_function(tolua_S,"receiveExternalKeyEvent",lua_ax_controller_Controller_receiveExternalKeyEvent);
tolua_function(tolua_S,"setTag",lua_ax_controller_Controller_setTag);
tolua_function(tolua_S,"getTag",lua_ax_controller_Controller_getTag);
tolua_function(tolua_S,"getControllerByTag", lua_ax_controller_Controller_getControllerByTag);
tolua_function(tolua_S,"getControllerByDeviceId", lua_ax_controller_Controller_getControllerByDeviceId);
tolua_function(tolua_S,"startDiscoveryController", lua_ax_controller_Controller_startDiscoveryController);
tolua_function(tolua_S,"stopDiscoveryController", lua_ax_controller_Controller_stopDiscoveryController);
tolua_function(tolua_S,"getControllerByDeviceId", lua_ax_controller_Controller_getControllerByDeviceId);
tolua_function(tolua_S,"getControllerByTag", lua_ax_controller_Controller_getControllerByTag);
tolua_endmodule(tolua_S);
auto typeName = typeid(ax::Controller).name(); // rtti is literal storage
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.Controller";
@ -511,6 +511,150 @@ int lua_ax_controller_EventController_getControllerEventType(lua_State* tolua_S)
return 0;
}
int lua_ax_controller_EventController_getController(lua_State* tolua_S)
{
int argc = 0;
ax::EventController* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.EventController",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::EventController*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_EventController_getController'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_EventController_getController'", nullptr);
return 0;
}
auto&& ret = cobj->getController();
object_to_luaval<ax::Controller>(tolua_S, "ax.Controller",(ax::Controller*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventController:getController",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_EventController_getController'.",&tolua_err);
#endif
return 0;
}
int lua_ax_controller_EventController_getKeyCode(lua_State* tolua_S)
{
int argc = 0;
ax::EventController* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.EventController",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::EventController*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_EventController_getKeyCode'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_EventController_getKeyCode'", nullptr);
return 0;
}
auto&& ret = cobj->getKeyCode();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventController:getKeyCode",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_EventController_getKeyCode'.",&tolua_err);
#endif
return 0;
}
int lua_ax_controller_EventController_setKeyCode(lua_State* tolua_S)
{
int argc = 0;
ax::EventController* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.EventController",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::EventController*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_EventController_setKeyCode'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
int arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.EventController:setKeyCode");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_EventController_setKeyCode'", nullptr);
return 0;
}
cobj->setKeyCode(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventController:setKeyCode",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_EventController_setKeyCode'.",&tolua_err);
#endif
return 0;
}
int lua_ax_controller_EventController_setConnectStatus(lua_State* tolua_S)
{
int argc = 0;
@ -608,150 +752,6 @@ int lua_ax_controller_EventController_isConnected(lua_State* tolua_S)
return 0;
}
int lua_ax_controller_EventController_setKeyCode(lua_State* tolua_S)
{
int argc = 0;
ax::EventController* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.EventController",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::EventController*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_EventController_setKeyCode'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
int arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.EventController:setKeyCode");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_EventController_setKeyCode'", nullptr);
return 0;
}
cobj->setKeyCode(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventController:setKeyCode",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_EventController_setKeyCode'.",&tolua_err);
#endif
return 0;
}
int lua_ax_controller_EventController_getController(lua_State* tolua_S)
{
int argc = 0;
ax::EventController* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.EventController",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::EventController*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_EventController_getController'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_EventController_getController'", nullptr);
return 0;
}
auto&& ret = cobj->getController();
object_to_luaval<ax::Controller>(tolua_S, "ax.Controller",(ax::Controller*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventController:getController",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_EventController_getController'.",&tolua_err);
#endif
return 0;
}
int lua_ax_controller_EventController_getKeyCode(lua_State* tolua_S)
{
int argc = 0;
ax::EventController* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.EventController",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::EventController*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_controller_EventController_getKeyCode'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_controller_EventController_getKeyCode'", nullptr);
return 0;
}
auto&& ret = cobj->getKeyCode();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.EventController:getKeyCode",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_controller_EventController_getKeyCode'.",&tolua_err);
#endif
return 0;
}
int lua_ax_controller_EventController_constructor(lua_State* tolua_S)
{
int argc = 0;
@ -832,11 +832,11 @@ int lua_register_ax_controller_EventController(lua_State* tolua_S)
tolua_beginmodule(tolua_S,"EventController");
tolua_function(tolua_S,"new",lua_ax_controller_EventController_constructor);
tolua_function(tolua_S,"getControllerEventType",lua_ax_controller_EventController_getControllerEventType);
tolua_function(tolua_S,"setConnectStatus",lua_ax_controller_EventController_setConnectStatus);
tolua_function(tolua_S,"isConnected",lua_ax_controller_EventController_isConnected);
tolua_function(tolua_S,"setKeyCode",lua_ax_controller_EventController_setKeyCode);
tolua_function(tolua_S,"getController",lua_ax_controller_EventController_getController);
tolua_function(tolua_S,"getKeyCode",lua_ax_controller_EventController_getKeyCode);
tolua_function(tolua_S,"setKeyCode",lua_ax_controller_EventController_setKeyCode);
tolua_function(tolua_S,"setConnectStatus",lua_ax_controller_EventController_setConnectStatus);
tolua_function(tolua_S,"isConnected",lua_ax_controller_EventController_isConnected);
tolua_endmodule(tolua_S);
auto typeName = typeid(ax::EventController).name(); // rtti is literal storage
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.EventController";
@ -904,9 +904,9 @@ TOLUA_API int register_all_ax_controller(lua_State* tolua_S)
tolua_module(tolua_S,"ax",0);
tolua_beginmodule(tolua_S,"ax");
lua_register_ax_controller_EventListenerController(tolua_S);
lua_register_ax_controller_Controller(tolua_S);
lua_register_ax_controller_EventController(tolua_S);
lua_register_ax_controller_EventListenerController(tolua_S);
tolua_endmodule(tolua_S);
return 1;

View File

@ -3,6 +3,53 @@
#include "scripting/lua-bindings/manual/tolua_fix.h"
#include "scripting/lua-bindings/manual/LuaBasicConversions.h"
int lua_ax_csloader_CSLoader_init(lua_State* tolua_S)
{
int argc = 0;
ax::CSLoader* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_init'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_init'", nullptr);
return 0;
}
cobj->init();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:init",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_init'.",&tolua_err);
#endif
return 0;
}
int lua_ax_csloader_CSLoader_createNodeFromJson(lua_State* tolua_S)
{
int argc = 0;
@ -53,56 +100,6 @@ int lua_ax_csloader_CSLoader_createNodeFromJson(lua_State* tolua_S)
return 0;
}
int lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile(lua_State* tolua_S)
{
int argc = 0;
ax::CSLoader* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile'", 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, "ax.CSLoader:createNodeWithFlatBuffersFile");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile'", nullptr);
return 0;
}
auto&& ret = cobj->createNodeWithFlatBuffersFile(arg0);
object_to_luaval<ax::Node>(tolua_S, "ax.Node",(ax::Node*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:createNodeWithFlatBuffersFile",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile'.",&tolua_err);
#endif
return 0;
}
int lua_ax_csloader_CSLoader_loadNodeWithFile(lua_State* tolua_S)
{
int argc = 0;
@ -153,6 +150,300 @@ int lua_ax_csloader_CSLoader_loadNodeWithFile(lua_State* tolua_S)
return 0;
}
int lua_ax_csloader_CSLoader_loadNodeWithContent(lua_State* tolua_S)
{
int argc = 0;
ax::CSLoader* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_loadNodeWithContent'", 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, "ax.CSLoader:loadNodeWithContent");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_loadNodeWithContent'", nullptr);
return 0;
}
auto&& ret = cobj->loadNodeWithContent(arg0);
object_to_luaval<ax::Node>(tolua_S, "ax.Node",(ax::Node*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:loadNodeWithContent",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_loadNodeWithContent'.",&tolua_err);
#endif
return 0;
}
int lua_ax_csloader_CSLoader_setRecordJsonPath(lua_State* tolua_S)
{
int argc = 0;
ax::CSLoader* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_setRecordJsonPath'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.CSLoader:setRecordJsonPath");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_setRecordJsonPath'", nullptr);
return 0;
}
cobj->setRecordJsonPath(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:setRecordJsonPath",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_setRecordJsonPath'.",&tolua_err);
#endif
return 0;
}
int lua_ax_csloader_CSLoader_isRecordJsonPath(lua_State* tolua_S)
{
int argc = 0;
ax::CSLoader* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_isRecordJsonPath'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_isRecordJsonPath'", nullptr);
return 0;
}
auto&& ret = cobj->isRecordJsonPath();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:isRecordJsonPath",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_isRecordJsonPath'.",&tolua_err);
#endif
return 0;
}
int lua_ax_csloader_CSLoader_setJsonPath(lua_State* tolua_S)
{
int argc = 0;
ax::CSLoader* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_setJsonPath'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
std::string arg0;
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ax.CSLoader:setJsonPath");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_setJsonPath'", nullptr);
return 0;
}
cobj->setJsonPath(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:setJsonPath",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_setJsonPath'.",&tolua_err);
#endif
return 0;
}
int lua_ax_csloader_CSLoader_getJsonPath(lua_State* tolua_S)
{
int argc = 0;
ax::CSLoader* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_getJsonPath'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_getJsonPath'", nullptr);
return 0;
}
auto&& ret = cobj->getJsonPath();
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", "ax.CSLoader:getJsonPath",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_getJsonPath'.",&tolua_err);
#endif
return 0;
}
int lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile(lua_State* tolua_S)
{
int argc = 0;
ax::CSLoader* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile'", 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, "ax.CSLoader:createNodeWithFlatBuffersFile");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile'", nullptr);
return 0;
}
auto&& ret = cobj->createNodeWithFlatBuffersFile(arg0);
object_to_luaval<ax::Node>(tolua_S, "ax.Node",(ax::Node*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:createNodeWithFlatBuffersFile",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile'.",&tolua_err);
#endif
return 0;
}
int lua_ax_csloader_CSLoader_bindCallback(lua_State* tolua_S)
{
int argc = 0;
@ -212,297 +503,6 @@ int lua_ax_csloader_CSLoader_bindCallback(lua_State* tolua_S)
return 0;
}
int lua_ax_csloader_CSLoader_setJsonPath(lua_State* tolua_S)
{
int argc = 0;
ax::CSLoader* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_setJsonPath'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
std::string arg0;
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ax.CSLoader:setJsonPath");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_setJsonPath'", nullptr);
return 0;
}
cobj->setJsonPath(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:setJsonPath",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_setJsonPath'.",&tolua_err);
#endif
return 0;
}
int lua_ax_csloader_CSLoader_init(lua_State* tolua_S)
{
int argc = 0;
ax::CSLoader* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_init'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_init'", nullptr);
return 0;
}
cobj->init();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:init",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_init'.",&tolua_err);
#endif
return 0;
}
int lua_ax_csloader_CSLoader_loadNodeWithContent(lua_State* tolua_S)
{
int argc = 0;
ax::CSLoader* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_loadNodeWithContent'", 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, "ax.CSLoader:loadNodeWithContent");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_loadNodeWithContent'", nullptr);
return 0;
}
auto&& ret = cobj->loadNodeWithContent(arg0);
object_to_luaval<ax::Node>(tolua_S, "ax.Node",(ax::Node*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:loadNodeWithContent",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_loadNodeWithContent'.",&tolua_err);
#endif
return 0;
}
int lua_ax_csloader_CSLoader_isRecordJsonPath(lua_State* tolua_S)
{
int argc = 0;
ax::CSLoader* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_isRecordJsonPath'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_isRecordJsonPath'", nullptr);
return 0;
}
auto&& ret = cobj->isRecordJsonPath();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:isRecordJsonPath",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_isRecordJsonPath'.",&tolua_err);
#endif
return 0;
}
int lua_ax_csloader_CSLoader_getJsonPath(lua_State* tolua_S)
{
int argc = 0;
ax::CSLoader* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_getJsonPath'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_getJsonPath'", nullptr);
return 0;
}
auto&& ret = cobj->getJsonPath();
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", "ax.CSLoader:getJsonPath",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_getJsonPath'.",&tolua_err);
#endif
return 0;
}
int lua_ax_csloader_CSLoader_setRecordJsonPath(lua_State* tolua_S)
{
int argc = 0;
ax::CSLoader* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.CSLoader",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::CSLoader*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_csloader_CSLoader_setRecordJsonPath'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.CSLoader:setRecordJsonPath");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_csloader_CSLoader_setRecordJsonPath'", nullptr);
return 0;
}
cobj->setRecordJsonPath(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.CSLoader:setRecordJsonPath",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_setRecordJsonPath'.",&tolua_err);
#endif
return 0;
}
int lua_ax_csloader_CSLoader_createNodeWithFlatBuffersForSimulator(lua_State* tolua_S)
{
int argc = 0;
@ -553,6 +553,40 @@ int lua_ax_csloader_CSLoader_createNodeWithFlatBuffersForSimulator(lua_State* to
return 0;
}
int lua_ax_csloader_CSLoader_getInstance(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,"ax.CSLoader",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_csloader_CSLoader_getInstance'", nullptr);
return 0;
}
auto&& ret = ax::CSLoader::getInstance();
object_to_luaval<ax::CSLoader>(tolua_S, "ax.CSLoader",(ax::CSLoader*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.CSLoader:getInstance",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_getInstance'.",&tolua_err);
#endif
return 0;
}
int lua_ax_csloader_CSLoader_destroyInstance(lua_State* tolua_S)
{
int argc = 0;
@ -642,40 +676,6 @@ int lua_ax_csloader_CSLoader_createNodeWithVisibleSize(lua_State* tolua_S)
#endif
return 0;
}
int lua_ax_csloader_CSLoader_getInstance(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,"ax.CSLoader",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_csloader_CSLoader_getInstance'", nullptr);
return 0;
}
auto&& ret = ax::CSLoader::getInstance();
object_to_luaval<ax::CSLoader>(tolua_S, "ax.CSLoader",(ax::CSLoader*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.CSLoader:getInstance",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_csloader_CSLoader_getInstance'.",&tolua_err);
#endif
return 0;
}
int lua_ax_csloader_CSLoader_constructor(lua_State* tolua_S)
{
int argc = 0;
@ -724,20 +724,20 @@ int lua_register_ax_csloader_CSLoader(lua_State* tolua_S)
tolua_beginmodule(tolua_S,"CSLoader");
tolua_function(tolua_S,"new",lua_ax_csloader_CSLoader_constructor);
tolua_function(tolua_S,"createNodeFromJson",lua_ax_csloader_CSLoader_createNodeFromJson);
tolua_function(tolua_S,"createNodeWithFlatBuffersFile",lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile);
tolua_function(tolua_S,"loadNodeWithFile",lua_ax_csloader_CSLoader_loadNodeWithFile);
tolua_function(tolua_S,"bindCallback",lua_ax_csloader_CSLoader_bindCallback);
tolua_function(tolua_S,"setJsonPath",lua_ax_csloader_CSLoader_setJsonPath);
tolua_function(tolua_S,"init",lua_ax_csloader_CSLoader_init);
tolua_function(tolua_S,"createNodeFromJson",lua_ax_csloader_CSLoader_createNodeFromJson);
tolua_function(tolua_S,"loadNodeWithFile",lua_ax_csloader_CSLoader_loadNodeWithFile);
tolua_function(tolua_S,"loadNodeWithContent",lua_ax_csloader_CSLoader_loadNodeWithContent);
tolua_function(tolua_S,"isRecordJsonPath",lua_ax_csloader_CSLoader_isRecordJsonPath);
tolua_function(tolua_S,"getJsonPath",lua_ax_csloader_CSLoader_getJsonPath);
tolua_function(tolua_S,"setRecordJsonPath",lua_ax_csloader_CSLoader_setRecordJsonPath);
tolua_function(tolua_S,"isRecordJsonPath",lua_ax_csloader_CSLoader_isRecordJsonPath);
tolua_function(tolua_S,"setJsonPath",lua_ax_csloader_CSLoader_setJsonPath);
tolua_function(tolua_S,"getJsonPath",lua_ax_csloader_CSLoader_getJsonPath);
tolua_function(tolua_S,"createNodeWithFlatBuffersFile",lua_ax_csloader_CSLoader_createNodeWithFlatBuffersFile);
tolua_function(tolua_S,"bindCallback",lua_ax_csloader_CSLoader_bindCallback);
tolua_function(tolua_S,"createNodeWithFlatBuffersForSimulator",lua_ax_csloader_CSLoader_createNodeWithFlatBuffersForSimulator);
tolua_function(tolua_S,"getInstance", lua_ax_csloader_CSLoader_getInstance);
tolua_function(tolua_S,"destroyInstance", lua_ax_csloader_CSLoader_destroyInstance);
tolua_function(tolua_S,"createNodeWithVisibleSize", lua_ax_csloader_CSLoader_createNodeWithVisibleSize);
tolua_function(tolua_S,"getInstance", lua_ax_csloader_CSLoader_getInstance);
tolua_endmodule(tolua_S);
auto typeName = typeid(ax::CSLoader).name(); // rtti is literal storage
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.CSLoader";

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -562,6 +562,8 @@ int register_all_ax_studio(lua_State* tolua_S);

File diff suppressed because it is too large Load Diff

View File

@ -805,7 +805,6 @@ int register_all_ax_ui(lua_State* tolua_S);
#endif // __ax_ui_h__

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@
#include "scripting/lua-bindings/manual/tolua_fix.h"
#include "scripting/lua-bindings/manual/LuaBasicConversions.h"
int lua_ax_webview_WebView_setOpacityWebView(lua_State* tolua_S)
int lua_ax_webview_WebView_setJavascriptInterfaceScheme(lua_State* tolua_S)
{
int argc = 0;
ax::ui::WebView* cobj = nullptr;
@ -23,7 +23,7 @@ int lua_ax_webview_WebView_setOpacityWebView(lua_State* tolua_S)
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setOpacityWebView'", nullptr);
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setJavascriptInterfaceScheme'", nullptr);
return 0;
}
#endif
@ -31,71 +31,24 @@ int lua_ax_webview_WebView_setOpacityWebView(lua_State* tolua_S)
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
double arg0;
std::string_view arg0;
ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.WebView:setOpacityWebView");
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.WebView:setJavascriptInterfaceScheme");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setOpacityWebView'", nullptr);
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setJavascriptInterfaceScheme'", nullptr);
return 0;
}
cobj->setOpacityWebView(arg0);
cobj->setJavascriptInterfaceScheme(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setOpacityWebView",argc, 1);
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setJavascriptInterfaceScheme",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setOpacityWebView'.",&tolua_err);
#endif
return 0;
}
int lua_ax_webview_WebView_canGoBack(lua_State* tolua_S)
{
int argc = 0;
ax::ui::WebView* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_canGoBack'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_canGoBack'", nullptr);
return 0;
}
auto&& ret = cobj->canGoBack();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:canGoBack",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_canGoBack'.",&tolua_err);
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setJavascriptInterfaceScheme'.",&tolua_err);
#endif
return 0;
@ -167,200 +120,6 @@ int lua_ax_webview_WebView_loadHTMLString(lua_State* tolua_S)
return 0;
}
int lua_ax_webview_WebView_goForward(lua_State* tolua_S)
{
int argc = 0;
ax::ui::WebView* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_goForward'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_goForward'", nullptr);
return 0;
}
cobj->goForward();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:goForward",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_goForward'.",&tolua_err);
#endif
return 0;
}
int lua_ax_webview_WebView_goBack(lua_State* tolua_S)
{
int argc = 0;
ax::ui::WebView* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_goBack'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_goBack'", nullptr);
return 0;
}
cobj->goBack();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:goBack",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_goBack'.",&tolua_err);
#endif
return 0;
}
int lua_ax_webview_WebView_setScalesPageToFit(lua_State* tolua_S)
{
int argc = 0;
ax::ui::WebView* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setScalesPageToFit'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.WebView:setScalesPageToFit");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setScalesPageToFit'", nullptr);
return 0;
}
cobj->setScalesPageToFit(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setScalesPageToFit",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setScalesPageToFit'.",&tolua_err);
#endif
return 0;
}
int lua_ax_webview_WebView_loadFile(lua_State* tolua_S)
{
int argc = 0;
ax::ui::WebView* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_loadFile'", 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.WebView:loadFile");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_loadFile'", nullptr);
return 0;
}
cobj->loadFile(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:loadFile",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_loadFile'.",&tolua_err);
#endif
return 0;
}
int lua_ax_webview_WebView_loadURL(lua_State* tolua_S)
{
int argc = 0;
@ -420,7 +179,7 @@ int lua_ax_webview_WebView_loadURL(lua_State* tolua_S)
return 0;
}
int lua_ax_webview_WebView_setBounces(lua_State* tolua_S)
int lua_ax_webview_WebView_loadFile(lua_State* tolua_S)
{
int argc = 0;
ax::ui::WebView* cobj = nullptr;
@ -440,7 +199,7 @@ int lua_ax_webview_WebView_setBounces(lua_State* tolua_S)
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setBounces'", nullptr);
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_loadFile'", nullptr);
return 0;
}
#endif
@ -448,24 +207,306 @@ int lua_ax_webview_WebView_setBounces(lua_State* tolua_S)
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
std::string_view arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.WebView:setBounces");
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.WebView:loadFile");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setBounces'", nullptr);
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_loadFile'", nullptr);
return 0;
}
cobj->setBounces(arg0);
cobj->loadFile(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setBounces",argc, 1);
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:loadFile",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setBounces'.",&tolua_err);
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_loadFile'.",&tolua_err);
#endif
return 0;
}
int lua_ax_webview_WebView_stopLoading(lua_State* tolua_S)
{
int argc = 0;
ax::ui::WebView* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_stopLoading'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_stopLoading'", nullptr);
return 0;
}
cobj->stopLoading();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:stopLoading",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_stopLoading'.",&tolua_err);
#endif
return 0;
}
int lua_ax_webview_WebView_reload(lua_State* tolua_S)
{
int argc = 0;
ax::ui::WebView* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_reload'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_reload'", nullptr);
return 0;
}
cobj->reload();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:reload",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_reload'.",&tolua_err);
#endif
return 0;
}
int lua_ax_webview_WebView_canGoBack(lua_State* tolua_S)
{
int argc = 0;
ax::ui::WebView* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_canGoBack'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_canGoBack'", nullptr);
return 0;
}
auto&& ret = cobj->canGoBack();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:canGoBack",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_canGoBack'.",&tolua_err);
#endif
return 0;
}
int lua_ax_webview_WebView_canGoForward(lua_State* tolua_S)
{
int argc = 0;
ax::ui::WebView* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_canGoForward'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_canGoForward'", nullptr);
return 0;
}
auto&& ret = cobj->canGoForward();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:canGoForward",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_canGoForward'.",&tolua_err);
#endif
return 0;
}
int lua_ax_webview_WebView_goBack(lua_State* tolua_S)
{
int argc = 0;
ax::ui::WebView* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_goBack'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_goBack'", nullptr);
return 0;
}
cobj->goBack();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:goBack",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_goBack'.",&tolua_err);
#endif
return 0;
}
int lua_ax_webview_WebView_goForward(lua_State* tolua_S)
{
int argc = 0;
ax::ui::WebView* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_goForward'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_goForward'", nullptr);
return 0;
}
cobj->goForward();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:goForward",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_goForward'.",&tolua_err);
#endif
return 0;
@ -520,7 +561,7 @@ int lua_ax_webview_WebView_evaluateJS(lua_State* tolua_S)
return 0;
}
int lua_ax_webview_WebView_setBackgroundTransparent(lua_State* tolua_S)
int lua_ax_webview_WebView_setScalesPageToFit(lua_State* tolua_S)
{
int argc = 0;
ax::ui::WebView* cobj = nullptr;
@ -540,29 +581,32 @@ int lua_ax_webview_WebView_setBackgroundTransparent(lua_State* tolua_S)
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setBackgroundTransparent'", nullptr);
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setScalesPageToFit'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.WebView:setScalesPageToFit");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setBackgroundTransparent'", nullptr);
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setScalesPageToFit'", nullptr);
return 0;
}
cobj->setBackgroundTransparent();
cobj->setScalesPageToFit(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setBackgroundTransparent",argc, 0);
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setScalesPageToFit",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setBackgroundTransparent'.",&tolua_err);
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setScalesPageToFit'.",&tolua_err);
#endif
return 0;
@ -614,7 +658,7 @@ int lua_ax_webview_WebView_getOnJSCallback(lua_State* tolua_S)
return 0;
}
int lua_ax_webview_WebView_canGoForward(lua_State* tolua_S)
int lua_ax_webview_WebView_setBounces(lua_State* tolua_S)
{
int argc = 0;
ax::ui::WebView* cobj = nullptr;
@ -634,34 +678,37 @@ int lua_ax_webview_WebView_canGoForward(lua_State* tolua_S)
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_canGoForward'", nullptr);
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setBounces'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.WebView:setBounces");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_canGoForward'", nullptr);
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setBounces'", nullptr);
return 0;
}
auto&& ret = cobj->canGoForward();
tolua_pushboolean(tolua_S,(bool)ret);
cobj->setBounces(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:canGoForward",argc, 0);
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setBounces",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_canGoForward'.",&tolua_err);
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setBounces'.",&tolua_err);
#endif
return 0;
}
int lua_ax_webview_WebView_stopLoading(lua_State* tolua_S)
int lua_ax_webview_WebView_setOpacityWebView(lua_State* tolua_S)
{
int argc = 0;
ax::ui::WebView* cobj = nullptr;
@ -681,29 +728,32 @@ int lua_ax_webview_WebView_stopLoading(lua_State* tolua_S)
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_stopLoading'", nullptr);
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setOpacityWebView'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
if (argc == 1)
{
double arg0;
ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.WebView:setOpacityWebView");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_stopLoading'", nullptr);
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setOpacityWebView'", nullptr);
return 0;
}
cobj->stopLoading();
cobj->setOpacityWebView(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:stopLoading",argc, 0);
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setOpacityWebView",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_stopLoading'.",&tolua_err);
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setOpacityWebView'.",&tolua_err);
#endif
return 0;
@ -755,7 +805,7 @@ int lua_ax_webview_WebView_getOpacityWebView(lua_State* tolua_S)
return 0;
}
int lua_ax_webview_WebView_reload(lua_State* tolua_S)
int lua_ax_webview_WebView_setBackgroundTransparent(lua_State* tolua_S)
{
int argc = 0;
ax::ui::WebView* cobj = nullptr;
@ -775,7 +825,7 @@ int lua_ax_webview_WebView_reload(lua_State* tolua_S)
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_reload'", nullptr);
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setBackgroundTransparent'", nullptr);
return 0;
}
#endif
@ -785,69 +835,19 @@ int lua_ax_webview_WebView_reload(lua_State* tolua_S)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_reload'", nullptr);
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setBackgroundTransparent'", nullptr);
return 0;
}
cobj->reload();
cobj->setBackgroundTransparent();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:reload",argc, 0);
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setBackgroundTransparent",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_reload'.",&tolua_err);
#endif
return 0;
}
int lua_ax_webview_WebView_setJavascriptInterfaceScheme(lua_State* tolua_S)
{
int argc = 0;
ax::ui::WebView* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"axui.WebView",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::ui::WebView*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_webview_WebView_setJavascriptInterfaceScheme'", 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.WebView:setJavascriptInterfaceScheme");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_webview_WebView_setJavascriptInterfaceScheme'", nullptr);
return 0;
}
cobj->setJavascriptInterfaceScheme(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.WebView:setJavascriptInterfaceScheme",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setJavascriptInterfaceScheme'.",&tolua_err);
tolua_error(tolua_S,"#ferror in function 'lua_ax_webview_WebView_setBackgroundTransparent'.",&tolua_err);
#endif
return 0;
@ -936,23 +936,23 @@ int lua_register_ax_webview_WebView(lua_State* tolua_S)
tolua_beginmodule(tolua_S,"WebView");
tolua_function(tolua_S,"new",lua_ax_webview_WebView_constructor);
tolua_function(tolua_S,"setOpacityWebView",lua_ax_webview_WebView_setOpacityWebView);
tolua_function(tolua_S,"canGoBack",lua_ax_webview_WebView_canGoBack);
tolua_function(tolua_S,"loadHTMLString",lua_ax_webview_WebView_loadHTMLString);
tolua_function(tolua_S,"goForward",lua_ax_webview_WebView_goForward);
tolua_function(tolua_S,"goBack",lua_ax_webview_WebView_goBack);
tolua_function(tolua_S,"setScalesPageToFit",lua_ax_webview_WebView_setScalesPageToFit);
tolua_function(tolua_S,"loadFile",lua_ax_webview_WebView_loadFile);
tolua_function(tolua_S,"loadURL",lua_ax_webview_WebView_loadURL);
tolua_function(tolua_S,"setBounces",lua_ax_webview_WebView_setBounces);
tolua_function(tolua_S,"evaluateJS",lua_ax_webview_WebView_evaluateJS);
tolua_function(tolua_S,"setBackgroundTransparent",lua_ax_webview_WebView_setBackgroundTransparent);
tolua_function(tolua_S,"getOnJSCallback",lua_ax_webview_WebView_getOnJSCallback);
tolua_function(tolua_S,"canGoForward",lua_ax_webview_WebView_canGoForward);
tolua_function(tolua_S,"stopLoading",lua_ax_webview_WebView_stopLoading);
tolua_function(tolua_S,"getOpacityWebView",lua_ax_webview_WebView_getOpacityWebView);
tolua_function(tolua_S,"reload",lua_ax_webview_WebView_reload);
tolua_function(tolua_S,"setJavascriptInterfaceScheme",lua_ax_webview_WebView_setJavascriptInterfaceScheme);
tolua_function(tolua_S,"loadHTMLString",lua_ax_webview_WebView_loadHTMLString);
tolua_function(tolua_S,"loadURL",lua_ax_webview_WebView_loadURL);
tolua_function(tolua_S,"loadFile",lua_ax_webview_WebView_loadFile);
tolua_function(tolua_S,"stopLoading",lua_ax_webview_WebView_stopLoading);
tolua_function(tolua_S,"reload",lua_ax_webview_WebView_reload);
tolua_function(tolua_S,"canGoBack",lua_ax_webview_WebView_canGoBack);
tolua_function(tolua_S,"canGoForward",lua_ax_webview_WebView_canGoForward);
tolua_function(tolua_S,"goBack",lua_ax_webview_WebView_goBack);
tolua_function(tolua_S,"goForward",lua_ax_webview_WebView_goForward);
tolua_function(tolua_S,"evaluateJS",lua_ax_webview_WebView_evaluateJS);
tolua_function(tolua_S,"setScalesPageToFit",lua_ax_webview_WebView_setScalesPageToFit);
tolua_function(tolua_S,"getOnJSCallback",lua_ax_webview_WebView_getOnJSCallback);
tolua_function(tolua_S,"setBounces",lua_ax_webview_WebView_setBounces);
tolua_function(tolua_S,"setOpacityWebView",lua_ax_webview_WebView_setOpacityWebView);
tolua_function(tolua_S,"getOpacityWebView",lua_ax_webview_WebView_getOpacityWebView);
tolua_function(tolua_S,"setBackgroundTransparent",lua_ax_webview_WebView_setBackgroundTransparent);
tolua_function(tolua_S,"create", lua_ax_webview_WebView_create);
tolua_endmodule(tolua_S);
auto typeName = typeid(ax::ui::WebView).name(); // rtti is literal storage