| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class Vuplex_WebView_WebWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginStaticLibs("Web");
- L.RegFunction("ClearAllData", ClearAllData);
- L.RegFunction("CreateMaterial", CreateMaterial);
- L.RegFunction("CreateVideoMaterial", CreateVideoMaterial);
- L.RegFunction("CreateTexture", CreateTexture);
- L.RegFunction("CreateWebView", CreateWebView);
- L.RegFunction("EnableRemoteDebugging", EnableRemoteDebugging);
- L.RegFunction("SetIgnoreCertificateErrors", SetIgnoreCertificateErrors);
- L.RegFunction("SetTouchScreenKeyboardEnabled", SetTouchScreenKeyboardEnabled);
- L.RegFunction("SetStorageEnabled", SetStorageEnabled);
- L.RegFunction("SetUserAgent", SetUserAgent);
- L.RegVar("DefaultPluginType", get_DefaultPluginType, null);
- L.EndStaticLibs();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ClearAllData(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 0);
- Vuplex.WebView.Web.ClearAllData();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CreateMaterial(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 0)
- {
- System.Threading.Tasks.Task<UnityEngine.Material> o = Vuplex.WebView.Web.CreateMaterial();
- ToLua.PushObject(L, o);
- return 1;
- }
- else if (count == 1)
- {
- System.Action<UnityEngine.Material> arg0 = (System.Action<UnityEngine.Material>)ToLua.CheckDelegate<System.Action<UnityEngine.Material>>(L, 1);
- Vuplex.WebView.Web.CreateMaterial(arg0);
- return 0;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: Vuplex.WebView.Web.CreateMaterial");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CreateVideoMaterial(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- System.Action<UnityEngine.Material> arg0 = (System.Action<UnityEngine.Material>)ToLua.CheckDelegate<System.Action<UnityEngine.Material>>(L, 1);
- Vuplex.WebView.Web.CreateVideoMaterial(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CreateTexture(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 2)
- {
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 1);
- float arg1 = (float)LuaDLL.luaL_checknumber(L, 2);
- System.Threading.Tasks.Task<UnityEngine.Texture2D> o = Vuplex.WebView.Web.CreateTexture(arg0, arg1);
- ToLua.PushObject(L, o);
- return 1;
- }
- else if (count == 3)
- {
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 1);
- float arg1 = (float)LuaDLL.luaL_checknumber(L, 2);
- System.Action<UnityEngine.Texture2D> arg2 = (System.Action<UnityEngine.Texture2D>)ToLua.CheckDelegate<System.Action<UnityEngine.Texture2D>>(L, 3);
- Vuplex.WebView.Web.CreateTexture(arg0, arg1, arg2);
- return 0;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: Vuplex.WebView.Web.CreateTexture");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CreateWebView(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 0)
- {
- Vuplex.WebView.IWebView o = Vuplex.WebView.Web.CreateWebView();
- ToLua.PushObject(L, o);
- return 1;
- }
- else if (count == 1)
- {
- Vuplex.WebView.WebPluginType[] arg0 = ToLua.CheckStructArray<Vuplex.WebView.WebPluginType>(L, 1);
- Vuplex.WebView.IWebView o = Vuplex.WebView.Web.CreateWebView(arg0);
- ToLua.PushObject(L, o);
- return 1;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: Vuplex.WebView.Web.CreateWebView");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int EnableRemoteDebugging(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 0);
- Vuplex.WebView.Web.EnableRemoteDebugging();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetIgnoreCertificateErrors(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- bool arg0 = LuaDLL.luaL_checkboolean(L, 1);
- Vuplex.WebView.Web.SetIgnoreCertificateErrors(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetTouchScreenKeyboardEnabled(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- bool arg0 = LuaDLL.luaL_checkboolean(L, 1);
- Vuplex.WebView.Web.SetTouchScreenKeyboardEnabled(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetStorageEnabled(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- bool arg0 = LuaDLL.luaL_checkboolean(L, 1);
- Vuplex.WebView.Web.SetStorageEnabled(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetUserAgent(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 1 && TypeChecker.CheckTypes<bool>(L, 1))
- {
- bool arg0 = LuaDLL.lua_toboolean(L, 1);
- Vuplex.WebView.Web.SetUserAgent(arg0);
- return 0;
- }
- else if (count == 1 && TypeChecker.CheckTypes<string>(L, 1))
- {
- string arg0 = ToLua.ToString(L, 1);
- Vuplex.WebView.Web.SetUserAgent(arg0);
- return 0;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: Vuplex.WebView.Web.SetUserAgent");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_DefaultPluginType(IntPtr L)
- {
- try
- {
- ToLua.Push(L, Vuplex.WebView.Web.DefaultPluginType);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- }
|