SlideHorizontalOrVerticalLayoutGroupWrap.cs 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class SlideHorizontalOrVerticalLayoutGroupWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(SlideHorizontalOrVerticalLayoutGroup), typeof(UnityEngine.UI.LayoutGroup));
  9. L.RegFunction("CalculateLayoutInputHorizontal", CalculateLayoutInputHorizontal);
  10. L.RegFunction("__eq", op_Equality);
  11. L.RegFunction("__tostring", ToLua.op_ToString);
  12. L.RegVar("spacing", get_spacing, set_spacing);
  13. L.RegVar("childForceExpandWidth", get_childForceExpandWidth, set_childForceExpandWidth);
  14. L.RegVar("childForceExpandHeight", get_childForceExpandHeight, set_childForceExpandHeight);
  15. L.RegVar("childControlWidth", get_childControlWidth, set_childControlWidth);
  16. L.RegVar("childControlHeight", get_childControlHeight, set_childControlHeight);
  17. L.RegVar("snapEnable", get_snapEnable, set_snapEnable);
  18. L.RegVar("inverseChildPosEnable", get_inverseChildPosEnable, set_inverseChildPosEnable);
  19. L.RegVar("invisibleVaild", get_invisibleVaild, set_invisibleVaild);
  20. L.RegVar("slideTargePosDic", get_slideTargePosDic, null);
  21. L.EndClass();
  22. }
  23. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  24. static int CalculateLayoutInputHorizontal(IntPtr L)
  25. {
  26. try
  27. {
  28. ToLua.CheckArgsCount(L, 1);
  29. SlideHorizontalOrVerticalLayoutGroup obj = (SlideHorizontalOrVerticalLayoutGroup)ToLua.CheckObject<SlideHorizontalOrVerticalLayoutGroup>(L, 1);
  30. obj.CalculateLayoutInputHorizontal();
  31. return 0;
  32. }
  33. catch (Exception e)
  34. {
  35. return LuaDLL.toluaL_exception(L, e);
  36. }
  37. }
  38. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  39. static int op_Equality(IntPtr L)
  40. {
  41. try
  42. {
  43. ToLua.CheckArgsCount(L, 2);
  44. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  45. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  46. bool o = arg0 == arg1;
  47. LuaDLL.lua_pushboolean(L, o);
  48. return 1;
  49. }
  50. catch (Exception e)
  51. {
  52. return LuaDLL.toluaL_exception(L, e);
  53. }
  54. }
  55. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  56. static int get_spacing(IntPtr L)
  57. {
  58. object o = null;
  59. try
  60. {
  61. o = ToLua.ToObject(L, 1);
  62. SlideHorizontalOrVerticalLayoutGroup obj = (SlideHorizontalOrVerticalLayoutGroup)o;
  63. float ret = obj.spacing;
  64. LuaDLL.lua_pushnumber(L, ret);
  65. return 1;
  66. }
  67. catch(Exception e)
  68. {
  69. return LuaDLL.toluaL_exception(L, e, o, "attempt to index spacing on a nil value");
  70. }
  71. }
  72. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  73. static int get_childForceExpandWidth(IntPtr L)
  74. {
  75. object o = null;
  76. try
  77. {
  78. o = ToLua.ToObject(L, 1);
  79. SlideHorizontalOrVerticalLayoutGroup obj = (SlideHorizontalOrVerticalLayoutGroup)o;
  80. bool ret = obj.childForceExpandWidth;
  81. LuaDLL.lua_pushboolean(L, ret);
  82. return 1;
  83. }
  84. catch(Exception e)
  85. {
  86. return LuaDLL.toluaL_exception(L, e, o, "attempt to index childForceExpandWidth on a nil value");
  87. }
  88. }
  89. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  90. static int get_childForceExpandHeight(IntPtr L)
  91. {
  92. object o = null;
  93. try
  94. {
  95. o = ToLua.ToObject(L, 1);
  96. SlideHorizontalOrVerticalLayoutGroup obj = (SlideHorizontalOrVerticalLayoutGroup)o;
  97. bool ret = obj.childForceExpandHeight;
  98. LuaDLL.lua_pushboolean(L, ret);
  99. return 1;
  100. }
  101. catch(Exception e)
  102. {
  103. return LuaDLL.toluaL_exception(L, e, o, "attempt to index childForceExpandHeight on a nil value");
  104. }
  105. }
  106. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  107. static int get_childControlWidth(IntPtr L)
  108. {
  109. object o = null;
  110. try
  111. {
  112. o = ToLua.ToObject(L, 1);
  113. SlideHorizontalOrVerticalLayoutGroup obj = (SlideHorizontalOrVerticalLayoutGroup)o;
  114. bool ret = obj.childControlWidth;
  115. LuaDLL.lua_pushboolean(L, ret);
  116. return 1;
  117. }
  118. catch(Exception e)
  119. {
  120. return LuaDLL.toluaL_exception(L, e, o, "attempt to index childControlWidth on a nil value");
  121. }
  122. }
  123. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  124. static int get_childControlHeight(IntPtr L)
  125. {
  126. object o = null;
  127. try
  128. {
  129. o = ToLua.ToObject(L, 1);
  130. SlideHorizontalOrVerticalLayoutGroup obj = (SlideHorizontalOrVerticalLayoutGroup)o;
  131. bool ret = obj.childControlHeight;
  132. LuaDLL.lua_pushboolean(L, ret);
  133. return 1;
  134. }
  135. catch(Exception e)
  136. {
  137. return LuaDLL.toluaL_exception(L, e, o, "attempt to index childControlHeight on a nil value");
  138. }
  139. }
  140. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  141. static int get_snapEnable(IntPtr L)
  142. {
  143. object o = null;
  144. try
  145. {
  146. o = ToLua.ToObject(L, 1);
  147. SlideHorizontalOrVerticalLayoutGroup obj = (SlideHorizontalOrVerticalLayoutGroup)o;
  148. bool ret = obj.snapEnable;
  149. LuaDLL.lua_pushboolean(L, ret);
  150. return 1;
  151. }
  152. catch(Exception e)
  153. {
  154. return LuaDLL.toluaL_exception(L, e, o, "attempt to index snapEnable on a nil value");
  155. }
  156. }
  157. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  158. static int get_inverseChildPosEnable(IntPtr L)
  159. {
  160. object o = null;
  161. try
  162. {
  163. o = ToLua.ToObject(L, 1);
  164. SlideHorizontalOrVerticalLayoutGroup obj = (SlideHorizontalOrVerticalLayoutGroup)o;
  165. bool ret = obj.inverseChildPosEnable;
  166. LuaDLL.lua_pushboolean(L, ret);
  167. return 1;
  168. }
  169. catch(Exception e)
  170. {
  171. return LuaDLL.toluaL_exception(L, e, o, "attempt to index inverseChildPosEnable on a nil value");
  172. }
  173. }
  174. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  175. static int get_invisibleVaild(IntPtr L)
  176. {
  177. object o = null;
  178. try
  179. {
  180. o = ToLua.ToObject(L, 1);
  181. SlideHorizontalOrVerticalLayoutGroup obj = (SlideHorizontalOrVerticalLayoutGroup)o;
  182. bool ret = obj.invisibleVaild;
  183. LuaDLL.lua_pushboolean(L, ret);
  184. return 1;
  185. }
  186. catch(Exception e)
  187. {
  188. return LuaDLL.toluaL_exception(L, e, o, "attempt to index invisibleVaild on a nil value");
  189. }
  190. }
  191. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  192. static int get_slideTargePosDic(IntPtr L)
  193. {
  194. object o = null;
  195. try
  196. {
  197. o = ToLua.ToObject(L, 1);
  198. SlideHorizontalOrVerticalLayoutGroup obj = (SlideHorizontalOrVerticalLayoutGroup)o;
  199. System.Collections.Generic.Dictionary<UnityEngine.Transform,UnityEngine.Vector3> ret = obj.slideTargePosDic;
  200. ToLua.PushSealed(L, ret);
  201. return 1;
  202. }
  203. catch(Exception e)
  204. {
  205. return LuaDLL.toluaL_exception(L, e, o, "attempt to index slideTargePosDic on a nil value");
  206. }
  207. }
  208. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  209. static int set_spacing(IntPtr L)
  210. {
  211. object o = null;
  212. try
  213. {
  214. o = ToLua.ToObject(L, 1);
  215. SlideHorizontalOrVerticalLayoutGroup obj = (SlideHorizontalOrVerticalLayoutGroup)o;
  216. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  217. obj.spacing = arg0;
  218. return 0;
  219. }
  220. catch(Exception e)
  221. {
  222. return LuaDLL.toluaL_exception(L, e, o, "attempt to index spacing on a nil value");
  223. }
  224. }
  225. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  226. static int set_childForceExpandWidth(IntPtr L)
  227. {
  228. object o = null;
  229. try
  230. {
  231. o = ToLua.ToObject(L, 1);
  232. SlideHorizontalOrVerticalLayoutGroup obj = (SlideHorizontalOrVerticalLayoutGroup)o;
  233. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  234. obj.childForceExpandWidth = arg0;
  235. return 0;
  236. }
  237. catch(Exception e)
  238. {
  239. return LuaDLL.toluaL_exception(L, e, o, "attempt to index childForceExpandWidth on a nil value");
  240. }
  241. }
  242. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  243. static int set_childForceExpandHeight(IntPtr L)
  244. {
  245. object o = null;
  246. try
  247. {
  248. o = ToLua.ToObject(L, 1);
  249. SlideHorizontalOrVerticalLayoutGroup obj = (SlideHorizontalOrVerticalLayoutGroup)o;
  250. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  251. obj.childForceExpandHeight = arg0;
  252. return 0;
  253. }
  254. catch(Exception e)
  255. {
  256. return LuaDLL.toluaL_exception(L, e, o, "attempt to index childForceExpandHeight on a nil value");
  257. }
  258. }
  259. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  260. static int set_childControlWidth(IntPtr L)
  261. {
  262. object o = null;
  263. try
  264. {
  265. o = ToLua.ToObject(L, 1);
  266. SlideHorizontalOrVerticalLayoutGroup obj = (SlideHorizontalOrVerticalLayoutGroup)o;
  267. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  268. obj.childControlWidth = arg0;
  269. return 0;
  270. }
  271. catch(Exception e)
  272. {
  273. return LuaDLL.toluaL_exception(L, e, o, "attempt to index childControlWidth on a nil value");
  274. }
  275. }
  276. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  277. static int set_childControlHeight(IntPtr L)
  278. {
  279. object o = null;
  280. try
  281. {
  282. o = ToLua.ToObject(L, 1);
  283. SlideHorizontalOrVerticalLayoutGroup obj = (SlideHorizontalOrVerticalLayoutGroup)o;
  284. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  285. obj.childControlHeight = arg0;
  286. return 0;
  287. }
  288. catch(Exception e)
  289. {
  290. return LuaDLL.toluaL_exception(L, e, o, "attempt to index childControlHeight on a nil value");
  291. }
  292. }
  293. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  294. static int set_snapEnable(IntPtr L)
  295. {
  296. object o = null;
  297. try
  298. {
  299. o = ToLua.ToObject(L, 1);
  300. SlideHorizontalOrVerticalLayoutGroup obj = (SlideHorizontalOrVerticalLayoutGroup)o;
  301. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  302. obj.snapEnable = arg0;
  303. return 0;
  304. }
  305. catch(Exception e)
  306. {
  307. return LuaDLL.toluaL_exception(L, e, o, "attempt to index snapEnable on a nil value");
  308. }
  309. }
  310. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  311. static int set_inverseChildPosEnable(IntPtr L)
  312. {
  313. object o = null;
  314. try
  315. {
  316. o = ToLua.ToObject(L, 1);
  317. SlideHorizontalOrVerticalLayoutGroup obj = (SlideHorizontalOrVerticalLayoutGroup)o;
  318. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  319. obj.inverseChildPosEnable = arg0;
  320. return 0;
  321. }
  322. catch(Exception e)
  323. {
  324. return LuaDLL.toluaL_exception(L, e, o, "attempt to index inverseChildPosEnable on a nil value");
  325. }
  326. }
  327. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  328. static int set_invisibleVaild(IntPtr L)
  329. {
  330. object o = null;
  331. try
  332. {
  333. o = ToLua.ToObject(L, 1);
  334. SlideHorizontalOrVerticalLayoutGroup obj = (SlideHorizontalOrVerticalLayoutGroup)o;
  335. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  336. obj.invisibleVaild = arg0;
  337. return 0;
  338. }
  339. catch(Exception e)
  340. {
  341. return LuaDLL.toluaL_exception(L, e, o, "attempt to index invisibleVaild on a nil value");
  342. }
  343. }
  344. }