| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class Vuplex_WebView_BaseWebViewPrefabWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(Vuplex.WebView.BaseWebViewPrefab), typeof(UnityEngine.MonoBehaviour));
- L.RegFunction("Destroy", Destroy);
- L.RegFunction("SetCutoutRect", SetCutoutRect);
- L.RegFunction("SetPointerInputDetector", SetPointerInputDetector);
- L.RegFunction("WaitUntilInitialized", WaitUntilInitialized);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("InitialUrl", get_InitialUrl, set_InitialUrl);
- L.RegVar("DragMode", get_DragMode, set_DragMode);
- L.RegVar("ClickingEnabled", get_ClickingEnabled, set_ClickingEnabled);
- L.RegVar("HoveringEnabled", get_HoveringEnabled, set_HoveringEnabled);
- L.RegVar("ScrollingEnabled", get_ScrollingEnabled, set_ScrollingEnabled);
- L.RegVar("DragThreshold", get_DragThreshold, set_DragThreshold);
- L.RegVar("RemoteDebuggingEnabled", get_RemoteDebuggingEnabled, set_RemoteDebuggingEnabled);
- L.RegVar("LogConsoleMessages", get_LogConsoleMessages, set_LogConsoleMessages);
- L.RegVar("Material", get_Material, set_Material);
- L.RegVar("Visible", get_Visible, set_Visible);
- L.RegVar("WebView", get_WebView, null);
- L.RegVar("Clicked", get_Clicked, set_Clicked);
- L.RegVar("Initialized", get_Initialized, set_Initialized);
- L.RegVar("Scrolled", get_Scrolled, set_Scrolled);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Destroy(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject<Vuplex.WebView.BaseWebViewPrefab>(L, 1);
- obj.Destroy();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetCutoutRect(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject<Vuplex.WebView.BaseWebViewPrefab>(L, 1);
- UnityEngine.Rect arg0 = StackTraits<UnityEngine.Rect>.Check(L, 2);
- obj.SetCutoutRect(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetPointerInputDetector(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject<Vuplex.WebView.BaseWebViewPrefab>(L, 1);
- Vuplex.WebView.IPointerInputDetector arg0 = (Vuplex.WebView.IPointerInputDetector)ToLua.CheckObject<Vuplex.WebView.IPointerInputDetector>(L, 2);
- obj.SetPointerInputDetector(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int WaitUntilInitialized(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject<Vuplex.WebView.BaseWebViewPrefab>(L, 1);
- System.Threading.Tasks.Task o = obj.WaitUntilInitialized();
- ToLua.PushObject(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int op_Equality(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
- UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
- bool o = arg0 == arg1;
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_InitialUrl(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- string ret = obj.InitialUrl;
- LuaDLL.lua_pushstring(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index InitialUrl on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_DragMode(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- Vuplex.WebView.DragMode ret = obj.DragMode;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index DragMode on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_ClickingEnabled(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- bool ret = obj.ClickingEnabled;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index ClickingEnabled on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_HoveringEnabled(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- bool ret = obj.HoveringEnabled;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index HoveringEnabled on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_ScrollingEnabled(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- bool ret = obj.ScrollingEnabled;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScrollingEnabled on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_DragThreshold(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- float ret = obj.DragThreshold;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index DragThreshold on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_RemoteDebuggingEnabled(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- bool ret = obj.RemoteDebuggingEnabled;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index RemoteDebuggingEnabled on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_LogConsoleMessages(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- bool ret = obj.LogConsoleMessages;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index LogConsoleMessages on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Material(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- UnityEngine.Material ret = obj.Material;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Material on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Visible(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- bool ret = obj.Visible;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Visible on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_WebView(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- Vuplex.WebView.IWebView ret = obj.WebView;
- ToLua.PushObject(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index WebView on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Clicked(IntPtr L)
- {
- ToLua.Push(L, new EventObject(typeof(System.EventHandler<Vuplex.WebView.ClickedEventArgs>)));
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Initialized(IntPtr L)
- {
- ToLua.Push(L, new EventObject(typeof(System.EventHandler)));
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Scrolled(IntPtr L)
- {
- ToLua.Push(L, new EventObject(typeof(System.EventHandler<Vuplex.WebView.ScrolledEventArgs>)));
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_InitialUrl(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- string arg0 = ToLua.CheckString(L, 2);
- obj.InitialUrl = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index InitialUrl on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_DragMode(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- Vuplex.WebView.DragMode arg0 = (Vuplex.WebView.DragMode)ToLua.CheckObject(L, 2, typeof(Vuplex.WebView.DragMode));
- obj.DragMode = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index DragMode on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_ClickingEnabled(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.ClickingEnabled = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index ClickingEnabled on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_HoveringEnabled(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.HoveringEnabled = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index HoveringEnabled on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_ScrollingEnabled(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.ScrollingEnabled = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScrollingEnabled on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_DragThreshold(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.DragThreshold = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index DragThreshold on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_RemoteDebuggingEnabled(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.RemoteDebuggingEnabled = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index RemoteDebuggingEnabled on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_LogConsoleMessages(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.LogConsoleMessages = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index LogConsoleMessages on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_Material(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckObject<UnityEngine.Material>(L, 2);
- obj.Material = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Material on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_Visible(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.Visible = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Visible on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_Clicked(IntPtr L)
- {
- try
- {
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject(L, 1, typeof(Vuplex.WebView.BaseWebViewPrefab));
- EventObject arg0 = null;
- if (LuaDLL.lua_isuserdata(L, 2) != 0)
- {
- arg0 = (EventObject)ToLua.ToObject(L, 2);
- }
- else
- {
- return LuaDLL.luaL_throw(L, "The event 'Vuplex.WebView.BaseWebViewPrefab.Clicked' can only appear on the left hand side of += or -= when used outside of the type 'Vuplex.WebView.BaseWebViewPrefab'");
- }
- if (arg0.op == EventOp.Add)
- {
- System.EventHandler<Vuplex.WebView.ClickedEventArgs> ev = (System.EventHandler<Vuplex.WebView.ClickedEventArgs>)arg0.func;
- obj.Clicked += ev;
- }
- else if (arg0.op == EventOp.Sub)
- {
- System.EventHandler<Vuplex.WebView.ClickedEventArgs> ev = (System.EventHandler<Vuplex.WebView.ClickedEventArgs>)arg0.func;
- obj.Clicked -= ev;
- }
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_Initialized(IntPtr L)
- {
- try
- {
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject(L, 1, typeof(Vuplex.WebView.BaseWebViewPrefab));
- EventObject arg0 = null;
- if (LuaDLL.lua_isuserdata(L, 2) != 0)
- {
- arg0 = (EventObject)ToLua.ToObject(L, 2);
- }
- else
- {
- return LuaDLL.luaL_throw(L, "The event 'Vuplex.WebView.BaseWebViewPrefab.Initialized' can only appear on the left hand side of += or -= when used outside of the type 'Vuplex.WebView.BaseWebViewPrefab'");
- }
- if (arg0.op == EventOp.Add)
- {
- System.EventHandler ev = (System.EventHandler)arg0.func;
- obj.Initialized += ev;
- }
- else if (arg0.op == EventOp.Sub)
- {
- System.EventHandler ev = (System.EventHandler)arg0.func;
- obj.Initialized -= ev;
- }
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_Scrolled(IntPtr L)
- {
- try
- {
- Vuplex.WebView.BaseWebViewPrefab obj = (Vuplex.WebView.BaseWebViewPrefab)ToLua.CheckObject(L, 1, typeof(Vuplex.WebView.BaseWebViewPrefab));
- EventObject arg0 = null;
- if (LuaDLL.lua_isuserdata(L, 2) != 0)
- {
- arg0 = (EventObject)ToLua.ToObject(L, 2);
- }
- else
- {
- return LuaDLL.luaL_throw(L, "The event 'Vuplex.WebView.BaseWebViewPrefab.Scrolled' can only appear on the left hand side of += or -= when used outside of the type 'Vuplex.WebView.BaseWebViewPrefab'");
- }
- if (arg0.op == EventOp.Add)
- {
- System.EventHandler<Vuplex.WebView.ScrolledEventArgs> ev = (System.EventHandler<Vuplex.WebView.ScrolledEventArgs>)arg0.func;
- obj.Scrolled += ev;
- }
- else if (arg0.op == EventOp.Sub)
- {
- System.EventHandler<Vuplex.WebView.ScrolledEventArgs> ev = (System.EventHandler<Vuplex.WebView.ScrolledEventArgs>)arg0.func;
- obj.Scrolled -= ev;
- }
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- }
|