Vuplex_WebView_ScrolledEventArgsWrap.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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_ScrolledEventArgsWrap
  6. {
  7. public static void Register(LuaState L)
  8. {
  9. L.BeginClass(typeof(Vuplex.WebView.ScrolledEventArgs), typeof(System.EventArgs));
  10. L.RegFunction("New", _CreateVuplex_WebView_ScrolledEventArgs);
  11. L.RegFunction("__tostring", ToLua.op_ToString);
  12. L.RegVar("ScrollDelta", get_ScrollDelta, null);
  13. L.RegVar("Point", get_Point, null);
  14. L.EndClass();
  15. }
  16. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  17. static int _CreateVuplex_WebView_ScrolledEventArgs(IntPtr L)
  18. {
  19. try
  20. {
  21. int count = LuaDLL.lua_gettop(L);
  22. if (count == 2)
  23. {
  24. UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 1);
  25. UnityEngine.Vector2 arg1 = ToLua.ToVector2(L, 2);
  26. Vuplex.WebView.ScrolledEventArgs obj = new Vuplex.WebView.ScrolledEventArgs(arg0, arg1);
  27. ToLua.PushObject(L, obj);
  28. return 1;
  29. }
  30. else
  31. {
  32. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Vuplex.WebView.ScrolledEventArgs.New");
  33. }
  34. }
  35. catch (Exception e)
  36. {
  37. return LuaDLL.toluaL_exception(L, e);
  38. }
  39. }
  40. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  41. static int get_ScrollDelta(IntPtr L)
  42. {
  43. object o = null;
  44. try
  45. {
  46. o = ToLua.ToObject(L, 1);
  47. Vuplex.WebView.ScrolledEventArgs obj = (Vuplex.WebView.ScrolledEventArgs)o;
  48. UnityEngine.Vector2 ret = obj.ScrollDelta;
  49. ToLua.Push(L, ret);
  50. return 1;
  51. }
  52. catch(Exception e)
  53. {
  54. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScrollDelta on a nil value");
  55. }
  56. }
  57. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  58. static int get_Point(IntPtr L)
  59. {
  60. object o = null;
  61. try
  62. {
  63. o = ToLua.ToObject(L, 1);
  64. Vuplex.WebView.ScrolledEventArgs obj = (Vuplex.WebView.ScrolledEventArgs)o;
  65. UnityEngine.Vector2 ret = obj.Point;
  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 Point on a nil value");
  72. }
  73. }
  74. }
  75. #endif