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