CCSizeUnit Constants Reference
| Declared in | ccTypes.h |
|---|
CCSizeUnit
Size unit types alter how a node’s contentSize property values are interpreted. Used by, for instance, [CCNode setContentSizeType:].
Definition
typedef NS_ENUM(uint8_t, CCSizeUnit ) {
CCSizeUnitPoints,
CCSizeUnitUIPoints,
CCSizeUnitNormalized,
CCSizeUnitInsetPoints,
CCSizeUnitInsetUIPoints,
};
Constants
CCSizeUnitPoints-
Content size is set in points (this is the default)
Declared In
ccTypes.h. CCSizeUnitUIPoints-
Position is UI points, on iOS this corresponds to the native point system
Declared In
ccTypes.h. CCSizeUnitNormalized-
Content size is a normalized value (percentage) multiplied by the content size of the parent’s container
Declared In
ccTypes.h. CCSizeUnitInsetPoints-
Content size is the size of the parents container inset by the supplied value
Declared In
ccTypes.h. CCSizeUnitInsetUIPoints-
Content size is the size of the parents container inset by the supplied value multiplied by the UIScaleFactor (as defined by CCDirector)
Declared In
ccTypes.h.
Declared In
ccTypes.h