FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
|
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... | |
Human friendly NSGeometry symbols and macros.
#define NSPointZero NSZeroPoint |
An NSPoint structure with both x and y coordinates set to 0.
#define NSRectZero NSZeroRect |
An NSRect structure set to 0 in width and height.
#define NSSizeZero NSZeroSize |
An NSSize structure set to 0 in both dimensions.
NS_INLINE BOOL NSPointEqualToPoint | ( | NSPoint | aPoint, |
NSPoint | bPoint | ||
) |
Returns a Boolean value that indicates whether two points are equal.
NS_INLINE NSPoint NSPointMake | ( | CGFloat | x, |
CGFloat | y | ||
) |
Creates a new NSPoint from the specified values.
NS_INLINE BOOL NSRectEqualToRect | ( | NSRect | aRect, |
NSRect | bRect | ||
) |
Returns a Boolean value that indicates whether the two rectangles are equal.
NS_INLINE BOOL NSRectIsEmpty | ( | NSRect | aRect | ) |
Returns a Boolean value that indicates whether a given rectangle is empty.
NS_INLINE NSRect NSRectMake | ( | CGFloat | x, |
CGFloat | y, | ||
CGFloat | w, | ||
CGFloat | h | ||
) |
Creates a new NSRect from the specified values.
NS_INLINE BOOL NSSizeEqualToSize | ( | NSSize | aSize, |
NSSize | bSize | ||
) |
Returns a Boolean value that indicates whether two size values are equal.
NS_INLINE NSSize NSSizeMake | ( | CGFloat | w, |
CGFloat | h | ||
) |
Creates a new NSSize from the specified values.