Rects
These functions are used to create and manipulate
NSRect
structures.
-
NSContainsRect BOOLNSContainsRect(NSRectaRect,NSRectbRect)-
NSDivideRect voidNSDivideRect(NSRectinRect,NSRect*slice,NSRect*rem,floatamount,NSRectEdgeedge)-
NSEqualRects BOOLNSEqualRects(NSRectaRect,NSRectbRect)-
NSHeight floatNSHeight(NSRectaRect)-
NSInsetRect NSRectNSInsetRect(NSRectaRect,floatdX,floatdY)-
NSIntegralRect NSRectNSIntegralRect(NSRectaRect)-
NSIntersectionRect NSRectNSIntersectionRect(NSRectaRect,NSRectbRect)-
NSIntersectsRect BOOLNSIntersectsRect(NSRectaRect,NSRectbRect)-
NSIsEmptyRect BOOLNSIsEmptyRect(NSRectaRect)-
NSMakeRect NSRectNSMakeRect(floatx,floaty,floatw,floath)-
NSMaxX floatNSMaxX(NSRectaRect)-
NSMaxY floatNSMaxY(NSRectaRect)-
NSMidX floatNSMidX(NSRectaRect)-
NSMidY floatNSMidY(NSRectaRect)-
NSMinX floatNSMinX(NSRectaRect)-
NSMinY floatNSMinY(NSRectaRect)-
NSMouseInRect BOOLNSMouseInRect(NSPointaPoint,NSRectaRect,BOOLisFlipped)-
NSOffsetRect NSRectNSOffsetRect(NSRectaRect,floatdX,floatdY)-
NSPointInRect BOOLNSPointInRect(NSPointaPoint,NSRectaRect)-
NSRectFromString NSRectNSRectFromString(NSString*aString)-
NSStringFromRect NSString*NSStringFromRect(NSRectaRect)-
NSUnionRect NSRectNSUnionRect(NSRectaRect,NSRectbRect)-
NSWidth floatNSWidth(NSRectaRect)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access