CCPositionUnit Constants Reference

Declared in ccTypes.h

CCPositionUnit

Position unit types alter how a node’s position property values are interpreted. Used by, for instance, [CCNode setPositionType:].

Definition

typedef NS_ENUM(uint8_t, CCPositionUnit ) {
   CCPositionUnitPoints,
   CCPositionUnitUIPoints,
   CCPositionUnitNormalized,
};

Constants

CCPositionUnitPoints

Position is set in points (this is the default)

Declared In ccTypes.h.

CCPositionUnitUIPoints

Position is UI points, on iOS this corresponds to the native point system

Declared In ccTypes.h.

CCPositionUnitNormalized

Position is a normalized value multiplied by the content size of the parent’s container

Declared In ccTypes.h.

Declared In

ccTypes.h