Instance Property

reversed

A path containing the reversed contents of the current path object.

Declaration

@NSCopying var reversed: NSBezierPath { get }

Discussion

The reversed path does not necessarily have a different appearance when rendered. Instead, it changes the direction in which path segments are drawn. For example, reversing the path of a rectangle (whose line segments are normally drawn starting at the origin and proceeding in a counterclockwise direction) causes its line segments to be drawn in a clockwise direction instead. Drawing a reversed path could affect the appearance of a filled pattern, depending on the pattern and the fill rule in use.

The path in this property is created by reversing each whole or partial subpath in the path object individually.

See Also

Creating an NSBezierPath Object

init(ovalIn: NSRect)

Creates and returns a new NSBezierPath object initialized with an oval path inscribed in the specified rectangle.

init(rect: NSRect)

Creates and returns a new NSBezierPath object initialized with a rectangular path.

init(roundedRect: NSRect, xRadius: CGFloat, yRadius: CGFloat)

Creates and returns a new NSBezierPath object initialized with a rounded rectangular path.

var flattened: NSBezierPath

A flattened version of the path object.