Example #1
0
 static public int set_onDataSourceAdapterHandler(IntPtr l)
 {
     try {
         Lui.LGridView self = (Lui.LGridView)checkSelf(l);
         Lui.LScrollView.LDataSourceAdapter <Lui.LGridViewCell, System.Int32> v;
         int op = LuaDelegation.checkDelegate(l, 2, out v);
         if (op == 0)
         {
             self.onDataSourceAdapterHandler = v;
         }
         else if (op == 1)
         {
             self.onDataSourceAdapterHandler += v;
         }
         else if (op == 2)
         {
             self.onDataSourceAdapterHandler -= v;
         }
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int removeAllFromFreed(IntPtr l)
 {
     try {
         Lui.LGridView self = (Lui.LGridView)checkSelf(l);
         self.removeAllFromFreed();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int get_autoRelocate(IntPtr l)
 {
     try {
         Lui.LGridView self = (Lui.LGridView)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.autoRelocate);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int get_cellsCount(IntPtr l)
 {
     try {
         Lui.LGridView self = (Lui.LGridView)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.cellsCount);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int constructor(IntPtr l)
 {
     try {
         Lui.LGridView o;
         o = new Lui.LGridView();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int getCells(IntPtr l)
 {
     try {
         Lui.LGridView self = (Lui.LGridView)checkSelf(l);
         var           ret  = self.getCells();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #7
0
 public static int constructor(IntPtr l)
 {
     try {
         Lui.LGridView o;
         o=new Lui.LGridView();
         pushValue(l,true);
         pushValue(l,o);
         return 2;
     }
     catch(Exception e) {
         return error(l,e);
     }
 }
 static public int set_autoRelocate(IntPtr l)
 {
     try {
         Lui.LGridView  self = (Lui.LGridView)checkSelf(l);
         System.Boolean v;
         checkType(l, 2, out v);
         self.autoRelocate = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_cols(IntPtr l)
 {
     try {
         Lui.LGridView self = (Lui.LGridView)checkSelf(l);
         System.Int32  v;
         checkType(l, 2, out v);
         self.cols = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #10
0
 static public int SetCellHandle(IntPtr l)
 {
     try {
         Lui.LGridView self = (Lui.LGridView)checkSelf(l);
         UnityEngine.Events.UnityAction <System.Int32, UnityEngine.GameObject> a1;
         LuaDelegation.checkDelegate(l, 2, out a1);
         self.SetCellHandle(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #11
0
 static public int set_cellsSize(IntPtr l)
 {
     try {
         Lui.LGridView       self = (Lui.LGridView)checkSelf(l);
         UnityEngine.Vector2 v;
         checkType(l, 2, out v);
         self.cellsSize = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #12
0
 static public int set_cellTemplate(IntPtr l)
 {
     try {
         Lui.LGridView     self = (Lui.LGridView)checkSelf(l);
         Lui.LGridViewCell v;
         checkType(l, 2, out v);
         self.cellTemplate = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #13
0
 static public int cellAtIndex(IntPtr l)
 {
     try {
         Lui.LGridView self = (Lui.LGridView)checkSelf(l);
         System.Int32  a1;
         checkType(l, 2, out a1);
         var ret = self.cellAtIndex(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #14
0
 static public int updateCellAtIndex(IntPtr l)
 {
     try {
         Lui.LGridView self = (Lui.LGridView)checkSelf(l);
         System.Int32  a1;
         checkType(l, 2, out a1);
         System.Int32 a2;
         checkType(l, 3, out a2);
         self.updateCellAtIndex(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #15
0
 static public int insertSortableCell(IntPtr l)
 {
     try {
         Lui.LGridView     self = (Lui.LGridView)checkSelf(l);
         Lui.LGridViewCell a1;
         checkType(l, 2, out a1);
         System.Int32 a2;
         checkType(l, 3, out a2);
         self.insertSortableCell(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }