Vuplex_WebView_WebViewOptionsWrap.cs 3.7 KB

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