概述#include "lua_UIWebView_auto.hpp"#include "UIWebView.h"#include "tolua_fix.h"#include "LuaBasicConversions.h"//#include "cocos2d.h"int lua_UIWebView_WebView_loadURL(lua_State* tolua_S){ i
@H_404_2@#include "lua_UIWebVIEw_auto.hpp"#include "UIWebVIEw.h"#include "tolua_fix.h"#include "LuaBasicConversions.h"//#include "cocos2d.h"int lua_UIWebVIEw_WebVIEw_loadURL(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccexp.WebVIEw",&tolua_err)) goto tolua_lerror;#endif cobj = (cocos2d::experimental::ui::WebVIEw*)tolua_tousertype(tolua_S,0);#if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_loadURL'",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,"ccexp.WebVIEw:loadURL"); if(!ok) { tolua_error(tolua_S,"invalID arguments in function 'lua_UIWebVIEw_WebVIEw_loadURL'",nullptr); return 0; } cobj->loadURL(arg0); lua_settop(tolua_S,1); return 1; } luaL_error(tolua_S,"%s has wrong number of arguments: %d,was expecting %d \n","ccexp.WebVIEw:loadURL",argc,1); return 0;#if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_UIWebVIEw_WebVIEw_loadURL'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_canGoBack(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_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_UIWebVIEw_WebVIEw_canGoBack'",nullptr); return 0; } bool ret = cobj->canGoBack(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S,"ccexp.WebVIEw:canGoBack",0); return 0;#if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_UIWebVIEw_WebVIEw_canGoBack'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_loadHTMLString(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_loadHTMLString'","ccexp.WebVIEw:loadHTMLString"); if(!ok) { tolua_error(tolua_S,"invalID arguments in function 'lua_UIWebVIEw_WebVIEw_loadHTMLString'",nullptr); return 0; } cobj->loadHTMLString(arg0,""); lua_settop(tolua_S,1); return 1; } if (argc == 2) { std::string arg0; std::string arg1; ok &= luaval_to_std_string(tolua_S,"ccexp.WebVIEw:loadHTMLString"); ok &= luaval_to_std_string(tolua_S,3,&arg1,arg1); lua_settop(tolua_S,"ccexp.WebVIEw:loadHTMLString","#ferror in function 'lua_UIWebVIEw_WebVIEw_loadHTMLString'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_setonjsCallback(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_setonjsCallback'",nullptr); return 0; }#endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::function<voID (cocos2d::experimental::ui::WebVIEw *,const std::basic_string<char> &)> arg0; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalID arguments in function 'lua_UIWebVIEw_WebVIEw_setonjsCallback'",nullptr); return 0; } cobj->setonjsCallback(arg0); lua_settop(tolua_S,"ccexp.WebVIEw:setonjsCallback","#ferror in function 'lua_UIWebVIEw_WebVIEw_setonjsCallback'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_setonShouldStartLoading(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_setonShouldStartLoading'",nullptr); return 0; }#endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::function<bool (cocos2d::experimental::ui::WebVIEw *,"invalID arguments in function 'lua_UIWebVIEw_WebVIEw_setonShouldStartLoading'",nullptr); return 0; } cobj->setonShouldStartLoading(arg0); lua_settop(tolua_S,"ccexp.WebVIEw:setonShouldStartLoading","#ferror in function 'lua_UIWebVIEw_WebVIEw_setonShouldStartLoading'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_goForward(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_goForward'","invalID arguments in function 'lua_UIWebVIEw_WebVIEw_goForward'",nullptr); return 0; } cobj->goForward(); lua_settop(tolua_S,"ccexp.WebVIEw:goForward","#ferror in function 'lua_UIWebVIEw_WebVIEw_goForward'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_goBack(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_goBack'","invalID arguments in function 'lua_UIWebVIEw_WebVIEw_goBack'",nullptr); return 0; } cobj->goBack(); lua_settop(tolua_S,"ccexp.WebVIEw:goBack","#ferror in function 'lua_UIWebVIEw_WebVIEw_goBack'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_setJavaScriptInterfaceScheme(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_setJavaScriptInterfaceScheme'","ccexp.WebVIEw:setJavaScriptInterfaceScheme"); if(!ok) { tolua_error(tolua_S,"invalID arguments in function 'lua_UIWebVIEw_WebVIEw_setJavaScriptInterfaceScheme'",nullptr); return 0; } cobj->setJavaScriptInterfaceScheme(arg0); lua_settop(tolua_S,"ccexp.WebVIEw:setJavaScriptInterfaceScheme","#ferror in function 'lua_UIWebVIEw_WebVIEw_setJavaScriptInterfaceScheme'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_evaluateJs(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_evaluateJs'","ccexp.WebVIEw:evaluateJs"); if(!ok) { tolua_error(tolua_S,"invalID arguments in function 'lua_UIWebVIEw_WebVIEw_evaluateJs'",nullptr); return 0; } cobj->evaluateJs(arg0); lua_settop(tolua_S,"ccexp.WebVIEw:evaluateJs","#ferror in function 'lua_UIWebVIEw_WebVIEw_evaluateJs'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_getonjsCallback(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_getonjsCallback'","invalID arguments in function 'lua_UIWebVIEw_WebVIEw_getonjsCallback'",nullptr); return 0; } cocos2d::experimental::ui::WebVIEw::ccwebVIEwCallback ret = cobj->getonjsCallback(); #pragma warning NO CONVERSION FROM NATIVE FOR std::function; return 1; } luaL_error(tolua_S,"ccexp.WebVIEw:getonjsCallback","#ferror in function 'lua_UIWebVIEw_WebVIEw_getonjsCallback'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_reload(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_reload'","invalID arguments in function 'lua_UIWebVIEw_WebVIEw_reload'",nullptr); return 0; } cobj->reload(); lua_settop(tolua_S,"ccexp.WebVIEw:reload","#ferror in function 'lua_UIWebVIEw_WebVIEw_reload'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_setScalesPagetoFit(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_setScalesPagetoFit'",nullptr); return 0; }#endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S,"ccexp.WebVIEw:setScalesPagetoFit"); if(!ok) { tolua_error(tolua_S,"invalID arguments in function 'lua_UIWebVIEw_WebVIEw_setScalesPagetoFit'",nullptr); return 0; } cobj->setScalesPagetoFit(arg0); lua_settop(tolua_S,"ccexp.WebVIEw:setScalesPagetoFit","#ferror in function 'lua_UIWebVIEw_WebVIEw_setScalesPagetoFit'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_canGoForward(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_canGoForward'","invalID arguments in function 'lua_UIWebVIEw_WebVIEw_canGoForward'",nullptr); return 0; } bool ret = cobj->canGoForward(); tolua_pushboolean(tolua_S,"ccexp.WebVIEw:canGoForward","#ferror in function 'lua_UIWebVIEw_WebVIEw_canGoForward'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_loadData(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_loadData'",nullptr); return 0; }#endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { cocos2d::Data arg0; std::string arg1; std::string arg2; std::string arg3;// ok &= luaval_to_object<cocos2d::Data>(tolua_S,"cc.Data",&arg0); ok &= luaval_to_std_string(tolua_S,"ccexp.WebVIEw:loadData"); ok &= luaval_to_std_string(tolua_S,4,&arg2,5,&arg3,"ccexp.WebVIEw:loadData"); if(!ok) { tolua_error(tolua_S,"invalID arguments in function 'lua_UIWebVIEw_WebVIEw_loadData'",nullptr); return 0; } cobj->loadData(arg0,arg1,arg2,arg3); lua_settop(tolua_S,"ccexp.WebVIEw:loadData",4); return 0;#if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_UIWebVIEw_WebVIEw_loadData'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_getonShouldStartLoading(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_getonShouldStartLoading'","invalID arguments in function 'lua_UIWebVIEw_WebVIEw_getonShouldStartLoading'",nullptr); return 0; } std::function<bool (cocos2d::experimental::ui::WebVIEw *,const std::basic_string<char> &)> ret = cobj->getonShouldStartLoading(); #pragma warning NO CONVERSION FROM NATIVE FOR std::function; return 1; } luaL_error(tolua_S,"ccexp.WebVIEw:getonShouldStartLoading","#ferror in function 'lua_UIWebVIEw_WebVIEw_getonShouldStartLoading'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_loadfile(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_loadfile'","ccexp.WebVIEw:loadfile"); if(!ok) { tolua_error(tolua_S,"invalID arguments in function 'lua_UIWebVIEw_WebVIEw_loadfile'",nullptr); return 0; } cobj->loadfile(arg0); lua_settop(tolua_S,"ccexp.WebVIEw:loadfile","#ferror in function 'lua_UIWebVIEw_WebVIEw_loadfile'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_stopLoading(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_stopLoading'","invalID arguments in function 'lua_UIWebVIEw_WebVIEw_stopLoading'",nullptr); return 0; } cobj->stopLoading(); lua_settop(tolua_S,"ccexp.WebVIEw:stopLoading","#ferror in function 'lua_UIWebVIEw_WebVIEw_stopLoading'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_setonDIDFinishLoading(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_setonDIDFinishLoading'","invalID arguments in function 'lua_UIWebVIEw_WebVIEw_setonDIDFinishLoading'",nullptr); return 0; } cobj->setonDIDFinishLoading(arg0); lua_settop(tolua_S,"ccexp.WebVIEw:setonDIDFinishLoading","#ferror in function 'lua_UIWebVIEw_WebVIEw_setonDIDFinishLoading'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_setonDIDFailLoading(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_setonDIDFailLoading'","invalID arguments in function 'lua_UIWebVIEw_WebVIEw_setonDIDFailLoading'",nullptr); return 0; } cobj->setonDIDFailLoading(arg0); lua_settop(tolua_S,"ccexp.WebVIEw:setonDIDFailLoading","#ferror in function 'lua_UIWebVIEw_WebVIEw_setonDIDFailLoading'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_getonDIDFinishLoading(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_getonDIDFinishLoading'","invalID arguments in function 'lua_UIWebVIEw_WebVIEw_getonDIDFinishLoading'",nullptr); return 0; } cocos2d::experimental::ui::WebVIEw::ccwebVIEwCallback ret = cobj->getonDIDFinishLoading(); #pragma warning NO CONVERSION FROM NATIVE FOR std::function; return 1; } luaL_error(tolua_S,"ccexp.WebVIEw:getonDIDFinishLoading","#ferror in function 'lua_UIWebVIEw_WebVIEw_getonDIDFinishLoading'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_getonDIDFailLoading(lua_State* tolua_S){ int argc = 0; cocos2d::experimental::ui::WebVIEw* cobj = nullptr; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,"invalID 'cobj' in function 'lua_UIWebVIEw_WebVIEw_getonDIDFailLoading'","invalID arguments in function 'lua_UIWebVIEw_WebVIEw_getonDIDFailLoading'",nullptr); return 0; } cocos2d::experimental::ui::WebVIEw::ccwebVIEwCallback ret = cobj->getonDIDFailLoading(); #pragma warning NO CONVERSION FROM NATIVE FOR std::function; return 1; } luaL_error(tolua_S,"ccexp.WebVIEw:getonDIDFailLoading","#ferror in function 'lua_UIWebVIEw_WebVIEw_getonDIDFailLoading'.",&tolua_err);#endif return 0;}int lua_UIWebVIEw_WebVIEw_create(lua_State* tolua_S){ int argc = 0; bool ok = true;#if COCOS2D_DEBUG >= 1 tolua_Error tolua_err;#endif#if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,&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_UIWebVIEw_WebVIEw_create'",nullptr); return 0; } cocos2d::experimental::ui::WebVIEw* ret = cocos2d::experimental::ui::WebVIEw::create(); object_to_luaval<cocos2d::experimental::ui::WebVIEw>(tolua_S,(cocos2d::experimental::ui::WebVIEw*)ret); return 1; } luaL_error(tolua_S,was expecting %d\n ","ccexp.WebVIEw:create",0); return 0;#if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_UIWebVIEw_WebVIEw_create'.",&tolua_err);#endif return 0;}static int lua_UIWebVIEw_WebVIEw_finalize(lua_State* tolua_S){ printf("luabindings: finalizing LUA object (WebVIEw)"); return 0;}int lua_register_UIWebVIEw_WebVIEw(lua_State* tolua_S){ tolua_usertype(tolua_S,"ccexp.WebVIEw"); tolua_cclass(tolua_S,"WebVIEw","ccui.Widget",nullptr); tolua_beginmodule(tolua_S,"WebVIEw"); tolua_function(tolua_S,"loadURL",lua_UIWebVIEw_WebVIEw_loadURL); tolua_function(tolua_S,"canGoBack",lua_UIWebVIEw_WebVIEw_canGoBack); tolua_function(tolua_S,"loadHTMLString",lua_UIWebVIEw_WebVIEw_loadHTMLString); tolua_function(tolua_S,"setonjsCallback",lua_UIWebVIEw_WebVIEw_setonjsCallback); tolua_function(tolua_S,"setonShouldStartLoading",lua_UIWebVIEw_WebVIEw_setonShouldStartLoading); tolua_function(tolua_S,"goForward",lua_UIWebVIEw_WebVIEw_goForward); tolua_function(tolua_S,"goBack",lua_UIWebVIEw_WebVIEw_goBack); tolua_function(tolua_S,"setJavaScriptInterfaceScheme",lua_UIWebVIEw_WebVIEw_setJavaScriptInterfaceScheme); tolua_function(tolua_S,"evaluateJs",lua_UIWebVIEw_WebVIEw_evaluateJs); tolua_function(tolua_S,"getonjsCallback",lua_UIWebVIEw_WebVIEw_getonjsCallback); tolua_function(tolua_S,"reload",lua_UIWebVIEw_WebVIEw_reload); tolua_function(tolua_S,"setScalesPagetoFit",lua_UIWebVIEw_WebVIEw_setScalesPagetoFit); tolua_function(tolua_S,"canGoForward",lua_UIWebVIEw_WebVIEw_canGoForward); tolua_function(tolua_S,"loadData",lua_UIWebVIEw_WebVIEw_loadData); tolua_function(tolua_S,"getonShouldStartLoading",lua_UIWebVIEw_WebVIEw_getonShouldStartLoading); tolua_function(tolua_S,"loadfile",lua_UIWebVIEw_WebVIEw_loadfile); tolua_function(tolua_S,"stopLoading",lua_UIWebVIEw_WebVIEw_stopLoading); tolua_function(tolua_S,"setonDIDFinishLoading",lua_UIWebVIEw_WebVIEw_setonDIDFinishLoading); tolua_function(tolua_S,"setonDIDFailLoading",lua_UIWebVIEw_WebVIEw_setonDIDFailLoading); tolua_function(tolua_S,"getonDIDFinishLoading",lua_UIWebVIEw_WebVIEw_getonDIDFinishLoading); tolua_function(tolua_S,"getonDIDFailLoading",lua_UIWebVIEw_WebVIEw_getonDIDFailLoading); tolua_function(tolua_S,"create",lua_UIWebVIEw_WebVIEw_create); tolua_endmodule(tolua_S); std::string typename = typeID(cocos2d::experimental::ui::WebVIEw).name(); g_luaType[typename] = "ccexp.WebVIEw"; g_typeCast["WebVIEw"] = "ccexp.WebVIEw"; return 1;}TolUA_API int register_all_UIWebVIEw(lua_State* tolua_S){ tolua_open(tolua_S); tolua_module(tolua_S,nullptr,0); tolua_beginmodule(tolua_S,nullptr); lua_register_UIWebVIEw_WebVIEw(tolua_S); tolua_endmodule(tolua_S); return 1;} 总结
以上是内存溢出为你收集整理的cocos2dx lua_UIWebView_auto.cpp webView tolua实现文件全部内容,希望文章能够帮你解决cocos2dx lua_UIWebView_auto.cpp webView tolua实现文件所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
评论列表(0条)