NSDivideRect(_:_:_:_:_:)
Divides a rectangle into two new rectangles.
Declaration
func NSDivideRect(_ inRect: NSRect, _ slice: UnsafeMutablePointer<NSRect>, _ rem: UnsafeMutablePointer<NSRect>, _ amount: Double, _ edge: NSRectEdge)Discussion
Creates two rectangles—slice and rem—from inRect, by dividing inRect with a line that’s parallel to the side of inRect specified by edge. The size of slice is determined by amount, which specifies the distance from edge.
slice and rem must not be NULL.
For more information, see NSRectEdge.