mirror of https://github.com/axmolengine/axmol.git
Merge pull request #4347 from samuele3hu/developTableView
[ci skip]Add doxygen comments for the CocoStudio
This commit is contained in:
commit
4582686860
|
@ -39,6 +39,10 @@ enum FrameType
|
||||||
kKeyframeMax
|
kKeyframeMax
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class ActionFrame:public cocos2d::Object
|
class ActionFrame:public cocos2d::Object
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -125,6 +129,10 @@ protected:
|
||||||
float _fTime;
|
float _fTime;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class ActionMoveFrame:public ActionFrame
|
class ActionMoveFrame:public ActionFrame
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -165,6 +173,10 @@ protected:
|
||||||
cocos2d::Point _position;
|
cocos2d::Point _position;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class ActionScaleFrame:public ActionFrame
|
class ActionScaleFrame:public ActionFrame
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -219,7 +231,10 @@ protected:
|
||||||
float _scaleX;
|
float _scaleX;
|
||||||
float _scaleY;
|
float _scaleY;
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class ActionRotationFrame:public ActionFrame
|
class ActionRotationFrame:public ActionFrame
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -259,7 +274,10 @@ public:
|
||||||
protected:
|
protected:
|
||||||
float _rotation;
|
float _rotation;
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class ActionFadeFrame:public ActionFrame
|
class ActionFadeFrame:public ActionFrame
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -299,7 +317,10 @@ public:
|
||||||
protected:
|
protected:
|
||||||
float _opacity;
|
float _opacity;
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class ActionTintFrame:public ActionFrame
|
class ActionTintFrame:public ActionFrame
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,10 @@ enum FrameEasingType
|
||||||
kframeEasingBackInOut,
|
kframeEasingBackInOut,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class ActionFrameEasing:public cocos2d::Object
|
class ActionFrameEasing:public cocos2d::Object
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -37,21 +37,28 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default constructor
|
* Default constructor
|
||||||
|
* @js ctor
|
||||||
*/
|
*/
|
||||||
ActionManagerEx();
|
ActionManagerEx();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default destructor
|
* Default destructor
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual ~ActionManagerEx();
|
virtual ~ActionManagerEx();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the static instance of ActionManager.
|
* Gets the static instance of ActionManager.
|
||||||
|
* @js getInstance
|
||||||
|
* @lua getInstance
|
||||||
*/
|
*/
|
||||||
static ActionManagerEx* shareManager();
|
static ActionManagerEx* shareManager();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Purges ActionManager point.
|
* Purges ActionManager point.
|
||||||
|
* @js purge
|
||||||
|
* @lua destroyActionManager
|
||||||
*/
|
*/
|
||||||
static void purgeActionManager();
|
static void purgeActionManager();
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,10 @@
|
||||||
|
|
||||||
namespace cocostudio {
|
namespace cocostudio {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class ActionNode:public cocos2d::Object
|
class ActionNode:public cocos2d::Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -31,6 +31,10 @@
|
||||||
|
|
||||||
namespace cocostudio {
|
namespace cocostudio {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class ActionObject:public cocos2d::Object
|
class ActionObject:public cocos2d::Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -89,6 +89,9 @@ public:
|
||||||
static Armature *create(const char *name, Bone *parentBone);
|
static Armature *create(const char *name, Bone *parentBone);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
/**
|
||||||
|
* @js ctor
|
||||||
|
*/
|
||||||
Armature();
|
Armature();
|
||||||
/**
|
/**
|
||||||
* @js NA
|
* @js NA
|
||||||
|
@ -159,8 +162,15 @@ public:
|
||||||
virtual void draw() override;
|
virtual void draw() override;
|
||||||
|
|
||||||
virtual const cocos2d::AffineTransform& getNodeToParentTransform() const override;
|
virtual const cocos2d::AffineTransform& getNodeToParentTransform() const override;
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
inline void setBlendFunc(const cocos2d::BlendFunc &blendFunc) override { _blendFunc = blendFunc; }
|
inline void setBlendFunc(const cocos2d::BlendFunc &blendFunc) override { _blendFunc = blendFunc; }
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
inline const cocos2d::BlendFunc &getBlendFunc(void) const override{ return _blendFunc; }
|
inline const cocos2d::BlendFunc &getBlendFunc(void) const override{ return _blendFunc; }
|
||||||
|
|
||||||
|
|
||||||
|
@ -199,13 +209,31 @@ public:
|
||||||
|
|
||||||
#if ENABLE_PHYSICS_BOX2D_DETECT
|
#if ENABLE_PHYSICS_BOX2D_DETECT
|
||||||
virtual b2Fixture *getShapeList();
|
virtual b2Fixture *getShapeList();
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual void setBody(b2Body *body);
|
virtual void setBody(b2Body *body);
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual b2Body *getBody() const;
|
virtual b2Body *getBody() const;
|
||||||
#elif ENABLE_PHYSICS_CHIPMUNK_DETECT
|
#elif ENABLE_PHYSICS_CHIPMUNK_DETECT
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual cpShape *getShapeList();
|
virtual cpShape *getShapeList();
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual void setBody(cpBody *body);
|
virtual void setBody(cpBody *body);
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual cpBody *getBody() const;
|
virtual cpBody *getBody() const;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -213,10 +241,15 @@ protected:
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Used to create Bone internal
|
* Used to create Bone internal
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
Bone *createBone(const char *boneName );
|
Bone *createBone(const char *boneName );
|
||||||
|
|
||||||
//! Update blend function
|
/**! Update blend function
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
void updateBlendType(BlendType blendType);
|
void updateBlendType(BlendType blendType);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -236,16 +236,22 @@ protected:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update(float dt) will call this handler, you can handle your logic here
|
* Update(float dt) will call this handler, you can handle your logic here
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
void updateHandler();
|
void updateHandler();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update current key frame, and process auto stop, pause
|
* Update current key frame, and process auto stop, pause
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
void updateFrameData(float currentPercent);
|
void updateFrameData(float currentPercent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Emit a frame event
|
* Emit a frame event
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
void frameEvent(Bone *bone, const char *frameEventName, int originFrameIndex, int currentFrameIndex);
|
void frameEvent(Bone *bone, const char *frameEventName, int originFrameIndex, int currentFrameIndex);
|
||||||
|
|
||||||
|
|
|
@ -38,14 +38,27 @@ public:
|
||||||
* @js ctor
|
* @js ctor
|
||||||
*/
|
*/
|
||||||
BatchNode();
|
BatchNode();
|
||||||
|
/**
|
||||||
|
* @ js NA
|
||||||
|
* @ lua NA
|
||||||
|
*/
|
||||||
~BatchNode();
|
~BatchNode();
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
virtual bool init() override;
|
virtual bool init() override;
|
||||||
virtual void addChild(cocos2d::Node *pChild) override;
|
virtual void addChild(cocos2d::Node *pChild) override;
|
||||||
virtual void addChild(cocos2d::Node *pChild, int zOrder) override;
|
virtual void addChild(cocos2d::Node *pChild, int zOrder) override;
|
||||||
virtual void addChild(cocos2d::Node *pChild, int zOrder, int tag) override;
|
virtual void addChild(cocos2d::Node *pChild, int zOrder, int tag) override;
|
||||||
virtual void removeChild(cocos2d::Node* child, bool cleanup) override;
|
virtual void removeChild(cocos2d::Node* child, bool cleanup) override;
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual void visit() override;
|
virtual void visit() override;
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
void draw() override;
|
void draw() override;
|
||||||
|
|
||||||
virtual cocos2d::TextureAtlas *getTexureAtlasWithTexture(cocos2d::Texture2D *texture) const;
|
virtual cocos2d::TextureAtlas *getTexureAtlasWithTexture(cocos2d::Texture2D *texture) const;
|
||||||
|
|
|
@ -53,6 +53,9 @@ public:
|
||||||
static Bone *create(const char *name);
|
static Bone *create(const char *name);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
/**
|
||||||
|
* @js ctor
|
||||||
|
*/
|
||||||
Bone();
|
Bone();
|
||||||
/**
|
/**
|
||||||
* @js NA
|
* @js NA
|
||||||
|
@ -173,12 +176,15 @@ public:
|
||||||
virtual Armature *getChildArmature() const;
|
virtual Armature *getChildArmature() const;
|
||||||
|
|
||||||
virtual DisplayManager *getDisplayManager() const { return _displayManager; }
|
virtual DisplayManager *getDisplayManager() const { return _displayManager; }
|
||||||
|
/**
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual void setIgnoreMovementBoneData(bool ignore) { _ignoreMovementBoneData = ignore; }
|
virtual void setIgnoreMovementBoneData(bool ignore) { _ignoreMovementBoneData = ignore; }
|
||||||
virtual bool isIgnoreMovementBoneData() const { return _ignoreMovementBoneData; }
|
virtual bool isIgnoreMovementBoneData() const { return _ignoreMovementBoneData; }
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This function is deprecated, please use isIgnoreMovementBoneData()
|
* This function is deprecated, please use isIgnoreMovementBoneData()
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
CC_DEPRECATED_ATTRIBUTE virtual bool getIgnoreMovementBoneData() const { return isIgnoreMovementBoneData(); }
|
CC_DEPRECATED_ATTRIBUTE virtual bool getIgnoreMovementBoneData() const { return isIgnoreMovementBoneData(); }
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,10 @@ namespace cocostudio {
|
||||||
|
|
||||||
class Bone;
|
class Bone;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class ColliderFilter
|
class ColliderFilter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -124,6 +127,8 @@ private:
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @brief ContourSprite used to draw the contour of the display
|
* @brief ContourSprite used to draw the contour of the display
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
class ColliderDetector : public cocos2d::Object
|
class ColliderDetector : public cocos2d::Object
|
||||||
{
|
{
|
||||||
|
|
|
@ -57,7 +57,9 @@ public:
|
||||||
float getFloat(const char *key) const;
|
float getFloat(const char *key) const;
|
||||||
bool getBool(const char *key) const;
|
bool getBool(const char *key) const;
|
||||||
const char* getCString(const char *key) const;
|
const char* getCString(const char *key) const;
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
JsonDictionary* getDict() const;
|
JsonDictionary* getDict() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -33,6 +33,9 @@ namespace cocostudio {
|
||||||
class ComController : public cocos2d::Component, public InputDelegate
|
class ComController : public cocos2d::Component, public InputDelegate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/**
|
||||||
|
* @js ctor
|
||||||
|
*/
|
||||||
ComController(void);
|
ComController(void);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -32,6 +32,9 @@ namespace cocostudio {
|
||||||
class ComRender : public cocos2d::Component
|
class ComRender : public cocos2d::Component
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
/**
|
||||||
|
* @js ctor
|
||||||
|
*/
|
||||||
ComRender(void);
|
ComRender(void);
|
||||||
ComRender(cocos2d::Node *node, const char *comName);
|
ComRender(cocos2d::Node *node, const char *comName);
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -43,7 +43,10 @@ namespace tinyxml2
|
||||||
|
|
||||||
namespace cocostudio {
|
namespace cocostudio {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class DataReaderHelper : cocos2d::Object
|
class DataReaderHelper : cocos2d::Object
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -58,8 +58,10 @@ public: \
|
||||||
namespace cocostudio {
|
namespace cocostudio {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The base node include a lot of attributes.
|
* The base node include a lot of attributes.
|
||||||
*/
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class BaseData : public cocos2d::Object
|
class BaseData : public cocos2d::Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -125,7 +127,10 @@ enum DisplayType
|
||||||
|
|
||||||
CS_DISPLAY_MAX
|
CS_DISPLAY_MAX
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class DisplayData : public cocos2d::Object
|
class DisplayData : public cocos2d::Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -147,7 +152,10 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class SpriteDisplayData : public DisplayData
|
class SpriteDisplayData : public DisplayData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -179,7 +187,10 @@ public:
|
||||||
BaseData skinData;
|
BaseData skinData;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class ArmatureDisplayData : public DisplayData
|
class ArmatureDisplayData : public DisplayData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -209,7 +220,10 @@ public:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class ParticleDisplayData : public DisplayData
|
class ParticleDisplayData : public DisplayData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -238,6 +252,8 @@ public:
|
||||||
* BoneData used to init a Bone.
|
* BoneData used to init a Bone.
|
||||||
* BoneData keeps a DisplayData list, a Bone can have many display to change.
|
* BoneData keeps a DisplayData list, a Bone can have many display to change.
|
||||||
* The display information saved in the DisplayData
|
* The display information saved in the DisplayData
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
class BoneData : public BaseData
|
class BoneData : public BaseData
|
||||||
{
|
{
|
||||||
|
@ -270,6 +286,8 @@ public:
|
||||||
* ArmatureData saved the Armature name and Bonedata needed for the CCBones in this Armature
|
* ArmatureData saved the Armature name and Bonedata needed for the CCBones in this Armature
|
||||||
* When we create a Armature, we need to get each Bone's BoneData as it's init information.
|
* When we create a Armature, we need to get each Bone's BoneData as it's init information.
|
||||||
* So we can get a BoneData from the Dictionary saved in the ArmatureData.
|
* So we can get a BoneData from the Dictionary saved in the ArmatureData.
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
class ArmatureData : public cocos2d::Object
|
class ArmatureData : public cocos2d::Object
|
||||||
{
|
{
|
||||||
|
@ -313,7 +331,10 @@ enum BlendType
|
||||||
BLEND_ERASE
|
BLEND_ERASE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class FrameData : public BaseData
|
class FrameData : public BaseData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -353,7 +374,10 @@ public:
|
||||||
std::string strSoundEffect;
|
std::string strSoundEffect;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class MovementBoneData : public cocos2d::Object
|
class MovementBoneData : public cocos2d::Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -382,7 +406,10 @@ public:
|
||||||
cocos2d::Array frameList;
|
cocos2d::Array frameList;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class MovementData : public cocos2d::Object
|
class MovementData : public cocos2d::Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -442,6 +469,8 @@ public:
|
||||||
* AnimationData include all movement infomation for the Armature
|
* AnimationData include all movement infomation for the Armature
|
||||||
* The struct is AnimationData -> MovementData -> MovementBoneData -> FrameData
|
* The struct is AnimationData -> MovementData -> MovementBoneData -> FrameData
|
||||||
* -> MovementFrameData
|
* -> MovementFrameData
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
class AnimationData : public cocos2d::Object
|
class AnimationData : public cocos2d::Object
|
||||||
{
|
{
|
||||||
|
@ -482,6 +511,8 @@ struct ContourVertex2 : public cocos2d::Object
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ContourData include a contour vertex information
|
* ContourData include a contour vertex information
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
class ContourData : public cocos2d::Object
|
class ContourData : public cocos2d::Object
|
||||||
{
|
{
|
||||||
|
@ -509,6 +540,8 @@ public:
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TextureData include a texture's information
|
* TextureData include a texture's information
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
class TextureData : public cocos2d::Object
|
class TextureData : public cocos2d::Object
|
||||||
{
|
{
|
||||||
|
|
|
@ -35,20 +35,16 @@ THE SOFTWARE.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace cocostudio {
|
namespace cocostudio {
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class DecorativeDisplay: public cocos2d::Object
|
class DecorativeDisplay: public cocos2d::Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static DecorativeDisplay *create();
|
static DecorativeDisplay *create();
|
||||||
public:
|
public:
|
||||||
/**
|
|
||||||
* @js ctor
|
|
||||||
*/
|
|
||||||
DecorativeDisplay(void);
|
DecorativeDisplay(void);
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
~DecorativeDisplay(void);
|
~DecorativeDisplay(void);
|
||||||
|
|
||||||
virtual bool init();
|
virtual bool init();
|
||||||
|
|
|
@ -34,7 +34,10 @@ class Skin;
|
||||||
class Bone;
|
class Bone;
|
||||||
class DecorativeDisplay;
|
class DecorativeDisplay;
|
||||||
class DisplayData;
|
class DisplayData;
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class DisplayFactory
|
class DisplayFactory
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -33,21 +33,17 @@ namespace cocostudio {
|
||||||
|
|
||||||
class Bone;
|
class Bone;
|
||||||
|
|
||||||
//! DisplayManager manages Bone's display
|
/**! DisplayManager manages Bone's display
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class DisplayManager : public cocos2d::Object
|
class DisplayManager : public cocos2d::Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static DisplayManager *create(Bone *bone);
|
static DisplayManager *create(Bone *bone);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
|
||||||
* @js ctor
|
|
||||||
*/
|
|
||||||
DisplayManager();
|
DisplayManager();
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
~DisplayManager();
|
~DisplayManager();
|
||||||
|
|
||||||
bool init(Bone *bone);
|
bool init(Bone *bone);
|
||||||
|
|
|
@ -29,96 +29,113 @@ THE SOFTWARE.
|
||||||
|
|
||||||
namespace cocostudio {
|
namespace cocostudio {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class InputDelegate
|
class InputDelegate
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
* @js NA
|
* @js ctor
|
||||||
* @lua NA
|
|
||||||
*/
|
*/
|
||||||
InputDelegate(void);
|
InputDelegate(void);
|
||||||
/**
|
/**
|
||||||
* @js NA
|
* @js NA
|
||||||
* @lua NA
|
|
||||||
*/
|
*/
|
||||||
virtual ~InputDelegate(void);
|
virtual ~InputDelegate(void);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
virtual bool isTouchEnabled() const;
|
virtual bool isTouchEnabled() const;
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
virtual void setTouchEnabled(bool value);
|
virtual void setTouchEnabled(bool value);
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
virtual bool isAccelerometerEnabled() const;
|
virtual bool isAccelerometerEnabled() const;
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
virtual void setAccelerometerEnabled(bool value);
|
virtual void setAccelerometerEnabled(bool value);
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
virtual bool isKeypadEnabled() const;
|
virtual bool isKeypadEnabled() const;
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
virtual void setKeypadEnabled(bool value);
|
virtual void setKeypadEnabled(bool value);
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
virtual void setTouchMode(cocos2d::Touch::DispatchMode mode);
|
virtual void setTouchMode(cocos2d::Touch::DispatchMode mode);
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
virtual cocos2d::Touch::DispatchMode getTouchMode() const;
|
virtual cocos2d::Touch::DispatchMode getTouchMode() const;
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
virtual void setTouchPriority(int priority);
|
virtual void setTouchPriority(int priority);
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
virtual int getTouchPriority() const;
|
virtual int getTouchPriority() const;
|
||||||
/** @deprecated Please override onAcceleration */
|
/** @deprecated Please override onAcceleration */
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
CC_DEPRECATED_ATTRIBUTE virtual void didAccelerate(cocos2d::Acceleration* accelerationValue) final { CC_UNUSED_PARAM(accelerationValue); };
|
CC_DEPRECATED_ATTRIBUTE virtual void didAccelerate(cocos2d::Acceleration* accelerationValue) final { CC_UNUSED_PARAM(accelerationValue); };
|
||||||
// Deprecated touch callbacks.
|
// Deprecated touch callbacks.
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
CC_DEPRECATED_ATTRIBUTE virtual bool ccTouchBegan(cocos2d::Touch *pTouch, cocos2d::Event *pEvent) final {CC_UNUSED_PARAM(pTouch); CC_UNUSED_PARAM(pEvent); return false;};
|
CC_DEPRECATED_ATTRIBUTE virtual bool ccTouchBegan(cocos2d::Touch *pTouch, cocos2d::Event *pEvent) final {CC_UNUSED_PARAM(pTouch); CC_UNUSED_PARAM(pEvent); return false;};
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
CC_DEPRECATED_ATTRIBUTE virtual void ccTouchMoved(cocos2d::Touch *pTouch, cocos2d::Event *pEvent) final {CC_UNUSED_PARAM(pTouch); CC_UNUSED_PARAM(pEvent);}
|
CC_DEPRECATED_ATTRIBUTE virtual void ccTouchMoved(cocos2d::Touch *pTouch, cocos2d::Event *pEvent) final {CC_UNUSED_PARAM(pTouch); CC_UNUSED_PARAM(pEvent);}
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
CC_DEPRECATED_ATTRIBUTE virtual void ccTouchEnded(cocos2d::Touch *pTouch, cocos2d::Event *pEvent) final {CC_UNUSED_PARAM(pTouch); CC_UNUSED_PARAM(pEvent);}
|
CC_DEPRECATED_ATTRIBUTE virtual void ccTouchEnded(cocos2d::Touch *pTouch, cocos2d::Event *pEvent) final {CC_UNUSED_PARAM(pTouch); CC_UNUSED_PARAM(pEvent);}
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
CC_DEPRECATED_ATTRIBUTE virtual void ccTouchCancelled(cocos2d::Touch *pTouch, cocos2d::Event *pEvent) final {CC_UNUSED_PARAM(pTouch); CC_UNUSED_PARAM(pEvent);}
|
CC_DEPRECATED_ATTRIBUTE virtual void ccTouchCancelled(cocos2d::Touch *pTouch, cocos2d::Event *pEvent) final {CC_UNUSED_PARAM(pTouch); CC_UNUSED_PARAM(pEvent);}
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
CC_DEPRECATED_ATTRIBUTE virtual void ccTouchesBegan(cocos2d::Set *pTouches, cocos2d::Event *pEvent) final {CC_UNUSED_PARAM(pTouches); CC_UNUSED_PARAM(pEvent);}
|
CC_DEPRECATED_ATTRIBUTE virtual void ccTouchesBegan(cocos2d::Set *pTouches, cocos2d::Event *pEvent) final {CC_UNUSED_PARAM(pTouches); CC_UNUSED_PARAM(pEvent);}
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
CC_DEPRECATED_ATTRIBUTE virtual void ccTouchesMoved(cocos2d::Set *pTouches, cocos2d::Event *pEvent) final {CC_UNUSED_PARAM(pTouches); CC_UNUSED_PARAM(pEvent);}
|
CC_DEPRECATED_ATTRIBUTE virtual void ccTouchesMoved(cocos2d::Set *pTouches, cocos2d::Event *pEvent) final {CC_UNUSED_PARAM(pTouches); CC_UNUSED_PARAM(pEvent);}
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
CC_DEPRECATED_ATTRIBUTE virtual void ccTouchesEnded(cocos2d::Set *pTouches, cocos2d::Event *pEvent) final {CC_UNUSED_PARAM(pTouches); CC_UNUSED_PARAM(pEvent);}
|
CC_DEPRECATED_ATTRIBUTE virtual void ccTouchesEnded(cocos2d::Set *pTouches, cocos2d::Event *pEvent) final {CC_UNUSED_PARAM(pTouches); CC_UNUSED_PARAM(pEvent);}
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
CC_DEPRECATED_ATTRIBUTE virtual void ccTouchesCancelled(cocos2d::Set *pTouches, cocos2d::Event *pEvent) final {CC_UNUSED_PARAM(pTouches); CC_UNUSED_PARAM(pEvent);}
|
CC_DEPRECATED_ATTRIBUTE virtual void ccTouchesCancelled(cocos2d::Set *pTouches, cocos2d::Event *pEvent) final {CC_UNUSED_PARAM(pTouches); CC_UNUSED_PARAM(pEvent);}
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
virtual void onAcceleration(cocos2d::Acceleration* acc, cocos2d::Event* event) {};
|
virtual void onAcceleration(cocos2d::Acceleration* acc, cocos2d::Event* event) {};
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
virtual void onKeyPressed(cocos2d::EventKeyboard::KeyCode keyCode, cocos2d::Event* event) {};
|
virtual void onKeyPressed(cocos2d::EventKeyboard::KeyCode keyCode, cocos2d::Event* event) {};
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
virtual void onKeyReleased(cocos2d::EventKeyboard::KeyCode keyCode, cocos2d::Event* event) {};
|
virtual void onKeyReleased(cocos2d::EventKeyboard::KeyCode keyCode, cocos2d::Event* event) {};
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
virtual bool onTouchBegan(cocos2d::Touch *touch, cocos2d::Event *event);
|
virtual bool onTouchBegan(cocos2d::Touch *touch, cocos2d::Event *event);
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
virtual void onTouchMoved(cocos2d::Touch *touch, cocos2d::Event *event);
|
virtual void onTouchMoved(cocos2d::Touch *touch, cocos2d::Event *event);
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
virtual void onTouchEnded(cocos2d::Touch *touch, cocos2d::Event *event);
|
virtual void onTouchEnded(cocos2d::Touch *touch, cocos2d::Event *event);
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
virtual void onTouchCancelled(cocos2d::Touch *touch, cocos2d::Event *event);
|
virtual void onTouchCancelled(cocos2d::Touch *touch, cocos2d::Event *event);
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
virtual void onTouchesBegan(const std::vector<cocos2d::Touch*>& touches, cocos2d::Event *event);
|
virtual void onTouchesBegan(const std::vector<cocos2d::Touch*>& touches, cocos2d::Event *event);
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
virtual void onTouchesMoved(const std::vector<cocos2d::Touch*>& touches, cocos2d::Event *event);
|
virtual void onTouchesMoved(const std::vector<cocos2d::Touch*>& touches, cocos2d::Event *event);
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
virtual void onTouchesEnded(const std::vector<cocos2d::Touch*>& touches, cocos2d::Event *event);
|
virtual void onTouchesEnded(const std::vector<cocos2d::Touch*>& touches, cocos2d::Event *event);
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
virtual void onTouchesCancelled(const std::vector<cocos2d::Touch*>& touches, cocos2d::Event *event);
|
virtual void onTouchesCancelled(const std::vector<cocos2d::Touch*>& touches, cocos2d::Event *event);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -46,18 +46,14 @@ enum AnimationType
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class ProcessBase : public cocos2d::Object
|
class ProcessBase : public cocos2d::Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
|
||||||
* @js ctor
|
|
||||||
*/
|
|
||||||
ProcessBase(void);
|
ProcessBase(void);
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
virtual ~ProcessBase(void);
|
virtual ~ProcessBase(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -34,14 +34,34 @@ namespace cocostudio {
|
||||||
class GUIReader : public cocos2d::Object
|
class GUIReader : public cocos2d::Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/**
|
||||||
|
* @js ctor
|
||||||
|
*/
|
||||||
GUIReader();
|
GUIReader();
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
~GUIReader();
|
~GUIReader();
|
||||||
|
/**
|
||||||
|
* @js getInstance
|
||||||
|
* @lua getInstance
|
||||||
|
*/
|
||||||
static GUIReader* shareReader();
|
static GUIReader* shareReader();
|
||||||
|
/**
|
||||||
|
* @js purge
|
||||||
|
*/
|
||||||
static void purgeGUIReader();
|
static void purgeGUIReader();
|
||||||
|
|
||||||
gui::UIWidget* widgetFromJsonFile(const char* fileName);
|
gui::UIWidget* widgetFromJsonFile(const char* fileName);
|
||||||
int getVersionInteger(const char* str);
|
int getVersionInteger(const char* str);
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
void storeFileDesignSize(const char* fileName, const cocos2d::Size &size);
|
void storeFileDesignSize(const char* fileName, const cocos2d::Size &size);
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
const cocos2d::Size getFileDesignSize(const char* fileName) const;
|
const cocos2d::Size getFileDesignSize(const char* fileName) const;
|
||||||
protected:
|
protected:
|
||||||
std::string m_strFilePath;
|
std::string m_strFilePath;
|
||||||
|
|
|
@ -45,6 +45,10 @@ public:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static SceneReader* getInstance();
|
static SceneReader* getInstance();
|
||||||
|
/**
|
||||||
|
* @js purge
|
||||||
|
* @lua destroySceneReader
|
||||||
|
*/
|
||||||
void purgeSceneReader();
|
void purgeSceneReader();
|
||||||
static const char* sceneReaderVersion();
|
static const char* sceneReaderVersion();
|
||||||
cocos2d::Node* createNodeWithSceneFile(const char *pszFileName);
|
cocos2d::Node* createNodeWithSceneFile(const char *pszFileName);
|
||||||
|
|
|
@ -37,6 +37,9 @@ public:
|
||||||
static Skin *createWithSpriteFrameName(const char *pszSpriteFrameName);
|
static Skin *createWithSpriteFrameName(const char *pszSpriteFrameName);
|
||||||
static Skin *create(const char *pszFileName);
|
static Skin *create(const char *pszFileName);
|
||||||
public:
|
public:
|
||||||
|
/**
|
||||||
|
* @js ctor
|
||||||
|
*/
|
||||||
Skin();
|
Skin();
|
||||||
|
|
||||||
virtual bool initWithSpriteFrameName(const std::string& spriteFrameName) override;
|
virtual bool initWithSpriteFrameName(const std::string& spriteFrameName) override;
|
||||||
|
@ -47,8 +50,15 @@ public:
|
||||||
|
|
||||||
cocos2d::AffineTransform getNodeToWorldTransform() const override;
|
cocos2d::AffineTransform getNodeToWorldTransform() const override;
|
||||||
cocos2d::AffineTransform getNodeToWorldTransformAR() const;
|
cocos2d::AffineTransform getNodeToWorldTransformAR() const;
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual void setSkinData(const BaseData &data);
|
virtual void setSkinData(const BaseData &data);
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual const BaseData &getSkinData() const;
|
virtual const BaseData &getSkinData() const;
|
||||||
|
|
||||||
virtual void setBone(Bone *bone);
|
virtual void setBone(Bone *bone);
|
||||||
|
|
|
@ -31,6 +31,10 @@ using namespace std;
|
||||||
|
|
||||||
namespace cocostudio {
|
namespace cocostudio {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class SpriteFrameCacheHelper
|
class SpriteFrameCacheHelper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -48,14 +52,7 @@ public:
|
||||||
void addSpriteFrameFromFile(const char *plistPath, const char *imagePath);
|
void addSpriteFrameFromFile(const char *plistPath, const char *imagePath);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/**
|
|
||||||
* @js ctor
|
|
||||||
*/
|
|
||||||
SpriteFrameCacheHelper();
|
SpriteFrameCacheHelper();
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
~SpriteFrameCacheHelper();
|
~SpriteFrameCacheHelper();
|
||||||
|
|
||||||
static SpriteFrameCacheHelper *_spriteFrameCacheHelper;
|
static SpriteFrameCacheHelper *_spriteFrameCacheHelper;
|
||||||
|
|
|
@ -32,6 +32,8 @@ namespace cocostudio {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* use to calculate the matrix of node from parent node
|
* use to calculate the matrix of node from parent node
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
class TransformHelp
|
class TransformHelp
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,6 +34,10 @@ namespace cocostudio {
|
||||||
class Bone;
|
class Bone;
|
||||||
class ArmatureAnimation;
|
class ArmatureAnimation;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class Tween : public ProcessBase
|
class Tween : public ProcessBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -43,14 +47,7 @@ public:
|
||||||
*/
|
*/
|
||||||
static Tween *create(Bone *bone);
|
static Tween *create(Bone *bone);
|
||||||
public:
|
public:
|
||||||
/**
|
|
||||||
* @js ctor
|
|
||||||
*/
|
|
||||||
Tween(void);
|
Tween(void);
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
virtual ~Tween(void);
|
virtual ~Tween(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -79,7 +79,10 @@ enum TweenType
|
||||||
|
|
||||||
TWEEN_EASING_MAX = 10000
|
TWEEN_EASING_MAX = 10000
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class TweenFunction
|
class TweenFunction
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -45,7 +45,10 @@ namespace cocostudio {
|
||||||
EDIC_TYPEARRAY,
|
EDIC_TYPEARRAY,
|
||||||
EDIC_TYPEOBJECT
|
EDIC_TYPEOBJECT
|
||||||
}DicItemType;
|
}DicItemType;
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class JsonDictionary
|
class JsonDictionary
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -31,7 +31,10 @@
|
||||||
#define DICTOOL DictionaryHelper::shareHelper()
|
#define DICTOOL DictionaryHelper::shareHelper()
|
||||||
|
|
||||||
namespace cocostudio {
|
namespace cocostudio {
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class DictionaryHelper
|
class DictionaryHelper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -29,20 +29,19 @@
|
||||||
|
|
||||||
namespace gui{
|
namespace gui{
|
||||||
|
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
class UIButton : public UIWidget
|
class UIButton : public UIWidget
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Default constructor
|
* Default constructor
|
||||||
|
* @js ctor
|
||||||
*/
|
*/
|
||||||
UIButton();
|
UIButton();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default destructor
|
* Default destructor
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual ~UIButton();
|
virtual ~UIButton();
|
||||||
|
|
||||||
|
|
|
@ -38,20 +38,19 @@ typedef enum
|
||||||
typedef void (cocos2d::Object::*SEL_SelectedStateEvent)(cocos2d::Object*,CheckBoxEventType);
|
typedef void (cocos2d::Object::*SEL_SelectedStateEvent)(cocos2d::Object*,CheckBoxEventType);
|
||||||
#define checkboxselectedeventselector(_SELECTOR) (SEL_SelectedStateEvent)(&_SELECTOR)
|
#define checkboxselectedeventselector(_SELECTOR) (SEL_SelectedStateEvent)(&_SELECTOR)
|
||||||
|
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
class UICheckBox : public UIWidget
|
class UICheckBox : public UIWidget
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Default constructor
|
* Default constructor
|
||||||
|
* @js ctor
|
||||||
*/
|
*/
|
||||||
UICheckBox();
|
UICheckBox();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default destructor
|
* Default destructor
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual ~UICheckBox();
|
virtual ~UICheckBox();
|
||||||
|
|
||||||
|
@ -152,7 +151,10 @@ public:
|
||||||
//override "isFlipY" method of widget.
|
//override "isFlipY" method of widget.
|
||||||
virtual bool isFlipY() override;
|
virtual bool isFlipY() override;
|
||||||
|
|
||||||
//override "onTouchEnded" method of widget.
|
/** override "onTouchEnded" method of widget.
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual void onTouchEnded(const cocos2d::Point &touchPoint) override;
|
virtual void onTouchEnded(const cocos2d::Point &touchPoint) override;
|
||||||
|
|
||||||
//override "getContentSize" method of widget.
|
//override "getContentSize" method of widget.
|
||||||
|
|
|
@ -27,10 +27,6 @@
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
|
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
class UIHelper
|
class UIHelper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -29,20 +29,19 @@
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
|
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
class UIImageView : public UIWidget
|
class UIImageView : public UIWidget
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Default constructor
|
* Default constructor
|
||||||
|
* @js ctor
|
||||||
*/
|
*/
|
||||||
UIImageView();
|
UIImageView();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default destructor
|
* Default destructor
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual ~UIImageView();
|
virtual ~UIImageView();
|
||||||
|
|
||||||
|
@ -95,10 +94,16 @@ public:
|
||||||
//override "setAnchorPoint" method of widget.
|
//override "setAnchorPoint" method of widget.
|
||||||
virtual void setAnchorPoint(const cocos2d::Point &pt) override;
|
virtual void setAnchorPoint(const cocos2d::Point &pt) override;
|
||||||
|
|
||||||
//override "onTouchBegan" method of widget.
|
/** override "onTouchBegan" method of widget.
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual bool onTouchBegan(const cocos2d::Point &touchPoint) override;
|
virtual bool onTouchBegan(const cocos2d::Point &touchPoint) override;
|
||||||
|
|
||||||
//override "onTouchEnded" method of widget.
|
/** override "onTouchEnded" method of widget.
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual void onTouchEnded(const cocos2d::Point &touchPoint) override;
|
virtual void onTouchEnded(const cocos2d::Point &touchPoint) override;
|
||||||
|
|
||||||
//override "ignoreContentAdaptWithSize" method of widget.
|
//override "ignoreContentAdaptWithSize" method of widget.
|
||||||
|
@ -110,7 +115,14 @@ public:
|
||||||
virtual const char* getDescription() const override;
|
virtual const char* getDescription() const override;
|
||||||
|
|
||||||
void setDoubleClickEnabled(bool able);
|
void setDoubleClickEnabled(bool able);
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
void doubleClickEvent();
|
void doubleClickEvent();
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
*/
|
||||||
void checkDoubleClick(float dt);
|
void checkDoubleClick(float dt);
|
||||||
virtual const cocos2d::Size& getContentSize() const override;
|
virtual const cocos2d::Size& getContentSize() const override;
|
||||||
virtual cocos2d::Node* getVirtualRenderer() override;
|
virtual cocos2d::Node* getVirtualRenderer() override;
|
||||||
|
|
|
@ -29,7 +29,10 @@
|
||||||
#include "gui/UILayout.h"
|
#include "gui/UILayout.h"
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
class UIInputManager
|
class UIInputManager
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -30,20 +30,19 @@
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
|
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
class UILabel : public UIWidget
|
class UILabel : public UIWidget
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Default constructor
|
* Default constructor
|
||||||
|
* @js ctor
|
||||||
*/
|
*/
|
||||||
UILabel();
|
UILabel();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default destructor
|
* Default destructor
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual ~UILabel();
|
virtual ~UILabel();
|
||||||
|
|
||||||
|
|
|
@ -29,20 +29,19 @@
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
|
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
class UILabelBMFont : public UIWidget
|
class UILabelBMFont : public UIWidget
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Default constructor
|
* Default constructor
|
||||||
|
* @js ctor
|
||||||
*/
|
*/
|
||||||
UILabelBMFont();
|
UILabelBMFont();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default destructor
|
* Default destructor
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual ~UILabelBMFont();
|
virtual ~UILabelBMFont();
|
||||||
|
|
||||||
|
|
|
@ -39,11 +39,14 @@ class UILayer : public cocos2d::Layer
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Default constructor
|
* Default constructor
|
||||||
|
* @js ctor
|
||||||
*/
|
*/
|
||||||
UILayer();
|
UILayer();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default destructor
|
* Default destructor
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual ~UILayer();
|
virtual ~UILayer();
|
||||||
|
|
||||||
|
@ -54,14 +57,36 @@ public:
|
||||||
|
|
||||||
//initializes state of uilayer.
|
//initializes state of uilayer.
|
||||||
virtual bool init() override;
|
virtual bool init() override;
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual void onEnter() override;
|
virtual void onEnter() override;
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual void onExit() override;
|
virtual void onExit() override;
|
||||||
virtual void onEnterTransitionDidFinish() override;
|
virtual void onEnterTransitionDidFinish() override;
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual bool onTouchBegan(cocos2d::Touch *pTouch, cocos2d::Event *pEvent);
|
virtual bool onTouchBegan(cocos2d::Touch *pTouch, cocos2d::Event *pEvent);
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual void onTouchMoved(cocos2d::Touch *pTouch, cocos2d::Event *pEvent);
|
virtual void onTouchMoved(cocos2d::Touch *pTouch, cocos2d::Event *pEvent);
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual void onTouchEnded(cocos2d::Touch *pTouch, cocos2d::Event *pEvent);
|
virtual void onTouchEnded(cocos2d::Touch *pTouch, cocos2d::Event *pEvent);
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual void onTouchCancelled(cocos2d::Touch *pTouch, cocos2d::Event *pEvent);
|
virtual void onTouchCancelled(cocos2d::Touch *pTouch, cocos2d::Event *pEvent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -109,6 +134,8 @@ public:
|
||||||
* UIInputManager is the touch manager of UILayer.
|
* UIInputManager is the touch manager of UILayer.
|
||||||
*
|
*
|
||||||
* @return UIInputManager.
|
* @return UIInputManager.
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
UIInputManager* getInputManager();
|
UIInputManager* getInputManager();
|
||||||
|
|
||||||
|
|
|
@ -44,21 +44,19 @@ typedef enum
|
||||||
LAYOUT_RELATIVE
|
LAYOUT_RELATIVE
|
||||||
}LayoutType;
|
}LayoutType;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
class UILayout : public UIWidget
|
class UILayout : public UIWidget
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Default constructor
|
* Default constructor
|
||||||
|
* @js ctor
|
||||||
*/
|
*/
|
||||||
UILayout();
|
UILayout();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default destructor
|
* Default destructor
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual ~UILayout();
|
virtual ~UILayout();
|
||||||
|
|
||||||
|
|
|
@ -35,20 +35,20 @@ typedef enum
|
||||||
LAYOUT_PARAMETER_LINEAR,
|
LAYOUT_PARAMETER_LINEAR,
|
||||||
LAYOUT_PARAMETER_RELATIVE
|
LAYOUT_PARAMETER_RELATIVE
|
||||||
}LayoutParameterType;
|
}LayoutParameterType;
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
class UILayoutParameter : public cocos2d::Object
|
class UILayoutParameter : public cocos2d::Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Default constructor
|
* Default constructor
|
||||||
|
* @js ctor
|
||||||
*/
|
*/
|
||||||
UILayoutParameter() : _margin(UIMargin()){_layoutParameterType = LAYOUT_PARAMETER_NONE;};
|
UILayoutParameter() : _margin(UIMargin()){_layoutParameterType = LAYOUT_PARAMETER_NONE;};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default destructor
|
* Default destructor
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual ~UILayoutParameter(){};
|
virtual ~UILayoutParameter(){};
|
||||||
|
|
||||||
|
@ -64,6 +64,8 @@ public:
|
||||||
* @see UIMargin
|
* @see UIMargin
|
||||||
*
|
*
|
||||||
* @param margin
|
* @param margin
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
void setMargin(const UIMargin& margin);
|
void setMargin(const UIMargin& margin);
|
||||||
|
|
||||||
|
@ -73,6 +75,8 @@ public:
|
||||||
* @see UIMargin
|
* @see UIMargin
|
||||||
*
|
*
|
||||||
* @return const UIMargin&
|
* @return const UIMargin&
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
const UIMargin& getMargin() const;
|
const UIMargin& getMargin() const;
|
||||||
|
|
||||||
|
|
|
@ -56,11 +56,14 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default constructor
|
* Default constructor
|
||||||
|
* @js ctor
|
||||||
*/
|
*/
|
||||||
UIListView();
|
UIListView();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default destructor
|
* Default destructor
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual ~UIListView();
|
virtual ~UIListView();
|
||||||
|
|
||||||
|
|
|
@ -34,20 +34,20 @@ typedef enum
|
||||||
LoadingBarTypeLeft,
|
LoadingBarTypeLeft,
|
||||||
LoadingBarTypeRight
|
LoadingBarTypeRight
|
||||||
}LoadingBarType;
|
}LoadingBarType;
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
class UILoadingBar : public UIWidget
|
class UILoadingBar : public UIWidget
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Default constructor
|
* Default constructor
|
||||||
|
* @js ctor
|
||||||
*/
|
*/
|
||||||
UILoadingBar();
|
UILoadingBar();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default destructor
|
* Default destructor
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual ~UILoadingBar();
|
virtual ~UILoadingBar();
|
||||||
|
|
||||||
|
|
|
@ -49,11 +49,14 @@ class UIPageView : public UILayout , public UIScrollInterface
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Default constructor
|
* Default constructor
|
||||||
|
* @js ctor
|
||||||
*/
|
*/
|
||||||
UIPageView();
|
UIPageView();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default destructor
|
* Default destructor
|
||||||
|
* @lua NA
|
||||||
|
* @js NA
|
||||||
*/
|
*/
|
||||||
virtual ~UIPageView();
|
virtual ~UIPageView();
|
||||||
|
|
||||||
|
@ -127,16 +130,28 @@ public:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//override "onTouchBegan" method of widget.
|
/**override "onTouchBegan" method of widget.
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual bool onTouchBegan(const cocos2d::Point &touchPoint) override;
|
virtual bool onTouchBegan(const cocos2d::Point &touchPoint) override;
|
||||||
|
|
||||||
//override "onTouchMoved" method of widget.
|
/**override "onTouchMoved" method of widget.
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual void onTouchMoved(const cocos2d::Point &touchPoint) override;
|
virtual void onTouchMoved(const cocos2d::Point &touchPoint) override;
|
||||||
|
|
||||||
//override "onTouchEnded" method of widget.
|
/**override "onTouchEnded" method of widget.
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual void onTouchEnded(const cocos2d::Point &touchPoint) override;
|
virtual void onTouchEnded(const cocos2d::Point &touchPoint) override;
|
||||||
|
|
||||||
//override "onTouchCancelled" method of widget.
|
/**override "onTouchCancelled" method of widget.
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual void onTouchCancelled(const cocos2d::Point &touchPoint) override;
|
virtual void onTouchCancelled(const cocos2d::Point &touchPoint) override;
|
||||||
|
|
||||||
//override "update" method of widget.
|
//override "update" method of widget.
|
||||||
|
|
|
@ -30,9 +30,8 @@
|
||||||
namespace gui {
|
namespace gui {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @js NA
|
* @js NA
|
||||||
* @lua NA
|
*/
|
||||||
*/
|
|
||||||
class UIRootWidget : public UILayout
|
class UIRootWidget : public UILayout
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -43,6 +42,7 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default destructor
|
* Default destructor
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual ~UIRootWidget();
|
virtual ~UIRootWidget();
|
||||||
|
|
||||||
|
|
|
@ -60,11 +60,14 @@ class UIScrollView : public UILayout , public UIScrollInterface
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Default constructor
|
* Default constructor
|
||||||
|
* @js ctor
|
||||||
*/
|
*/
|
||||||
UIScrollView();
|
UIScrollView();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default destructor
|
* Default destructor
|
||||||
|
* @lua NA
|
||||||
|
* @js NA
|
||||||
*/
|
*/
|
||||||
virtual ~UIScrollView();
|
virtual ~UIScrollView();
|
||||||
|
|
||||||
|
|
|
@ -37,20 +37,19 @@ typedef enum
|
||||||
typedef void (cocos2d::Object::*SEL_SlidPercentChangedEvent)(cocos2d::Object*,SliderEventType);
|
typedef void (cocos2d::Object::*SEL_SlidPercentChangedEvent)(cocos2d::Object*,SliderEventType);
|
||||||
#define sliderpercentchangedselector(_SELECTOR) (SEL_SlidPercentChangedEvent)(&_SELECTOR)
|
#define sliderpercentchangedselector(_SELECTOR) (SEL_SlidPercentChangedEvent)(&_SELECTOR)
|
||||||
|
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
class UISlider : public UIWidget
|
class UISlider : public UIWidget
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Default constructor
|
* Default constructor
|
||||||
|
* @js ctor
|
||||||
*/
|
*/
|
||||||
UISlider();
|
UISlider();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default destructor
|
* Default destructor
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual ~UISlider();
|
virtual ~UISlider();
|
||||||
|
|
||||||
|
|
|
@ -32,14 +32,18 @@ namespace gui {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @js NA
|
* @js NA
|
||||||
* @lua NA
|
|
||||||
*/
|
*/
|
||||||
class UICCTextField: public cocos2d::TextFieldTTF, public cocos2d::TextFieldDelegate
|
class UICCTextField: public cocos2d::TextFieldTTF, public cocos2d::TextFieldDelegate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
UICCTextField();
|
UICCTextField();
|
||||||
|
/**
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
~UICCTextField();
|
~UICCTextField();
|
||||||
|
/**
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual void onEnter();
|
virtual void onEnter();
|
||||||
|
|
||||||
// static
|
// static
|
||||||
|
@ -97,13 +101,18 @@ typedef void (cocos2d::Object::*SEL_TextFieldEvent)(cocos2d::Object*, TextFiledE
|
||||||
#define textfieldeventselector(_SELECTOR) (SEL_TextFieldEvent)(&_SELECTOR)
|
#define textfieldeventselector(_SELECTOR) (SEL_TextFieldEvent)(&_SELECTOR)
|
||||||
|
|
||||||
/** class UITextField : public UIWidget
|
/** class UITextField : public UIWidget
|
||||||
* @js NA
|
*/
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
class UITextField : public UIWidget
|
class UITextField : public UIWidget
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/**
|
||||||
|
* @js ctor
|
||||||
|
*/
|
||||||
UITextField();
|
UITextField();
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual ~UITextField();
|
virtual ~UITextField();
|
||||||
static UITextField* create();
|
static UITextField* create();
|
||||||
virtual bool init() override;
|
virtual bool init() override;
|
||||||
|
|
|
@ -72,20 +72,20 @@ typedef enum
|
||||||
|
|
||||||
typedef void (cocos2d::Object::*SEL_TouchEvent)(cocos2d::Object*,TouchEventType);
|
typedef void (cocos2d::Object::*SEL_TouchEvent)(cocos2d::Object*,TouchEventType);
|
||||||
#define toucheventselector(_SELECTOR) (SEL_TouchEvent)(&_SELECTOR)
|
#define toucheventselector(_SELECTOR) (SEL_TouchEvent)(&_SELECTOR)
|
||||||
/**
|
|
||||||
* @js NA
|
|
||||||
* @lua NA
|
|
||||||
*/
|
|
||||||
class UIWidget : public cocos2d::Object
|
class UIWidget : public cocos2d::Object
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Default constructor
|
* Default constructor
|
||||||
|
* @js ctor
|
||||||
*/
|
*/
|
||||||
UIWidget(void);
|
UIWidget(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default destructor
|
* Default destructor
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual ~UIWidget();
|
virtual ~UIWidget();
|
||||||
|
|
||||||
|
@ -613,6 +613,10 @@ public:
|
||||||
virtual void setCascadeOpacityEnabled(bool cascadeOpacityEnabled);
|
virtual void setCascadeOpacityEnabled(bool cascadeOpacityEnabled);
|
||||||
virtual bool isCascadeColorEnabled();
|
virtual bool isCascadeColorEnabled();
|
||||||
virtual void setCascadeColorEnabled(bool cascadeColorEnabled);
|
virtual void setCascadeColorEnabled(bool cascadeColorEnabled);
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
void setBlendFunc(cocos2d::BlendFunc blendFunc);
|
void setBlendFunc(cocos2d::BlendFunc blendFunc);
|
||||||
|
|
||||||
//cocos action
|
//cocos action
|
||||||
|
@ -877,12 +881,22 @@ public:
|
||||||
virtual const char* getDescription() const;
|
virtual const char* getDescription() const;
|
||||||
|
|
||||||
UIWidget* clone();
|
UIWidget* clone();
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual void onEnter();
|
virtual void onEnter();
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual void onExit();
|
virtual void onExit();
|
||||||
|
|
||||||
void updateSizeAndPosition();
|
void updateSizeAndPosition();
|
||||||
|
/**
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
|
*/
|
||||||
virtual Object* getUserObject() { return _userObject; }
|
virtual Object* getUserObject() { return _userObject; }
|
||||||
/**
|
/**
|
||||||
* @js NA
|
* @js NA
|
||||||
|
@ -899,6 +913,8 @@ public:
|
||||||
* The UserObject will be released in Node's destructure.
|
* The UserObject will be released in Node's destructure.
|
||||||
*
|
*
|
||||||
* @param userObject A user assigned Object
|
* @param userObject A user assigned Object
|
||||||
|
* @js NA
|
||||||
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual void setUserObject(Object *userObject);
|
virtual void setUserObject(Object *userObject);
|
||||||
/*temp action*/
|
/*temp action*/
|
||||||
|
|
|
@ -13,7 +13,7 @@ This project is based on the famous <A HREF="http://www.cocos2d-iphone.org">"coc
|
||||||
- twitter: http://twitter.com/cocos2dx/
|
- twitter: http://twitter.com/cocos2dx/
|
||||||
- weibo: http://weibo.com/cocos2dx/
|
- weibo: http://weibo.com/cocos2dx/
|
||||||
- wiki: http://wiki.cocos2d-x.org/
|
- wiki: http://wiki.cocos2d-x.org/
|
||||||
- show cases: http://www.cocos2d-x.org/projects/cocos2d-x/apps
|
- show cases: http://www.cocos2d-x.org/games
|
||||||
|
|
||||||
- <A HREF="http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Tutorials">Tutorials of Cocos2dxSimpleGame</A>
|
- <A HREF="http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Tutorials">Tutorials of Cocos2dxSimpleGame</A>
|
||||||
- <A HREF="http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Installation_and_First_run">Installation and First run</A>
|
- <A HREF="http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Installation_and_First_run">Installation and First run</A>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
3bc6566e5802e181c4baf91b8346473653c6d4ea
|
a245976c7421d00732cd7d3a1e18a09579794c70
|
Loading…
Reference in New Issue