cocos2d-x  2.1.1
cocos2d::extension Namespace Reference

Classes

class  CCBAnimationManagerDelegate
 
class  CCBAnimationManager
 
class  CCBSetSpriteFrame
 
class  CCBRotateTo
 
class  CCBEaseInstant
 
class  CCBFileLoader
 
class  CCBKeyframe
 
class  CCBMemberVariableAssigner
 
class  CCBFile
 
class  CCBReader
 Parse CCBI file which is generated by CocosBuilder. More...
 
class  CCBSelectorResolver
 
class  CCBScriptOwnerProtocol
 
class  CCBSequence
 
class  CCBSequenceProperty
 
class  ccColor3BWapper
 
class  CCBValue
 
class  CCControlButtonLoader
 
class  CCControlLoader
 
class  CCData
 
class  CCLabelBMFontLoader
 
class  CCLabelTTFLoader
 
class  CCLayerColorLoader
 
class  CCLayerGradientLoader
 
class  CCLayerLoader
 
class  CCMenuItemImageLoader
 
class  CCMenuItemLoader
 
class  CCMenuLoader
 
struct  BlockData
 
struct  BlockCCControlData
 
class  CCNodeLoader
 
class  CCNodeLoaderLibrary
 
class  CCNodeLoaderListener
 
class  CCParticleSystemQuadLoader
 
class  CCScale9SpriteLoader
 
class  CCScrollViewLoader
 
class  CCSpriteLoader
 
class  CCControl
 
class  CCControlButton
 for Cocos2D. More...
 
class  CCControlColourPicker
 
class  CCControlHuePicker
 
class  CCControlPotentiometer
 for Cocos2D. More...
 
class  CCControlSaturationBrightnessPicker
 
class  CCControlSlider
 
class  CCControlStepper
 
class  CCControlSwitch
 for Cocos2D. More...
 
struct  RGBA
 
struct  HSV
 
class  CCColor3bObject
 
class  CCControlUtils
 
class  CCInvocation
 
class  CCScale9Sprite
 
class  CCEditBoxDelegate
 
class  CCEditBox
 Class for edit box. More...
 
class  CCEditBoxImpl
 
class  CCEditBoxImplAndroid
 
class  CCScrollViewDelegate
 
class  CCScrollView
 ScrollView support for cocos2d for iphone. More...
 
class  CCSortableObject
 
class  CCArrayForObjectSorting
 
class  CCTableViewDelegate
 Sole purpose of this delegate is to single touch event in this version. More...
 
class  CCTableViewDataSource
 Data source that governs table backend data. More...
 
class  CCTableView
 UITableView counterpart for cocos2d for iphone. More...
 
class  CCTableViewCell
 Abstract class for SWTableView cell node. More...
 
class  CCHttpClient
 Singleton that handles asynchrounous http requests Once the request completed, a callback will issued in main thread when it provided during make request. More...
 
class  CCHttpRequest
 defines the object which users must packed for CCHttpClient::send(HttpRequest*) method. More...
 
class  CCHttpResponse
 defines the object which users will receive at onHttpCompleted(sender, HttpResponse) callback Please refer to samples/TestCpp/Classes/ExtensionTest/NetworkTest/HttpClientTest.cpp as a sample More...
 
class  CCPhysicsSprite
 A CCSprite subclass that is bound to a physics body. More...
 

Typedefs

typedef std::map< std::string,
CCNodeLoader * > 
CCNodeLoaderMap
 
typedef std::pair< std::string,
CCNodeLoader * > 
CCNodeLoaderMapEntry
 
typedef unsigned int CCControlEvent
 
typedef unsigned int CCControlState
 
typedef void(CCObject::* SEL_CCControlHandler )(CCObject *, CCControlEvent)
 

Enumerations

enum  {
  kIntValue, kFloatValue, kBoolValue, kUnsignedCharValue,
  kStringValue
}
 
enum  {
  CCControlEventTouchDown = 1 << 0, CCControlEventTouchDragInside = 1 << 1, CCControlEventTouchDragOutside = 1 << 2, CCControlEventTouchDragEnter = 1 << 3,
  CCControlEventTouchDragExit = 1 << 4, CCControlEventTouchUpInside = 1 << 5, CCControlEventTouchUpOutside = 1 << 6, CCControlEventTouchCancel = 1 << 7,
  CCControlEventValueChanged = 1 << 8
}
 Kinds of possible events for the control objects. More...
 
enum  { CCControlStateNormal = 1 << 0, CCControlStateHighlighted = 1 << 1, CCControlStateDisabled = 1 << 2, CCControlStateSelected = 1 << 3 }
 The possible state for a control. More...
 
enum  CCControlStepperPart { kCCControlStepperPartMinus, kCCControlStepperPartPlus, kCCControlStepperPartNone }
 
enum  KeyboardReturnType {
  kKeyboardReturnTypeDefault = 0, kKeyboardReturnTypeDone, kKeyboardReturnTypeSend, kKeyboardReturnTypeSearch,
  kKeyboardReturnTypeGo
}
 
enum  EditBoxInputMode {
  kEditBoxInputModeAny = 0, kEditBoxInputModeEmailAddr, kEditBoxInputModeNumeric, kEditBoxInputModePhoneNumber,
  kEditBoxInputModeUrl, kEditBoxInputModeDecimal, kEditBoxInputModeSingleLine
}
 The EditBoxInputMode defines the type of text that the user is allowed to enter. More...
 
enum  EditBoxInputFlag {
  kEditBoxInputFlagPassword = 0, kEditBoxInputFlagSensitive, kEditBoxInputFlagInitialCapsWord, kEditBoxInputFlagInitialCapsSentence,
  kEditBoxInputFlagInitialCapsAllCharacters
}
 The EditBoxInputFlag defines how the input text is displayed/formatted. More...
 
enum  CCScrollViewDirection { kCCScrollViewDirectionNone = -1, kCCScrollViewDirectionHorizontal = 0, kCCScrollViewDirectionVertical, kCCScrollViewDirectionBoth }
 
enum  CCTableViewVerticalFillOrder { kCCTableViewFillTopDown, kCCTableViewFillBottomUp }
 

Functions

CCPoint getAbsolutePosition (const CCPoint &pt, int nType, const CCSize &containerSize, const char *pPropName)
 
void setRelativeScale (CCNode *pNode, float fScaleX, float fScaleY, int nType, const char *pPropName)
 
CCEditBoxImpl__createSystemEditBox (CCEditBox *pEditBox)
 

Typedef Documentation

typedef std::map<std::string, CCNodeLoader *> CCNodeLoaderMap
typedef std::pair<std::string, CCNodeLoader *> CCNodeLoaderMapEntry

Enumeration Type Documentation

anonymous enum
Enumerator:
kIntValue 
kFloatValue 
kBoolValue 
kUnsignedCharValue 
kStringValue 
Enumerator:
kCCTableViewFillTopDown 
kCCTableViewFillBottomUp 

The EditBoxInputFlag defines how the input text is displayed/formatted.

Enumerator:
kEditBoxInputFlagPassword 

Indicates that the text entered is confidential data that should be obscured whenever possible.

This implies EDIT_BOX_INPUT_FLAG_SENSITIVE.

kEditBoxInputFlagSensitive 

Indicates that the text entered is sensitive data that the implementation must never store into a dictionary or table for use in predictive, auto-completing, or other accelerated input schemes.

A credit card number is an example of sensitive data.

kEditBoxInputFlagInitialCapsWord 

This flag is a hint to the implementation that during text editing, the initial letter of each word should be capitalized.

kEditBoxInputFlagInitialCapsSentence 

This flag is a hint to the implementation that during text editing, the initial letter of each sentence should be capitalized.

kEditBoxInputFlagInitialCapsAllCharacters 

Capitalize all characters automatically.

The EditBoxInputMode defines the type of text that the user is allowed to enter.

Enumerator:
kEditBoxInputModeAny 

The user is allowed to enter any text, including line breaks.

kEditBoxInputModeEmailAddr 

The user is allowed to enter an e-mail address.

kEditBoxInputModeNumeric 

The user is allowed to enter an integer value.

kEditBoxInputModePhoneNumber 

The user is allowed to enter a phone number.

kEditBoxInputModeUrl 

The user is allowed to enter a URL.

kEditBoxInputModeDecimal 

The user is allowed to enter a real number value.

This extends kEditBoxInputModeNumeric by allowing a decimal point.

kEditBoxInputModeSingleLine 

The user is allowed to enter any text, except for line breaks.

Enumerator:
kKeyboardReturnTypeDefault 
kKeyboardReturnTypeDone 
kKeyboardReturnTypeSend 
kKeyboardReturnTypeSearch 
kKeyboardReturnTypeGo 

Function Documentation

CCEditBoxImpl* cocos2d::extension::__createSystemEditBox ( CCEditBox *  pEditBox)
CCPoint cocos2d::extension::getAbsolutePosition ( const CCPoint &  pt,
int  nType,
const CCSize &  containerSize,
const char *  pPropName 
)
void cocos2d::extension::setRelativeScale ( CCNode *  pNode,
float  fScaleX,
float  fScaleY,
int  nType,
const char *  pPropName 
)