mirror of https://github.com/axmolengine/axmol.git
37 lines
998 B
Plaintext
37 lines
998 B
Plaintext
typedef enum {
|
|
kCCProgressTimerTypeRadial,
|
|
kCCProgressTimerTypeBar,
|
|
} CCProgressTimerType;
|
|
|
|
class CCProgressTimer : public CCNode
|
|
{
|
|
CCProgressTimerType getType(void);
|
|
|
|
float getPercentage(void);
|
|
|
|
CCSprite* getSprite(void) { return m_pSprite; }
|
|
|
|
void setPercentage(float fPercentage);
|
|
void setSprite(CCSprite *pSprite);
|
|
void setType(CCProgressTimerType type);
|
|
void setReverseProgress(bool reverse);
|
|
void setAnchorPoint(CCPoint anchorPoint);
|
|
|
|
void setColor(const ccColor3B& color);
|
|
const ccColor3B& getColor(void);
|
|
GLubyte getOpacity(void);
|
|
void setOpacity(GLubyte opacity);
|
|
void setIsOpacityModifyRGB(bool bValue);
|
|
bool getIsOpacityModifyRGB(void);
|
|
|
|
static CCProgressTimer* progressWithSprite(CCSprite* sp);
|
|
|
|
CCPoint getMidpoint();
|
|
void setMidpoint(CCPoint pt);
|
|
CCPoint getBarChangeRate();
|
|
void setBarChangeRate(CCPoint rate);
|
|
|
|
bool getIsReverseDirection();
|
|
void setIsReverseDirection(bool bReverseDir);
|
|
};
|