Contents

NSContainsRect(_:_:)

Returns a Boolean value that indicates whether one rectangle completely encloses another.

Declaration

func NSContainsRect(_ aRect: NSRect, _ bRect: NSRect) -> Bool

Return Value

true if aRect completely encloses bRect. For this condition to be true, bRect cannot be empty, and must not extend beyond aRect in any direction.

See Also

Managing Rectangles