Affects() public method

Whether the specified widget is going to be affected by this panel in any way.
public Affects ( UIWidget, w ) : bool
w UIWidget,
return bool
Example #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));
     }
 }
 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));
     }
 }