Vuplex_WebView_WebViewPrefabWrap.cs 4.3 KB

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