RO_ReorderableListWrap.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class RO_ReorderableListWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(RO.ReorderableList), typeof(UnityEngine.MonoBehaviour), "ReorderableList");
  9. L.RegFunction("GetCanvas", GetCanvas);
  10. L.RegFunction("TestReOrderableListTarget", TestReOrderableListTarget);
  11. L.RegFunction("__eq", op_Equality);
  12. L.RegFunction("__tostring", ToLua.op_ToString);
  13. L.RegVar("ContentLayout", get_ContentLayout, set_ContentLayout);
  14. L.RegVar("DraggableArea", get_DraggableArea, set_DraggableArea);
  15. L.RegVar("IsDraggable", get_IsDraggable, set_IsDraggable);
  16. L.RegVar("CloneDraggedObject", get_CloneDraggedObject, set_CloneDraggedObject);
  17. L.RegVar("IsDropable", get_IsDropable, set_IsDropable);
  18. L.RegVar("OnElementDropped", get_OnElementDropped, set_OnElementDropped);
  19. L.RegVar("OnElementGrabbed", get_OnElementGrabbed, set_OnElementGrabbed);
  20. L.RegVar("OnElementRemoved", get_OnElementRemoved, set_OnElementRemoved);
  21. L.RegVar("OnElementSiblingChanged", get_OnElementSiblingChanged, set_OnElementSiblingChanged);
  22. L.RegVar("OnElementEndDrag", get_OnElementEndDrag, set_OnElementEndDrag);
  23. L.RegVar("Content", get_Content, null);
  24. L.RegVar("isDragging", get_isDragging, set_isDragging);
  25. L.EndClass();
  26. }
  27. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  28. static int GetCanvas(IntPtr L)
  29. {
  30. try
  31. {
  32. ToLua.CheckArgsCount(L, 1);
  33. RO.ReorderableList obj = (RO.ReorderableList)ToLua.CheckObject<RO.ReorderableList>(L, 1);
  34. UnityEngine.Canvas o = obj.GetCanvas();
  35. ToLua.PushSealed(L, o);
  36. return 1;
  37. }
  38. catch (Exception e)
  39. {
  40. return LuaDLL.toluaL_exception(L, e);
  41. }
  42. }
  43. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  44. static int TestReOrderableListTarget(IntPtr L)
  45. {
  46. try
  47. {
  48. ToLua.CheckArgsCount(L, 2);
  49. RO.ReorderableList obj = (RO.ReorderableList)ToLua.CheckObject<RO.ReorderableList>(L, 1);
  50. RO.ReorderableList.ReorderableListEventStruct arg0 = StackTraits<RO.ReorderableList.ReorderableListEventStruct>.Check(L, 2);
  51. obj.TestReOrderableListTarget(arg0);
  52. return 0;
  53. }
  54. catch (Exception e)
  55. {
  56. return LuaDLL.toluaL_exception(L, e);
  57. }
  58. }
  59. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  60. static int op_Equality(IntPtr L)
  61. {
  62. try
  63. {
  64. ToLua.CheckArgsCount(L, 2);
  65. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  66. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  67. bool o = arg0 == arg1;
  68. LuaDLL.lua_pushboolean(L, o);
  69. return 1;
  70. }
  71. catch (Exception e)
  72. {
  73. return LuaDLL.toluaL_exception(L, e);
  74. }
  75. }
  76. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  77. static int get_ContentLayout(IntPtr L)
  78. {
  79. object o = null;
  80. try
  81. {
  82. o = ToLua.ToObject(L, 1);
  83. RO.ReorderableList obj = (RO.ReorderableList)o;
  84. UnityEngine.UI.LayoutGroup ret = obj.ContentLayout;
  85. ToLua.Push(L, ret);
  86. return 1;
  87. }
  88. catch(Exception e)
  89. {
  90. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ContentLayout on a nil value");
  91. }
  92. }
  93. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  94. static int get_DraggableArea(IntPtr L)
  95. {
  96. object o = null;
  97. try
  98. {
  99. o = ToLua.ToObject(L, 1);
  100. RO.ReorderableList obj = (RO.ReorderableList)o;
  101. UnityEngine.RectTransform ret = obj.DraggableArea;
  102. ToLua.PushSealed(L, ret);
  103. return 1;
  104. }
  105. catch(Exception e)
  106. {
  107. return LuaDLL.toluaL_exception(L, e, o, "attempt to index DraggableArea on a nil value");
  108. }
  109. }
  110. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  111. static int get_IsDraggable(IntPtr L)
  112. {
  113. object o = null;
  114. try
  115. {
  116. o = ToLua.ToObject(L, 1);
  117. RO.ReorderableList obj = (RO.ReorderableList)o;
  118. bool ret = obj.IsDraggable;
  119. LuaDLL.lua_pushboolean(L, ret);
  120. return 1;
  121. }
  122. catch(Exception e)
  123. {
  124. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsDraggable on a nil value");
  125. }
  126. }
  127. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  128. static int get_CloneDraggedObject(IntPtr L)
  129. {
  130. object o = null;
  131. try
  132. {
  133. o = ToLua.ToObject(L, 1);
  134. RO.ReorderableList obj = (RO.ReorderableList)o;
  135. bool ret = obj.CloneDraggedObject;
  136. LuaDLL.lua_pushboolean(L, ret);
  137. return 1;
  138. }
  139. catch(Exception e)
  140. {
  141. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CloneDraggedObject on a nil value");
  142. }
  143. }
  144. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  145. static int get_IsDropable(IntPtr L)
  146. {
  147. object o = null;
  148. try
  149. {
  150. o = ToLua.ToObject(L, 1);
  151. RO.ReorderableList obj = (RO.ReorderableList)o;
  152. bool ret = obj.IsDropable;
  153. LuaDLL.lua_pushboolean(L, ret);
  154. return 1;
  155. }
  156. catch(Exception e)
  157. {
  158. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsDropable on a nil value");
  159. }
  160. }
  161. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  162. static int get_OnElementDropped(IntPtr L)
  163. {
  164. object o = null;
  165. try
  166. {
  167. o = ToLua.ToObject(L, 1);
  168. RO.ReorderableList obj = (RO.ReorderableList)o;
  169. RO.ReorderableList.ReorderableListHandler ret = obj.OnElementDropped;
  170. ToLua.PushObject(L, ret);
  171. return 1;
  172. }
  173. catch(Exception e)
  174. {
  175. return LuaDLL.toluaL_exception(L, e, o, "attempt to index OnElementDropped on a nil value");
  176. }
  177. }
  178. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  179. static int get_OnElementGrabbed(IntPtr L)
  180. {
  181. object o = null;
  182. try
  183. {
  184. o = ToLua.ToObject(L, 1);
  185. RO.ReorderableList obj = (RO.ReorderableList)o;
  186. RO.ReorderableList.ReorderableListHandler ret = obj.OnElementGrabbed;
  187. ToLua.PushObject(L, ret);
  188. return 1;
  189. }
  190. catch(Exception e)
  191. {
  192. return LuaDLL.toluaL_exception(L, e, o, "attempt to index OnElementGrabbed on a nil value");
  193. }
  194. }
  195. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  196. static int get_OnElementRemoved(IntPtr L)
  197. {
  198. object o = null;
  199. try
  200. {
  201. o = ToLua.ToObject(L, 1);
  202. RO.ReorderableList obj = (RO.ReorderableList)o;
  203. RO.ReorderableList.ReorderableListHandler ret = obj.OnElementRemoved;
  204. ToLua.PushObject(L, ret);
  205. return 1;
  206. }
  207. catch(Exception e)
  208. {
  209. return LuaDLL.toluaL_exception(L, e, o, "attempt to index OnElementRemoved on a nil value");
  210. }
  211. }
  212. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  213. static int get_OnElementSiblingChanged(IntPtr L)
  214. {
  215. object o = null;
  216. try
  217. {
  218. o = ToLua.ToObject(L, 1);
  219. RO.ReorderableList obj = (RO.ReorderableList)o;
  220. RO.ReorderableList.ReorderableListHandler ret = obj.OnElementSiblingChanged;
  221. ToLua.PushObject(L, ret);
  222. return 1;
  223. }
  224. catch(Exception e)
  225. {
  226. return LuaDLL.toluaL_exception(L, e, o, "attempt to index OnElementSiblingChanged on a nil value");
  227. }
  228. }
  229. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  230. static int get_OnElementEndDrag(IntPtr L)
  231. {
  232. object o = null;
  233. try
  234. {
  235. o = ToLua.ToObject(L, 1);
  236. RO.ReorderableList obj = (RO.ReorderableList)o;
  237. UnityEngine.Events.UnityEvent ret = obj.OnElementEndDrag;
  238. ToLua.PushObject(L, ret);
  239. return 1;
  240. }
  241. catch(Exception e)
  242. {
  243. return LuaDLL.toluaL_exception(L, e, o, "attempt to index OnElementEndDrag on a nil value");
  244. }
  245. }
  246. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  247. static int get_Content(IntPtr L)
  248. {
  249. object o = null;
  250. try
  251. {
  252. o = ToLua.ToObject(L, 1);
  253. RO.ReorderableList obj = (RO.ReorderableList)o;
  254. UnityEngine.RectTransform ret = obj.Content;
  255. ToLua.PushSealed(L, ret);
  256. return 1;
  257. }
  258. catch(Exception e)
  259. {
  260. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Content on a nil value");
  261. }
  262. }
  263. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  264. static int get_isDragging(IntPtr L)
  265. {
  266. object o = null;
  267. try
  268. {
  269. o = ToLua.ToObject(L, 1);
  270. RO.ReorderableList obj = (RO.ReorderableList)o;
  271. bool ret = obj.isDragging;
  272. LuaDLL.lua_pushboolean(L, ret);
  273. return 1;
  274. }
  275. catch(Exception e)
  276. {
  277. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isDragging on a nil value");
  278. }
  279. }
  280. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  281. static int set_ContentLayout(IntPtr L)
  282. {
  283. object o = null;
  284. try
  285. {
  286. o = ToLua.ToObject(L, 1);
  287. RO.ReorderableList obj = (RO.ReorderableList)o;
  288. UnityEngine.UI.LayoutGroup arg0 = (UnityEngine.UI.LayoutGroup)ToLua.CheckObject<UnityEngine.UI.LayoutGroup>(L, 2);
  289. obj.ContentLayout = arg0;
  290. return 0;
  291. }
  292. catch(Exception e)
  293. {
  294. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ContentLayout on a nil value");
  295. }
  296. }
  297. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  298. static int set_DraggableArea(IntPtr L)
  299. {
  300. object o = null;
  301. try
  302. {
  303. o = ToLua.ToObject(L, 1);
  304. RO.ReorderableList obj = (RO.ReorderableList)o;
  305. UnityEngine.RectTransform arg0 = (UnityEngine.RectTransform)ToLua.CheckObject(L, 2, typeof(UnityEngine.RectTransform));
  306. obj.DraggableArea = arg0;
  307. return 0;
  308. }
  309. catch(Exception e)
  310. {
  311. return LuaDLL.toluaL_exception(L, e, o, "attempt to index DraggableArea on a nil value");
  312. }
  313. }
  314. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  315. static int set_IsDraggable(IntPtr L)
  316. {
  317. object o = null;
  318. try
  319. {
  320. o = ToLua.ToObject(L, 1);
  321. RO.ReorderableList obj = (RO.ReorderableList)o;
  322. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  323. obj.IsDraggable = arg0;
  324. return 0;
  325. }
  326. catch(Exception e)
  327. {
  328. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsDraggable on a nil value");
  329. }
  330. }
  331. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  332. static int set_CloneDraggedObject(IntPtr L)
  333. {
  334. object o = null;
  335. try
  336. {
  337. o = ToLua.ToObject(L, 1);
  338. RO.ReorderableList obj = (RO.ReorderableList)o;
  339. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  340. obj.CloneDraggedObject = arg0;
  341. return 0;
  342. }
  343. catch(Exception e)
  344. {
  345. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CloneDraggedObject on a nil value");
  346. }
  347. }
  348. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  349. static int set_IsDropable(IntPtr L)
  350. {
  351. object o = null;
  352. try
  353. {
  354. o = ToLua.ToObject(L, 1);
  355. RO.ReorderableList obj = (RO.ReorderableList)o;
  356. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  357. obj.IsDropable = arg0;
  358. return 0;
  359. }
  360. catch(Exception e)
  361. {
  362. return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsDropable on a nil value");
  363. }
  364. }
  365. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  366. static int set_OnElementDropped(IntPtr L)
  367. {
  368. object o = null;
  369. try
  370. {
  371. o = ToLua.ToObject(L, 1);
  372. RO.ReorderableList obj = (RO.ReorderableList)o;
  373. RO.ReorderableList.ReorderableListHandler arg0 = (RO.ReorderableList.ReorderableListHandler)ToLua.CheckObject<RO.ReorderableList.ReorderableListHandler>(L, 2);
  374. obj.OnElementDropped = arg0;
  375. return 0;
  376. }
  377. catch(Exception e)
  378. {
  379. return LuaDLL.toluaL_exception(L, e, o, "attempt to index OnElementDropped on a nil value");
  380. }
  381. }
  382. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  383. static int set_OnElementGrabbed(IntPtr L)
  384. {
  385. object o = null;
  386. try
  387. {
  388. o = ToLua.ToObject(L, 1);
  389. RO.ReorderableList obj = (RO.ReorderableList)o;
  390. RO.ReorderableList.ReorderableListHandler arg0 = (RO.ReorderableList.ReorderableListHandler)ToLua.CheckObject<RO.ReorderableList.ReorderableListHandler>(L, 2);
  391. obj.OnElementGrabbed = arg0;
  392. return 0;
  393. }
  394. catch(Exception e)
  395. {
  396. return LuaDLL.toluaL_exception(L, e, o, "attempt to index OnElementGrabbed on a nil value");
  397. }
  398. }
  399. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  400. static int set_OnElementRemoved(IntPtr L)
  401. {
  402. object o = null;
  403. try
  404. {
  405. o = ToLua.ToObject(L, 1);
  406. RO.ReorderableList obj = (RO.ReorderableList)o;
  407. RO.ReorderableList.ReorderableListHandler arg0 = (RO.ReorderableList.ReorderableListHandler)ToLua.CheckObject<RO.ReorderableList.ReorderableListHandler>(L, 2);
  408. obj.OnElementRemoved = arg0;
  409. return 0;
  410. }
  411. catch(Exception e)
  412. {
  413. return LuaDLL.toluaL_exception(L, e, o, "attempt to index OnElementRemoved on a nil value");
  414. }
  415. }
  416. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  417. static int set_OnElementSiblingChanged(IntPtr L)
  418. {
  419. object o = null;
  420. try
  421. {
  422. o = ToLua.ToObject(L, 1);
  423. RO.ReorderableList obj = (RO.ReorderableList)o;
  424. RO.ReorderableList.ReorderableListHandler arg0 = (RO.ReorderableList.ReorderableListHandler)ToLua.CheckObject<RO.ReorderableList.ReorderableListHandler>(L, 2);
  425. obj.OnElementSiblingChanged = arg0;
  426. return 0;
  427. }
  428. catch(Exception e)
  429. {
  430. return LuaDLL.toluaL_exception(L, e, o, "attempt to index OnElementSiblingChanged on a nil value");
  431. }
  432. }
  433. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  434. static int set_OnElementEndDrag(IntPtr L)
  435. {
  436. object o = null;
  437. try
  438. {
  439. o = ToLua.ToObject(L, 1);
  440. RO.ReorderableList obj = (RO.ReorderableList)o;
  441. UnityEngine.Events.UnityEvent arg0 = (UnityEngine.Events.UnityEvent)ToLua.CheckObject<UnityEngine.Events.UnityEvent>(L, 2);
  442. obj.OnElementEndDrag = arg0;
  443. return 0;
  444. }
  445. catch(Exception e)
  446. {
  447. return LuaDLL.toluaL_exception(L, e, o, "attempt to index OnElementEndDrag on a nil value");
  448. }
  449. }
  450. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  451. static int set_isDragging(IntPtr L)
  452. {
  453. object o = null;
  454. try
  455. {
  456. o = ToLua.ToObject(L, 1);
  457. RO.ReorderableList obj = (RO.ReorderableList)o;
  458. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  459. obj.isDragging = arg0;
  460. return 0;
  461. }
  462. catch(Exception e)
  463. {
  464. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isDragging on a nil value");
  465. }
  466. }
  467. }