FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSGeometry.h File Reference

Human friendly NSGeometry symbols and macros. More...

#import <Foundation/Foundation.h>

Go to the source code of this file.

Macros

#define NSPointZero   NSZeroPoint
 An NSPoint structure with both x and y coordinates set to 0. More...
 
#define NSSizeZero   NSZeroSize
 An NSSize structure set to 0 in both dimensions. More...
 
#define NSRectZero   NSZeroRect
 An NSRect structure set to 0 in width and height. More...
 

Functions

Creations
NS_INLINE NSPoint NSPointMake (CGFloat x, CGFloat y)
 Creates a new NSPoint from the specified values. More...
 
NS_INLINE NSSize NSSizeMake (CGFloat w, CGFloat h)
 Creates a new NSSize from the specified values. More...
 
NS_INLINE NSRect NSRectMake (CGFloat x, CGFloat y, CGFloat w, CGFloat h)
 Creates a new NSRect from the specified values. More...
 
Equalities
NS_INLINE BOOL NSPointEqualToPoint (NSPoint aPoint, NSPoint bPoint)
 Returns a Boolean value that indicates whether two points are equal. More...
 
NS_INLINE BOOL NSSizeEqualToSize (NSSize aSize, NSSize bSize)
 Returns a Boolean value that indicates whether two size values are equal. More...
 
NS_INLINE BOOL NSRectEqualToRect (NSRect aRect, NSRect bRect)
 Returns a Boolean value that indicates whether the two rectangles are equal. More...
 
NS_INLINE BOOL NSRectIsEmpty (NSRect aRect)
 Returns a Boolean value that indicates whether a given rectangle is empty. More...
 

Detailed Description

Human friendly NSGeometry symbols and macros.

Macro Definition Documentation

#define NSPointZero   NSZeroPoint

An NSPoint structure with both x and y coordinates set to 0.

See also
NSZeroPoint
#define NSRectZero   NSZeroRect

An NSRect structure set to 0 in width and height.

See also
NSZeroPoint
#define NSSizeZero   NSZeroSize

An NSSize structure set to 0 in both dimensions.

See also
NSZeroPoint

Function Documentation

NS_INLINE BOOL NSPointEqualToPoint ( NSPoint  aPoint,
NSPoint  bPoint 
)

Returns a Boolean value that indicates whether two points are equal.

See also
NSEqualPoints
NS_INLINE NSPoint NSPointMake ( CGFloat  x,
CGFloat  y 
)

Creates a new NSPoint from the specified values.

See also
NSMakePoint
NS_INLINE BOOL NSRectEqualToRect ( NSRect  aRect,
NSRect  bRect 
)

Returns a Boolean value that indicates whether the two rectangles are equal.

See also
NSEqualRects
NS_INLINE BOOL NSRectIsEmpty ( NSRect  aRect)

Returns a Boolean value that indicates whether a given rectangle is empty.

See also
NSIsEmptyRect
NS_INLINE NSRect NSRectMake ( CGFloat  x,
CGFloat  y,
CGFloat  w,
CGFloat  h 
)

Creates a new NSRect from the specified values.

See also
NSMakeRect
NS_INLINE BOOL NSSizeEqualToSize ( NSSize  aSize,
NSSize  bSize 
)

Returns a Boolean value that indicates whether two size values are equal.

See also
NSEqualSizes
NS_INLINE NSSize NSSizeMake ( CGFloat  w,
CGFloat  h 
)

Creates a new NSSize from the specified values.

See also
NSMakeSize