Function Summary | |
---|---|
CGSize | CPSizeCreateCopy(aSize) Creates and returns a copy of the provided CGSize. |
CGSize | CPSizeMake(width, height) Creates and returns a new CGSize object from the provided dimensions. |
BOOL | CPSizeEqualToSize(lhsSize, rhsSize) Returns YES if the two CGSize s are identical. |
CGSize | CPStringFromSize(aSize) Returns a human readable string of the provided CGSize . |
CGSize | CPSizeFromString(aString) Returns a CGSize from a string containing a pair of comma separated integers. |
CGSize | CPSizeMakeZero() Returns a zero sized CGSize . |
Function Detail |
---|
function CPSizeCreateCopy(aSize)
aSize
- the CGSize to copyfunction CPSizeMake(width, height)
width
- the width for the new CGSizeheight
- the height for the new CGSizefunction CPSizeEqualToSize(lhsSize, rhsSize)
YES
if the two CGSize
s are identical.lhsSize
- the first CGSize
to comparerhsSize
- the second CGSize
to compareYES
if the two sizes are identical. NO
, otherwise.function CPStringFromSize(aSize)
CGSize
.aSize
- the size to representCGSize
function CPSizeFromString(aString)
CGSize
from a string containing a pair of comma separated integers.aString
- a string containing two comma separated integersfunction CPSizeMakeZero()
CGSize
.width
and height