CheckLayer() public method

Check to ensure that the widget resides on the same layer as its panel.
public CheckLayer ( ) : void
return void
コード例 #1
0
 static public int CheckLayer(IntPtr l)
 {
     try {
         UIWidget self = (UIWidget)checkSelf(l);
         self.CheckLayer();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #2
0
	static int CheckLayer(IntPtr L)
	{
		try
		{
			ToLua.CheckArgsCount(L, 1);
			UIWidget obj = (UIWidget)ToLua.CheckObject<UIWidget>(L, 1);
			obj.CheckLayer();
			return 0;
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}