cocos2d-x  3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Control Exntension

Classes

class  Control
 
class  ControlButton
 for Cocos2D. More...
 
class  ControlColourPicker
 
class  ControlHuePicker
 
class  ControlPotentiometer
 for Cocos2D. More...
 
class  ControlSaturationBrightnessPicker
 
class  ControlSlider
 
class  ControlStepper
 
class  ControlSwitch
 for Cocos2D. More...
 
class  Color3bObject
 
class  ControlUtils
 
class  Invocation
 
class  Scale9Sprite
 A 9-slice sprite for cocos2d. More...
 

Macros

#define kControlEventTotalNumber   9
 Number of kinds of control event. More...
 
#define cccontrol_selector(_SELECTOR)   static_cast<cocos2d::extension::Control::Handler>(&_SELECTOR)

Enumerations

enum  EventType {
  TOUCH_DOWN = 1 << 0, DRAG_INSIDE = 1 << 1, DRAG_OUTSIDE = 1 << 2, DRAG_ENTER = 1 << 3,
  DRAG_EXIT = 1 << 4, TOUCH_UP_INSIDE = 1 << 5, TOUCH_UP_OUTSIDE = 1 << 6, TOUCH_CANCEL = 1 << 7,
  VALUE_CHANGED = 1 << 8
}
 Kinds of possible events for the control objects. More...
 
enum  State { NORMAL = 1 << 0, HIGH_LIGHTED = 1 << 1, DISABLED = 1 << 2, SELECTED = 1 << 3 }
 The possible state for a control. More...
 
enum  Part { MINUS, PLUS, NONE }
 

Functions

Control::EventType  (Control::EventType a, Control::EventType b)

Detailed Description

Macro Definition Documentation

#define cccontrol_selector (   _SELECTOR)    static_cast<cocos2d::extension::Control::Handler>(&_SELECTOR)
var cccontrol_selector (   var)    static_cast<cocos2d::extension::Control::Handler>(&_SELECTOR)
#define kControlEventTotalNumber   9

Number of kinds of control event.

Enumeration Type Documentation

enum EventType
strong

Kinds of possible events for the control objects.

Enumerator
TOUCH_DOWN 
DRAG_INSIDE 
DRAG_OUTSIDE 
DRAG_ENTER 
DRAG_EXIT 
TOUCH_UP_INSIDE 
TOUCH_UP_OUTSIDE 
TOUCH_CANCEL 
VALUE_CHANGED 
var EventType
strong

Kinds of possible events for the control objects.

Enumerator
TOUCH_DOWN 
DRAG_INSIDE 
DRAG_OUTSIDE 
DRAG_ENTER 
DRAG_EXIT 
TOUCH_UP_INSIDE 
TOUCH_UP_OUTSIDE 
TOUCH_CANCEL 
VALUE_CHANGED 
local EventType
strong

Kinds of possible events for the control objects.

Enumerator
TOUCH_DOWN 
DRAG_INSIDE 
DRAG_OUTSIDE 
DRAG_ENTER 
DRAG_EXIT 
TOUCH_UP_INSIDE 
TOUCH_UP_OUTSIDE 
TOUCH_CANCEL 
VALUE_CHANGED 
enum Part
strong
Enumerator
MINUS 
PLUS 
NONE 
var Part
strong
Enumerator
MINUS 
PLUS 
NONE 
local Part
strong
Enumerator
MINUS 
PLUS 
NONE 
enum State
strong

The possible state for a control.

Enumerator
NORMAL 
HIGH_LIGHTED 
DISABLED 
SELECTED 
var State
strong

The possible state for a control.

Enumerator
NORMAL 
HIGH_LIGHTED 
DISABLED 
SELECTED 
local State
strong

The possible state for a control.

Enumerator
NORMAL 
HIGH_LIGHTED 
DISABLED 
SELECTED 

Function Documentation

Control::EventType
cocos2d::extension::operator|
( Control::EventType  a,
Control::EventType  b 
)
Control::EventType
cocos2d::extension::operator|
( var  a,
var  b 
)
Control::EventType
cocos2d::extension::operator|
( local  a,
local  b 
)