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.
-
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.
-
The X-coordinate of the rounded rectangle this RoundRectSegment belongs to.
Declaration
Swift
open var x: Double
-
The Y-coordinate of the rounded rectangle this RoundRectSegment belongs to.
Declaration
Swift
open var y: Double
-
The width of the rounded rectangle this RoundRectSegment belongs to.
Declaration
Swift
open var w: Double
-
The height of the rounded rectangle this RoundRectSegment belongs to.
Declaration
Swift
open var h: Double
-
The corner radius of the rounded rectangle this RoundRectSegment belongs to.
Declaration
Swift
open var r: Double