axmol/tools/tolua++/CCProgressTimer.pkg

37 lines
976 B
Plaintext
Raw Normal View History

2012-04-26 14:32:17 +08:00
typedef enum {
kCCProgressTimerTypeRadial,
kCCProgressTimerTypeBar,
} CCProgressTimerType;
class CCProgressTimer : public CCNodeRGBA
2012-04-26 14:32:17 +08:00
{
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);
2013-07-08 11:34:31 +08:00
void setColor(const Color3B& color);
const Color3B& getColor(void);
2012-04-26 14:32:17 +08:00
GLubyte getOpacity(void);
void setOpacity(GLubyte opacity);
2012-06-15 17:26:11 +08:00
void setOpacityModifyRGB(bool bValue);
bool isOpacityModifyRGB(void);
2012-04-26 14:32:17 +08:00
static CCProgressTimer* create(CCSprite* sp);
2012-04-26 14:32:17 +08:00
CCPoint getMidpoint();
void setMidpoint(CCPoint pt);
CCPoint getBarChangeRate();
void setBarChangeRate(CCPoint rate);
2012-06-15 17:26:11 +08:00
bool isReverseDirection();
void setReverseDirection(bool bReverseDir);
2012-04-26 14:32:17 +08:00
};