Ejemplo n.º 1
0
 public bool HitTestWithMarginX(int x, GuiLabs.Canvas.DrawStyle.FourSideValues margins)
 {
     return(
         (x >= this.Location.X - margins.Left) &&
         (x <= this.Right + margins.Right)
         );
 }
Ejemplo n.º 2
0
 public bool HitTestWithMarginY(int y, GuiLabs.Canvas.DrawStyle.FourSideValues margins)
 {
     return(
         (y >= this.Location.Y - margins.Top) &&
         (y <= this.Bottom + margins.Bottom)
         );
 }
Ejemplo n.º 3
0
 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)
         );
 }