FindDrawCall() public method

Insert the specified widget into one of the existing draw calls if possible. If it's not possible, and a new draw call is required, 'null' is returned because draw call creation is a delayed operation.
public FindDrawCall ( UIWidget, w ) : UIDrawCall,
w UIWidget,
return UIDrawCall,
Exemplo n.º 1
0
 static public int FindDrawCall(IntPtr l)
 {
     try {
         UIPanel  self = (UIPanel)checkSelf(l);
         UIWidget a1;
         checkType(l, 2, out a1);
         var ret = self.FindDrawCall(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 2
0
 static int FindDrawCall(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UIPanel    obj  = (UIPanel)ToLua.CheckObject <UIPanel>(L, 1);
         UIWidget   arg0 = (UIWidget)ToLua.CheckObject <UIWidget>(L, 2);
         UIDrawCall o    = obj.FindDrawCall(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }