Vuplex_WebView_ScrolledEventArgsWrap.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class Vuplex_WebView_ScrolledEventArgsWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(Vuplex.WebView.ScrolledEventArgs), typeof(System.EventArgs), "ScrolledEventArgs");
  9. L.RegFunction("New", _CreateVuplex_WebView_ScrolledEventArgs);
  10. L.RegFunction("__tostring", ToLua.op_ToString);
  11. L.RegVar("ScrollDelta", get_ScrollDelta, null);
  12. L.RegVar("Point", get_Point, null);
  13. L.EndClass();
  14. }
  15. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  16. static int _CreateVuplex_WebView_ScrolledEventArgs(IntPtr L)
  17. {
  18. try
  19. {
  20. int count = LuaDLL.lua_gettop(L);
  21. if (count == 2)
  22. {
  23. UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 1);
  24. UnityEngine.Vector2 arg1 = ToLua.ToVector2(L, 2);
  25. Vuplex.WebView.ScrolledEventArgs obj = new Vuplex.WebView.ScrolledEventArgs(arg0, arg1);
  26. ToLua.PushObject(L, obj);
  27. return 1;
  28. }
  29. else
  30. {
  31. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Vuplex.WebView.ScrolledEventArgs.New");
  32. }
  33. }
  34. catch (Exception e)
  35. {
  36. return LuaDLL.toluaL_exception(L, e);
  37. }
  38. }
  39. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  40. static int get_ScrollDelta(IntPtr L)
  41. {
  42. object o = null;
  43. try
  44. {
  45. o = ToLua.ToObject(L, 1);
  46. Vuplex.WebView.ScrolledEventArgs obj = (Vuplex.WebView.ScrolledEventArgs)o;
  47. UnityEngine.Vector2 ret = obj.ScrollDelta;
  48. ToLua.Push(L, ret);
  49. return 1;
  50. }
  51. catch(Exception e)
  52. {
  53. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ScrollDelta on a nil value");
  54. }
  55. }
  56. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  57. static int get_Point(IntPtr L)
  58. {
  59. object o = null;
  60. try
  61. {
  62. o = ToLua.ToObject(L, 1);
  63. Vuplex.WebView.ScrolledEventArgs obj = (Vuplex.WebView.ScrolledEventArgs)o;
  64. UnityEngine.Vector2 ret = obj.Point;
  65. ToLua.Push(L, ret);
  66. return 1;
  67. }
  68. catch(Exception e)
  69. {
  70. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Point on a nil value");
  71. }
  72. }
  73. }