axmol/tools/tolua++/CCSpriteFrame.pkg

27 lines
961 B
Plaintext
Raw Normal View History

2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
class CCSpriteFrame : public CCObject
2011-06-14 14:31:25 +08:00
{
2012-02-02 14:26:38 +08:00
CCRect getRectInPixels(void);
void setRectInPixels(CCRect rectInPixels);
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
bool isRotated(void);
void setRotated(bool bRotated);
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
CCRect getRect(void);
void setRect(CCRect rect);
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
CCPoint getOffsetInPixels(void);
void setOffsetInPixels(CCPoint offsetInPixels);
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
CCSize getOriginalSizeInPixels(void);
void setOriginalSizeInPixels(CCSize sizeInPixels);
2011-06-14 14:31:25 +08:00
2012-02-02 14:26:38 +08:00
CCTexture2D* getTexture(void);
void setTexture(CCTexture2D* pobTexture);
2011-06-14 14:31:25 +08:00
static CCSpriteFrame* create(CCTexture2D* pobTexture, CCRect rect);
static CCSpriteFrame* create(CCTexture2D* pobTexture, CCRect rect, bool rotated, CCPoint offset, CCSize originalSize);
static CCSpriteFrame* createWithTextureFilename(const char* filename, CCRect rect);
static CCSpriteFrame* createWithTextureFilename(const char* filename, CCRect rect, bool rotated, CCPoint offset, CCSize originalSize);
2011-06-14 14:31:25 +08:00
};