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); }
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)); }
public override bool CheckMouse(Point cursor) { return(CustomShapes.CreateOctagon(new Point(this.Coords.X, this.Coords.Y), this.Radius).IsVisible(cursor)); }
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)); }