CCControlState Constants Reference

Declared in CCControl.h

CCControlState

The possible states for a CCControl.

Definition

typedef NS_ENUM(NSUInteger, CCControlState ) {
   CCControlStateNormal = 1 < < 0,
   CCControlStateHighlighted = 1 < < 1,
   CCControlStateDisabled = 1 < < 2,
   CCControlStateSelected = 1 < < 3,
};

Constants

CCControlStateNormal

The normal, or default state of a control — that is, enabled but neither selected nor highlighted.

Declared In CCControl.h.

CCControlStateHighlighted

Highlighted state of a control. A control enters this state when a touch down, drag inside or drag enter is performed. You can retrieve and set this value through the highlighted property.

Declared In CCControl.h.

CCControlStateDisabled

Disabled state of a control. This state indicates that the control is currently disabled. You can retrieve and set this value through the enabled property.

Declared In CCControl.h.

CCControlStateSelected

Selected state of a control. This state indicates that the control is currently selected. You can retrieve and set this value through the selected property.

Declared In CCControl.h.

Declared In

CCControl.h