CCPositionReferenceCorner Constants Reference

Declared in ccTypes.h

CCPositionReferenceCorner

Reference corner determines a node’s origin and affects how the position property values are interpreted. Used by, for instance, [CCNode setPositionType:].

Definition

typedef NS_ENUM(uint8_t, CCPositionReferenceCorner ) {
   CCPositionReferenceCornerBottomLeft,
   CCPositionReferenceCornerTopLeft,
   CCPositionReferenceCornerTopRight,
   CCPositionReferenceCornerBottomRight,
};

Constants

CCPositionReferenceCornerBottomLeft

Position is relative to the bottom left corner of the parent container (this is the default)

Declared In ccTypes.h.

CCPositionReferenceCornerTopLeft

Position is relative to the top left corner of the parent container

Declared In ccTypes.h.

CCPositionReferenceCornerTopRight

Position is relative to the top right corner of the parent container

Declared In ccTypes.h.

CCPositionReferenceCornerBottomRight

Position is relative to the bottom right corner of the parent container

Declared In ccTypes.h.

Declared In

ccTypes.h