Vuplex_WebView_WentingCanvasWebVewPrefabWrap.cs 5.2 KB

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