|
const Rect & | getRectInPixels () const |
| Get rect of the sprite frame. More...
|
|
var | getRectInPixels () |
| Get rect of the sprite frame. More...
|
|
local | getRectInPixels () |
| Get rect of the sprite frame. More...
|
|
void | setRectInPixels (const Rect &rectInPixels) |
| Set rect of the sprite frame. More...
|
|
var | setRectInPixels ( var rectInPixels) |
| Set rect of the sprite frame. More...
|
|
local | setRectInPixels ( local rectInPixels) |
| Set rect of the sprite frame. More...
|
|
bool | isRotated () const |
| Is the sprite frame rotated or not. More...
|
|
var | isRotated () |
| Is the sprite frame rotated or not. More...
|
|
local | isRotated () |
| Is the sprite frame rotated or not. More...
|
|
void | setRotated (bool rotated) |
| Set rotated of the sprite frame. More...
|
|
var | setRotated ( var rotated) |
| Set rotated of the sprite frame. More...
|
|
local | setRotated ( local rotated) |
| Set rotated of the sprite frame. More...
|
|
const Rect & | getRect () const |
| Get rect of the frame. More...
|
|
var | getRect () |
| Get rect of the frame. More...
|
|
local | getRect () |
| Get rect of the frame. More...
|
|
void | setRect (const Rect &rect) |
| Set rect of the frame. More...
|
|
var | setRect ( var rect) |
| Set rect of the frame. More...
|
|
local | setRect ( local rect) |
| Set rect of the frame. More...
|
|
const Vec2 & | getOffsetInPixels () const |
| Get offset of the frame. More...
|
|
var | getOffsetInPixels () |
| Get offset of the frame. More...
|
|
local | getOffsetInPixels () |
| Get offset of the frame. More...
|
|
void | setOffsetInPixels (const Vec2 &offsetInPixels) |
| Set offset of the frame. More...
|
|
const Size & | getOriginalSizeInPixels () const |
| Get original size of the trimmed image. More...
|
|
void | setOriginalSizeInPixels (const Size &sizeInPixels) |
| Set original size of the trimmed image. More...
|
|
var | setOriginalSizeInPixels ( var sizeInPixels) |
| Set original size of the trimmed image. More...
|
|
local | setOriginalSizeInPixels ( local sizeInPixels) |
| Set original size of the trimmed image. More...
|
|
const Size & | getOriginalSize () const |
| Get original size of the trimmed image. More...
|
|
var | getOriginalSize () |
| Get original size of the trimmed image. More...
|
|
local | getOriginalSize () |
| Get original size of the trimmed image. More...
|
|
void | setOriginalSize (const Size &sizeInPixels) |
| Set original size of the trimmed image. More...
|
|
var | setOriginalSize ( var sizeInPixels) |
| Set original size of the trimmed image. More...
|
|
local | setOriginalSize ( local sizeInPixels) |
| Set original size of the trimmed image. More...
|
|
Texture2D * | getTexture () |
| Get texture of the frame. More...
|
|
void | setTexture (Texture2D *pobTexture) |
| Set texture of the frame, the texture is retained. More...
|
|
var | setTexture ( var pobTexture) |
| Set texture of the frame, the texture is retained. More...
|
|
local | setTexture ( local pobTexture) |
| Set texture of the frame, the texture is retained. More...
|
|
const Vec2 & | getOffset () const |
| Get offset of the frame. More...
|
|
void | setOffset (const Vec2 &offsets) |
| Set offset of the frame. More...
|
|
var | setOffset ( var offsets) |
| Set offset of the frame. More...
|
|
local | setOffset ( local offsets) |
| Set offset of the frame. More...
|
|
virtual SpriteFrame * | clone () const override |
| Returns a copy of the Ref. More...
|
|
var | clone () |
| Returns a copy of the Ref. More...
|
|
local | clone () |
| Returns a copy of the Ref. More...
|
|
virtual | ~SpriteFrame () |
var | ~SpriteFrame () |
bool | initWithTexture (Texture2D *pobTexture, const Rect &rect) |
| Initializes a SpriteFrame with a texture, rect in points. More...
|
|
var | initWithTexture ( var pobTexture, var rect) |
| Initializes a SpriteFrame with a texture, rect in points. More...
|
|
local | initWithTexture ( local pobTexture, local rect) |
| Initializes a SpriteFrame with a texture, rect in points. More...
|
|
bool | initWithTextureFilename (const std::string &filename, const Rect &rect) |
| Initializes a SpriteFrame with a texture filename, rect in points; It is assumed that the frame was not trimmed. More...
|
|
local | initWithTextureFilename ( local filename, local rect) |
| Initializes a SpriteFrame with a texture filename, rect in points; It is assumed that the frame was not trimmed. More...
|
|
bool | initWithTexture (Texture2D *pobTexture, const Rect &rect, bool rotated, const Vec2 &offset, const Size &originalSize) |
| Initializes a SpriteFrame with a texture, rect, rotated, offset and originalSize in pixels. More...
|
|
var | initWithTexture ( var pobTexture, var rect, var rotated, var offset, var originalSize) |
| Initializes a SpriteFrame with a texture, rect, rotated, offset and originalSize in pixels. More...
|
|
local | initWithTexture ( local pobTexture, local rect, local rotated, local offset, local originalSize) |
| Initializes a SpriteFrame with a texture, rect, rotated, offset and originalSize in pixels. More...
|
|
bool | initWithTextureFilename (const std::string &filename, const Rect &rect, bool rotated, const Vec2 &offset, const Size &originalSize) |
| Initializes a SpriteFrame with a texture, rect, rotated, offset and originalSize in pixels. More...
|
|
void | retain () |
| Retains the ownership. More...
|
|
void | release () |
| Releases the ownership immediately. More...
|
|
Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More...
|
|
unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More...
|
|
virtual | ~Ref () |
| Destructor. More...
|
|
virtual | ~Clonable () |
Ref * | copy () const |
| Returns a copy of the Ref. More...
|
|