Type Method

clip(_:)

Intersects the specified rectangle with the clipping path of the current graphics context and makes the resulting shape the current clipping path

Declaration

class func clip(_ rect: NSRect)

Parameters

aRect

The rectangle to intersect with the current clipping path.

See Also

Clipping Paths

func addClip()

Intersects the area enclosed by the receiver's path with the clipping path of the current graphics context and makes the resulting shape the current clipping path.

func setClip()

Replaces the clipping path of the current graphics context with the area inside the receiver's path.