Affects() 공개 메소드

Whether the specified widget is going to be affected by this panel in any way.
public Affects ( UIWidget, w ) : bool
w UIWidget,
리턴 bool
예제 #1
0
 static public int Affects(IntPtr l)
 {
     try {
         UIPanel  self = (UIPanel)checkSelf(l);
         UIWidget a1;
         checkType(l, 2, out a1);
         var ret = self.Affects(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
예제 #2
0
 static int Affects(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UIPanel  obj  = (UIPanel)ToLua.CheckObject <UIPanel>(L, 1);
         UIWidget arg0 = (UIWidget)ToLua.CheckObject <UIWidget>(L, 2);
         bool     o    = obj.Affects(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }