SuperScrollView_RowColumnPairWrap.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class SuperScrollView_RowColumnPairWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(SuperScrollView.RowColumnPair), null);
  9. L.RegFunction("Equals", Equals);
  10. L.RegFunction("GetHashCode", GetHashCode);
  11. L.RegFunction("New", _CreateSuperScrollView_RowColumnPair);
  12. L.RegFunction("__eq", op_Equality);
  13. L.RegFunction("__tostring", ToLua.op_ToString);
  14. L.RegVar("mRow", get_mRow, set_mRow);
  15. L.RegVar("mColumn", get_mColumn, set_mColumn);
  16. L.EndClass();
  17. }
  18. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  19. static int _CreateSuperScrollView_RowColumnPair(IntPtr L)
  20. {
  21. try
  22. {
  23. int count = LuaDLL.lua_gettop(L);
  24. if (count == 2)
  25. {
  26. int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
  27. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  28. SuperScrollView.RowColumnPair obj = new SuperScrollView.RowColumnPair(arg0, arg1);
  29. ToLua.PushValue(L, obj);
  30. return 1;
  31. }
  32. else if (count == 0)
  33. {
  34. SuperScrollView.RowColumnPair obj = new SuperScrollView.RowColumnPair();
  35. ToLua.PushValue(L, obj);
  36. return 1;
  37. }
  38. else
  39. {
  40. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: SuperScrollView.RowColumnPair.New");
  41. }
  42. }
  43. catch (Exception e)
  44. {
  45. return LuaDLL.toluaL_exception(L, e);
  46. }
  47. }
  48. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  49. static int Equals(IntPtr L)
  50. {
  51. try
  52. {
  53. int count = LuaDLL.lua_gettop(L);
  54. if (count == 2 && TypeChecker.CheckTypes<SuperScrollView.RowColumnPair>(L, 2))
  55. {
  56. SuperScrollView.RowColumnPair obj = (SuperScrollView.RowColumnPair)ToLua.CheckObject(L, 1, typeof(SuperScrollView.RowColumnPair));
  57. SuperScrollView.RowColumnPair arg0 = StackTraits<SuperScrollView.RowColumnPair>.To(L, 2);
  58. bool o = obj.Equals(arg0);
  59. LuaDLL.lua_pushboolean(L, o);
  60. ToLua.SetBack(L, 1, obj);
  61. return 1;
  62. }
  63. else if (count == 2 && TypeChecker.CheckTypes<object>(L, 2))
  64. {
  65. SuperScrollView.RowColumnPair obj = (SuperScrollView.RowColumnPair)ToLua.CheckObject(L, 1, typeof(SuperScrollView.RowColumnPair));
  66. object arg0 = ToLua.ToVarObject(L, 2);
  67. bool o = obj.Equals(arg0);
  68. LuaDLL.lua_pushboolean(L, o);
  69. ToLua.SetBack(L, 1, obj);
  70. return 1;
  71. }
  72. else
  73. {
  74. return LuaDLL.luaL_throw(L, "invalid arguments to method: SuperScrollView.RowColumnPair.Equals");
  75. }
  76. }
  77. catch (Exception e)
  78. {
  79. return LuaDLL.toluaL_exception(L, e);
  80. }
  81. }
  82. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  83. static int op_Equality(IntPtr L)
  84. {
  85. try
  86. {
  87. ToLua.CheckArgsCount(L, 2);
  88. SuperScrollView.RowColumnPair arg0 = StackTraits<SuperScrollView.RowColumnPair>.To(L, 1);
  89. SuperScrollView.RowColumnPair arg1 = StackTraits<SuperScrollView.RowColumnPair>.To(L, 2);
  90. bool o = arg0 == arg1;
  91. LuaDLL.lua_pushboolean(L, o);
  92. return 1;
  93. }
  94. catch (Exception e)
  95. {
  96. return LuaDLL.toluaL_exception(L, e);
  97. }
  98. }
  99. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  100. static int GetHashCode(IntPtr L)
  101. {
  102. try
  103. {
  104. ToLua.CheckArgsCount(L, 1);
  105. SuperScrollView.RowColumnPair obj = (SuperScrollView.RowColumnPair)ToLua.CheckObject(L, 1, typeof(SuperScrollView.RowColumnPair));
  106. int o = obj.GetHashCode();
  107. LuaDLL.lua_pushinteger(L, o);
  108. ToLua.SetBack(L, 1, obj);
  109. return 1;
  110. }
  111. catch (Exception e)
  112. {
  113. return LuaDLL.toluaL_exception(L, e);
  114. }
  115. }
  116. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  117. static int get_mRow(IntPtr L)
  118. {
  119. object o = null;
  120. try
  121. {
  122. o = ToLua.ToObject(L, 1);
  123. SuperScrollView.RowColumnPair obj = (SuperScrollView.RowColumnPair)o;
  124. int ret = obj.mRow;
  125. LuaDLL.lua_pushinteger(L, ret);
  126. return 1;
  127. }
  128. catch(Exception e)
  129. {
  130. return LuaDLL.toluaL_exception(L, e, o, "attempt to index mRow on a nil value");
  131. }
  132. }
  133. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  134. static int get_mColumn(IntPtr L)
  135. {
  136. object o = null;
  137. try
  138. {
  139. o = ToLua.ToObject(L, 1);
  140. SuperScrollView.RowColumnPair obj = (SuperScrollView.RowColumnPair)o;
  141. int ret = obj.mColumn;
  142. LuaDLL.lua_pushinteger(L, ret);
  143. return 1;
  144. }
  145. catch(Exception e)
  146. {
  147. return LuaDLL.toluaL_exception(L, e, o, "attempt to index mColumn on a nil value");
  148. }
  149. }
  150. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  151. static int set_mRow(IntPtr L)
  152. {
  153. object o = null;
  154. try
  155. {
  156. o = ToLua.ToObject(L, 1);
  157. SuperScrollView.RowColumnPair obj = (SuperScrollView.RowColumnPair)o;
  158. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  159. obj.mRow = arg0;
  160. ToLua.SetBack(L, 1, obj);
  161. return 0;
  162. }
  163. catch(Exception e)
  164. {
  165. return LuaDLL.toluaL_exception(L, e, o, "attempt to index mRow on a nil value");
  166. }
  167. }
  168. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  169. static int set_mColumn(IntPtr L)
  170. {
  171. object o = null;
  172. try
  173. {
  174. o = ToLua.ToObject(L, 1);
  175. SuperScrollView.RowColumnPair obj = (SuperScrollView.RowColumnPair)o;
  176. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  177. obj.mColumn = arg0;
  178. ToLua.SetBack(L, 1, obj);
  179. return 0;
  180. }
  181. catch(Exception e)
  182. {
  183. return LuaDLL.toluaL_exception(L, e, o, "attempt to index mColumn on a nil value");
  184. }
  185. }
  186. }