SuperScrollView_LoopGridViewInitParamWrap.cs 4.4 KB

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