Instance Method

appendOval(in:)

Appends an oval path to the receiver, inscribing the oval in the specified rectangle.

Declaration

func appendOval(in rect: NSRect)

Parameters

aRect

The rectangle in which to inscribe the oval.

Discussion

Before adding the oval, this method moves the current point, which implicitly closes the current subpath. If the aRect parameter specifies a square, the inscribed path is a circle. The path is constructed by starting in the lower-right quadrant of the rectangle and adding arc segments counterclockwise to complete the oval.

See Also

Appending Common Shapes to a Path

func append(NSBezierPath)

Appends the contents of the specified path object to the receiver’s path.

func appendPoints(NSPointArray, count: Int)

Appends a series of line segments to the receiver’s path.

func appendArc(from: NSPoint, to: NSPoint, radius: CGFloat)

Appends an arc to the receiver’s path.

func appendGlyph(NSGlyph, in: NSFont)

Appends an outline of the specified glyph to the receiver’s path.

Deprecated
func appendGlyphs(UnsafeMutablePointer<NSGlyph>, count: Int, in: NSFont)

Appends the outlines of the specified glyphs to the receiver’s path.

Deprecated
func appendPackedGlyphs(UnsafePointer<Int8>)

Appends an array of packed glyphs to the receiver’s path.

Deprecated
func appendRect(NSRect)

Appends a rectangular path to the receiver’s path.

func appendRoundedRect(NSRect, xRadius: CGFloat, yRadius: CGFloat)

Appends a rounded rectangular path to the receiver’s path.