|
const CCRect & | getRectInPixels (void) |
|
void | setRectInPixels (const CCRect &rectInPixels) |
|
bool | isRotated (void) |
|
void | setRotated (bool bRotated) |
|
const CCRect & | getRect (void) |
| get rect of the frame More...
|
|
void | setRect (const CCRect &rect) |
| set rect of the frame More...
|
|
const CCPoint & | getOffsetInPixels (void) |
| get offset of the frame More...
|
|
void | setOffsetInPixels (const CCPoint &offsetInPixels) |
| set offset of the frame More...
|
|
const CCSize & | getOriginalSizeInPixels (void) |
| get original size of the trimmed image More...
|
|
void | setOriginalSizeInPixels (const CCSize &sizeInPixels) |
| set original size of the trimmed image More...
|
|
const CCSize & | getOriginalSize (void) |
| get original size of the trimmed image More...
|
|
void | setOriginalSize (const CCSize &sizeInPixels) |
| set original size of the trimmed image More...
|
|
CCTexture2D * | getTexture (void) |
| get texture of the frame More...
|
|
void | setTexture (CCTexture2D *pobTexture) |
| set texture of the frame, the texture is retained More...
|
|
const CCPoint & | getOffset (void) |
|
void | setOffset (const CCPoint &offsets) |
|
| ~CCSpriteFrame (void) |
| NA NA. More...
|
|
virtual CCObject * | copyWithZone (CCZone *pZone) |
| NA NA. More...
|
|
bool | initWithTexture (CCTexture2D *pobTexture, const CCRect &rect) |
| Initializes a CCSpriteFrame with a texture, rect in points. More...
|
|
bool | initWithTextureFilename (const char *filename, const CCRect &rect) |
| Initializes a CCSpriteFrame with a texture filename, rect in points; It is assumed that the frame was not trimmed. More...
|
|
bool | initWithTexture (CCTexture2D *pobTexture, const CCRect &rect, bool rotated, const CCPoint &offset, const CCSize &originalSize) |
| Initializes a CCSpriteFrame with a texture, rect, rotated, offset and originalSize in pixels. More...
|
|
bool | initWithTextureFilename (const char *filename, const CCRect &rect, bool rotated, const CCPoint &offset, const CCSize &originalSize) |
| Initializes a CCSpriteFrame with a texture, rect, rotated, offset and originalSize in pixels. More...
|
|
| CCObject (void) |
|
virtual | ~CCObject (void) |
| NA. More...
|
|
void | release (void) |
|
void | retain (void) |
|
CCObject * | autorelease (void) |
|
CCObject * | copy (void) |
|
bool | isSingleReference (void) const |
|
unsigned int | retainCount (void) const |
|
virtual bool | isEqual (const CCObject *pObject) |
|
virtual void | acceptVisitor (CCDataVisitor &visitor) |
|
virtual void | update (float dt) |
|
| CCObject (const CCObject &) |
|
CCObject & | operator= (const CCObject &) |
|
virtual void | encodeWithCoder (DS_Dictionary *) |
|
virtual bool | canEncode () |
|
CCObjectType | getObjType () const |
|
virtual int | getTag () const |
|
virtual void | setTag (int nTag) |
|
void | setObjType (CCObjectType) |
|
virtual CCObject * | copyWithZone (CCZone *pZone) |
|
|
static CCSpriteFrame * | create (const char *filename, const CCRect &rect) |
| Create a CCSpriteFrame with a texture filename, rect in points. More...
|
|
static CCSpriteFrame * | create (const char *filename, const CCRect &rect, bool rotated, const CCPoint &offset, const CCSize &originalSize) |
| Create a CCSpriteFrame with a texture filename, rect, rotated, offset and originalSize in pixels. More...
|
|
static CCSpriteFrame * | createWithTexture (CCTexture2D *pobTexture, const CCRect &rect) |
| Create a CCSpriteFrame with a texture, rect in points. More...
|
|
static CCSpriteFrame * | createWithTexture (CCTexture2D *pobTexture, const CCRect &rect, bool rotated, const CCPoint &offset, const CCSize &originalSize) |
| Create a CCSpriteFrame with a texture, rect, rotated, offset and originalSize in pixels. More...
|
|
static CCObject * | createWithCoder (DS_Dictionary *) |
|
A CCSpriteFrame has:
You can modify the frame of a CCSprite by doing:
CCSpriteFrame *frame = CCSpriteFrame::frameWithTexture(texture, rect, offset); sprite->setDisplayFrame(frame);