Vuplex_WebView_WentingCanvasWebVewPrefabWrap.cs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class Vuplex_WebView_WentingCanvasWebVewPrefabWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(Vuplex.WebView.WentingCanvasWebVewPrefab), typeof(Vuplex.WebView.BaseWebViewPrefab));
  9. L.RegFunction("Init", Init);
  10. L.RegFunction("ResetSize", ResetSize);
  11. L.RegFunction("__eq", op_Equality);
  12. L.RegFunction("__tostring", ToLua.op_ToString);
  13. L.RegVar("ScrollingSensitivity", get_ScrollingSensitivity, set_ScrollingSensitivity);
  14. L.RegVar("RenderImageScale", get_RenderImageScale, set_RenderImageScale);
  15. L.EndClass();
  16. }
  17. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  18. static int Init(IntPtr L)
  19. {
  20. try
  21. {
  22. int count = LuaDLL.lua_gettop(L);
  23. if (count == 4)
  24. {
  25. Vuplex.WebView.WentingCanvasWebVewPrefab obj = (Vuplex.WebView.WentingCanvasWebVewPrefab)ToLua.CheckObject<Vuplex.WebView.WentingCanvasWebVewPrefab>(L, 1);
  26. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  27. float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
  28. float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
  29. obj.Init(arg0, arg1, arg2);
  30. return 0;
  31. }
  32. else if (count == 5)
  33. {
  34. Vuplex.WebView.WentingCanvasWebVewPrefab obj = (Vuplex.WebView.WentingCanvasWebVewPrefab)ToLua.CheckObject<Vuplex.WebView.WentingCanvasWebVewPrefab>(L, 1);
  35. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  36. float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
  37. float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
  38. Vuplex.WebView.WebViewOptions arg3 = StackTraits<Vuplex.WebView.WebViewOptions>.Check(L, 5);
  39. obj.Init(arg0, arg1, arg2, arg3);
  40. return 0;
  41. }
  42. else if (count == 6)
  43. {
  44. Vuplex.WebView.WentingCanvasWebVewPrefab obj = (Vuplex.WebView.WentingCanvasWebVewPrefab)ToLua.CheckObject<Vuplex.WebView.WentingCanvasWebVewPrefab>(L, 1);
  45. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  46. float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
  47. float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
  48. Vuplex.WebView.WebViewOptions arg3 = StackTraits<Vuplex.WebView.WebViewOptions>.Check(L, 5);
  49. Vuplex.WebView.IWebView arg4 = (Vuplex.WebView.IWebView)ToLua.CheckObject<Vuplex.WebView.IWebView>(L, 6);
  50. obj.Init(arg0, arg1, arg2, arg3, arg4);
  51. return 0;
  52. }
  53. else
  54. {
  55. return LuaDLL.luaL_throw(L, "invalid arguments to method: Vuplex.WebView.WentingCanvasWebVewPrefab.Init");
  56. }
  57. }
  58. catch (Exception e)
  59. {
  60. return LuaDLL.toluaL_exception(L, e);
  61. }
  62. }
  63. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  64. static int ResetSize(IntPtr L)
  65. {
  66. try
  67. {
  68. ToLua.CheckArgsCount(L, 1);
  69. Vuplex.WebView.WentingCanvasWebVewPrefab obj = (Vuplex.WebView.WentingCanvasWebVewPrefab)ToLua.CheckObject<Vuplex.WebView.WentingCanvasWebVewPrefab>(L, 1);
  70. obj.ResetSize();
  71. return 0;
  72. }
  73. catch (Exception e)
  74. {
  75. return LuaDLL.toluaL_exception(L, e);
  76. }
  77. }
  78. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  79. static int op_Equality(IntPtr L)
  80. {
  81. try
  82. {
  83. ToLua.CheckArgsCount(L, 2);
  84. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  85. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  86. bool o = arg0 == arg1;
  87. LuaDLL.lua_pushboolean(L, o);
  88. return 1;
  89. }
  90. catch (Exception e)
  91. {
  92. return LuaDLL.toluaL_exception(L, e);
  93. }
  94. }
  95. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  96. static int get_ScrollingSensitivity(IntPtr L)
  97. {
  98. object o = null;
  99. try
  100. {
  101. o = ToLua.ToObject(L, 1);
  102. Vuplex.WebView.WentingCanvasWebVewPrefab obj = (Vuplex.WebView.WentingCanvasWebVewPrefab)o;
  103. float ret = obj.ScrollingSensitivity;
  104. LuaDLL.lua_pushnumber(L, ret);
  105. return 1;
  106. }
  107. catch(Exception e)
  108. {
  109. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScrollingSensitivity on a nil value");
  110. }
  111. }
  112. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  113. static int get_RenderImageScale(IntPtr L)
  114. {
  115. object o = null;
  116. try
  117. {
  118. o = ToLua.ToObject(L, 1);
  119. Vuplex.WebView.WentingCanvasWebVewPrefab obj = (Vuplex.WebView.WentingCanvasWebVewPrefab)o;
  120. float ret = obj.RenderImageScale;
  121. LuaDLL.lua_pushnumber(L, ret);
  122. return 1;
  123. }
  124. catch(Exception e)
  125. {
  126. return LuaDLL.toluaL_exception(L, e, o, "attempt to index RenderImageScale on a nil value");
  127. }
  128. }
  129. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  130. static int set_ScrollingSensitivity(IntPtr L)
  131. {
  132. object o = null;
  133. try
  134. {
  135. o = ToLua.ToObject(L, 1);
  136. Vuplex.WebView.WentingCanvasWebVewPrefab obj = (Vuplex.WebView.WentingCanvasWebVewPrefab)o;
  137. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  138. obj.ScrollingSensitivity = arg0;
  139. return 0;
  140. }
  141. catch(Exception e)
  142. {
  143. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScrollingSensitivity on a nil value");
  144. }
  145. }
  146. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  147. static int set_RenderImageScale(IntPtr L)
  148. {
  149. object o = null;
  150. try
  151. {
  152. o = ToLua.ToObject(L, 1);
  153. Vuplex.WebView.WentingCanvasWebVewPrefab obj = (Vuplex.WebView.WentingCanvasWebVewPrefab)o;
  154. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  155. obj.RenderImageScale = arg0;
  156. return 0;
  157. }
  158. catch(Exception e)
  159. {
  160. return LuaDLL.toluaL_exception(L, e, o, "attempt to index RenderImageScale on a nil value");
  161. }
  162. }
  163. }