RoundRectSegment

open class RoundRectSegment : ShapeSegment

Represents a segment in a rounded rectangle. This class inherits ShapeSegment.

  • Initializes a new instance of the RoundRectSegment class.

    Declaration

    Swift

    public override init()

    Return Value

    The newly created RoundRectSegment object.

  • Draws this RoundRectSegment on the specified canvas.

    Declaration

    Swift

    open override func draw(_ canvas: Canvas)

    Parameters

    canvas

    The canvas onto which the segment is drawn.

  • Adds this segment to the specified path.

    Declaration

    Swift

    open override func addToPath(_ path: GraphicsPath)

    Parameters

    path

    The GraphicsPath to add the segment to.

  • Loads this RoundRectSegment from the specified XmlElement.

    Declaration

    Swift

    open override func loadFromXml(_ element: XmlElement?)

    Parameters

    element

    The XmlElement to load the segment from.

  • x

    The X-coordinate of the rounded rectangle this RoundRectSegment belongs to.

    Declaration

    Swift

    open var x: Double
  • y

    The Y-coordinate of the rounded rectangle this RoundRectSegment belongs to.

    Declaration

    Swift

    open var y: Double
  • w

    The width of the rounded rectangle this RoundRectSegment belongs to.

    Declaration

    Swift

    open var w: Double
  • h

    The height of the rounded rectangle this RoundRectSegment belongs to.

    Declaration

    Swift

    open var h: Double
  • r

    The corner radius of the rounded rectangle this RoundRectSegment belongs to.

    Declaration

    Swift

    open var r: Double