| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class Vuplex_WebView_WebViewOptionsWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(Vuplex.WebView.WebViewOptions), null, "WebViewOptions");
- L.RegFunction("New", _CreateVuplex_WebView_WebViewOptions);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("clickWithoutStealingFocus", get_clickWithoutStealingFocus, set_clickWithoutStealingFocus);
- L.RegVar("disableVideo", get_disableVideo, set_disableVideo);
- L.RegVar("preferredPlugins", get_preferredPlugins, set_preferredPlugins);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int _CreateVuplex_WebView_WebViewOptions(IntPtr L)
- {
- Vuplex.WebView.WebViewOptions obj = new Vuplex.WebView.WebViewOptions();
- ToLua.PushValue(L, obj);
- return 1;
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_clickWithoutStealingFocus(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.WebViewOptions obj = (Vuplex.WebView.WebViewOptions)o;
- bool ret = obj.clickWithoutStealingFocus;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index clickWithoutStealingFocus on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_disableVideo(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.WebViewOptions obj = (Vuplex.WebView.WebViewOptions)o;
- bool ret = obj.disableVideo;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index disableVideo on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_preferredPlugins(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.WebViewOptions obj = (Vuplex.WebView.WebViewOptions)o;
- Vuplex.WebView.WebPluginType[] ret = obj.preferredPlugins;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index preferredPlugins on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_clickWithoutStealingFocus(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.WebViewOptions obj = (Vuplex.WebView.WebViewOptions)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.clickWithoutStealingFocus = arg0;
- ToLua.SetBack(L, 1, obj);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index clickWithoutStealingFocus on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_disableVideo(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.WebViewOptions obj = (Vuplex.WebView.WebViewOptions)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.disableVideo = arg0;
- ToLua.SetBack(L, 1, obj);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index disableVideo on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_preferredPlugins(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- Vuplex.WebView.WebViewOptions obj = (Vuplex.WebView.WebViewOptions)o;
- Vuplex.WebView.WebPluginType[] arg0 = ToLua.CheckStructArray<Vuplex.WebView.WebPluginType>(L, 2);
- obj.preferredPlugins = arg0;
- ToLua.SetBack(L, 1, obj);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index preferredPlugins on a nil value");
- }
- }
- }
|