Contents

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