public bool HitTestWithMarginX(int x, GuiLabs.Canvas.DrawStyle.FourSideValues margins) { return( (x >= this.Location.X - margins.Left) && (x <= this.Right + margins.Right) ); }
public bool HitTestWithMarginY(int y, GuiLabs.Canvas.DrawStyle.FourSideValues margins) { return( (y >= this.Location.Y - margins.Top) && (y <= this.Bottom + margins.Bottom) ); }
public bool HitTestWithMargin(int x, int y, GuiLabs.Canvas.DrawStyle.FourSideValues margins) { return( (x >= this.Left - margins.Left) && (x <= this.Right + margins.Right) && (y >= this.Top - margins.Top) && (y <= this.Bottom + margins.Bottom) ); }