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 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);
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
};