示例#1
0
 public override bool CheckMouse(Point cursor)
 {
     if (CustomShapes.RoundedRect(this.TrickUp, this.CornerRadius).IsVisible(cursor))
     {
         return(true);
     }
     else if (CustomShapes.RoundedRect(this.TrickDown, this.CornerRadius).IsVisible(cursor))
     {
         return(true);
     }
     else if (CustomShapes.RoundedRect(this.TrickLeft, this.CornerRadius).IsVisible(cursor))
     {
         return(true);
     }
     else if (CustomShapes.RoundedRect(this.TrickRight, this.CornerRadius).IsVisible(cursor))
     {
         return(true);
     }
     return(false);
 }
示例#2
0
 public override bool CheckMouse(Point cursor)
 {
     return(CustomShapes.RoundedRect(new Rectangle(new Point(this.Coords.X, this.Coords.Y), this.Size), this.CornerRadius).IsVisible(cursor));
 }
示例#3
0
 public override bool CheckMouse(Point cursor)
 {
     return(CustomShapes.CreateOctagon(new Point(this.Coords.X, this.Coords.Y), this.Radius).IsVisible(cursor));
 }
示例#4
0
        public override bool CheckMouse(Point cursor)
        {
            int thickness = (int)(this.ThicknessFraction * this.Size);

            return(CustomShapes.Plus(new Rectangle(new Point(Coords.X, Coords.Y), new Size(this.Size, this.Size)), thickness, this.CornerRadius).IsVisible(cursor));
        }