CGSize


Function Summary
CGSizeCPSizeCreateCopy(aSize)
          Creates and returns a copy of the provided CGSize.
CGSizeCPSizeMake(width, height)
          Creates and returns a new CGSize object from the provided dimensions.
BOOLCPSizeEqualToSize(lhsSize, rhsSize)
          Returns YES if the two CGSizes are identical.
CGSizeCPStringFromSize(aSize)
          Returns a human readable string of the provided CGSize.
CGSizeCPSizeFromString(aString)
          Returns a CGSize from a string containing a pair of comma separated integers.
CGSizeCPSizeMakeZero()
          Returns a zero sized CGSize.

Function Detail

CPSizeCreateCopy

function CPSizeCreateCopy(aSize)
Creates and returns a copy of the provided CGSize
Arguments
aSize - the CGSize to copy
Returns:
the copy of the CGSize

CPSizeMake

function CPSizeMake(width, height)
Creates and returns a new CGSize object from the provided dimensions.
Arguments
width - the width for the new CGSize
height - the height for the new CGSize
Returns:
the new CGSize

CPSizeEqualToSize

function CPSizeEqualToSize(lhsSize, rhsSize)
Returns YES if the two CGSizes are identical.
Arguments
lhsSize - the first CGSize to compare
rhsSize - the second CGSize to compare
Returns:
YES if the two sizes are identical. NO, otherwise.

CPStringFromSize

function CPStringFromSize(aSize)
Returns a human readable string of the provided CGSize.
Arguments
aSize - the size to represent
Returns:
a string representation of the CGSize

CPSizeFromString

function CPSizeFromString(aString)
Returns a CGSize from a string containing a pair of comma separated integers.
Arguments
aString - a string containing two comma separated integers
Returns:
the size object created from the string

CPSizeMakeZero

function CPSizeMakeZero()
Returns a zero sized CGSize.
Returns:
a size object with zeros for width and height