axmol/tools/tolua++/CCSpriteFrame.pkg

33 lines
1.1 KiB
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
const CCSize & getOriginalSize();
void setOriginalSize(const CCSize & size);
CCTexture2D* getTexture(void);
2012-02-02 14:26:38 +08:00
void setTexture(CCTexture2D* pobTexture);
2011-06-14 14:31:25 +08:00
const CCPoint & getOffset();
void setOffset(const CCPoint & offsets);
static CCSpriteFrame* create(const char* filename, CCRect rect);
static CCSpriteFrame* create(const char* filename, CCRect rect, bool rotated, CCPoint offset, CCSize originalSize);
static CCSpriteFrame* createWithTexture(CCTexture2D* pobTexture, CCRect rect);
static CCSpriteFrame* createWithTexture(CCTexture2D* pobTexture, CCRect rect, bool rotated, CCPoint offset, CCSize originalSize);
2011-06-14 14:31:25 +08:00
};