Vuplex_WebView_WebViewOptionsWrap.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class Vuplex_WebView_WebViewOptionsWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(Vuplex.WebView.WebViewOptions), null);
  9. L.RegFunction("New", _CreateVuplex_WebView_WebViewOptions);
  10. L.RegFunction("__tostring", ToLua.op_ToString);
  11. L.RegVar("clickWithoutStealingFocus", get_clickWithoutStealingFocus, set_clickWithoutStealingFocus);
  12. L.RegVar("disableVideo", get_disableVideo, set_disableVideo);
  13. L.RegVar("preferredPlugins", get_preferredPlugins, set_preferredPlugins);
  14. L.EndClass();
  15. }
  16. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  17. static int _CreateVuplex_WebView_WebViewOptions(IntPtr L)
  18. {
  19. Vuplex.WebView.WebViewOptions obj = new Vuplex.WebView.WebViewOptions();
  20. ToLua.PushValue(L, obj);
  21. return 1;
  22. }
  23. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  24. static int get_clickWithoutStealingFocus(IntPtr L)
  25. {
  26. object o = null;
  27. try
  28. {
  29. o = ToLua.ToObject(L, 1);
  30. Vuplex.WebView.WebViewOptions obj = (Vuplex.WebView.WebViewOptions)o;
  31. bool ret = obj.clickWithoutStealingFocus;
  32. LuaDLL.lua_pushboolean(L, ret);
  33. return 1;
  34. }
  35. catch(Exception e)
  36. {
  37. return LuaDLL.toluaL_exception(L, e, o, "attempt to index clickWithoutStealingFocus on a nil value");
  38. }
  39. }
  40. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  41. static int get_disableVideo(IntPtr L)
  42. {
  43. object o = null;
  44. try
  45. {
  46. o = ToLua.ToObject(L, 1);
  47. Vuplex.WebView.WebViewOptions obj = (Vuplex.WebView.WebViewOptions)o;
  48. bool ret = obj.disableVideo;
  49. LuaDLL.lua_pushboolean(L, ret);
  50. return 1;
  51. }
  52. catch(Exception e)
  53. {
  54. return LuaDLL.toluaL_exception(L, e, o, "attempt to index disableVideo on a nil value");
  55. }
  56. }
  57. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  58. static int get_preferredPlugins(IntPtr L)
  59. {
  60. object o = null;
  61. try
  62. {
  63. o = ToLua.ToObject(L, 1);
  64. Vuplex.WebView.WebViewOptions obj = (Vuplex.WebView.WebViewOptions)o;
  65. Vuplex.WebView.WebPluginType[] ret = obj.preferredPlugins;
  66. ToLua.Push(L, ret);
  67. return 1;
  68. }
  69. catch(Exception e)
  70. {
  71. return LuaDLL.toluaL_exception(L, e, o, "attempt to index preferredPlugins on a nil value");
  72. }
  73. }
  74. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  75. static int set_clickWithoutStealingFocus(IntPtr L)
  76. {
  77. object o = null;
  78. try
  79. {
  80. o = ToLua.ToObject(L, 1);
  81. Vuplex.WebView.WebViewOptions obj = (Vuplex.WebView.WebViewOptions)o;
  82. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  83. obj.clickWithoutStealingFocus = arg0;
  84. ToLua.SetBack(L, 1, obj);
  85. return 0;
  86. }
  87. catch(Exception e)
  88. {
  89. return LuaDLL.toluaL_exception(L, e, o, "attempt to index clickWithoutStealingFocus on a nil value");
  90. }
  91. }
  92. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  93. static int set_disableVideo(IntPtr L)
  94. {
  95. object o = null;
  96. try
  97. {
  98. o = ToLua.ToObject(L, 1);
  99. Vuplex.WebView.WebViewOptions obj = (Vuplex.WebView.WebViewOptions)o;
  100. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  101. obj.disableVideo = arg0;
  102. ToLua.SetBack(L, 1, obj);
  103. return 0;
  104. }
  105. catch(Exception e)
  106. {
  107. return LuaDLL.toluaL_exception(L, e, o, "attempt to index disableVideo on a nil value");
  108. }
  109. }
  110. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  111. static int set_preferredPlugins(IntPtr L)
  112. {
  113. object o = null;
  114. try
  115. {
  116. o = ToLua.ToObject(L, 1);
  117. Vuplex.WebView.WebViewOptions obj = (Vuplex.WebView.WebViewOptions)o;
  118. Vuplex.WebView.WebPluginType[] arg0 = ToLua.CheckStructArray<Vuplex.WebView.WebPluginType>(L, 2);
  119. obj.preferredPlugins = arg0;
  120. ToLua.SetBack(L, 1, obj);
  121. return 0;
  122. }
  123. catch(Exception e)
  124. {
  125. return LuaDLL.toluaL_exception(L, e, o, "attempt to index preferredPlugins on a nil value");
  126. }
  127. }
  128. }