appendRect(_:)
Appends a rectangular path to the path.
Declaration
func appendRect(_ rect: NSRect)Parameters
- rect:
The rectangle describing the path to create.
Discussion
Before adding the rectangle, this method moves the current point to the origin of the rectangle, which implicitly closes the current subpath (if any). The path is constructed by starting at the origin of aRect and adding line segments in a counterclockwise direction. The final segment is added using a close() message.
See Also
Related Documentation
Appending Common Shapes to a Path
append(_:)appendPoints(_:count:)appendOval(in:)appendArc(from:to:radius:)appendArc(withCenter:radius:startAngle:endAngle:)appendArc(withCenter:radius:startAngle:endAngle:clockwise:)appendRoundedRect(_:xRadius:yRadius:)append(withCGGlyph:in:)append(withCGGlyphs:count:in:)appendGlyph(_:in:)appendGlyphs(_:count:in:)appendPackedGlyphs(_:)