public class UniSprite extends UniRect
Modifier and Type | Field and Description |
---|---|
protected AtlasFrame |
mAtlasFrame |
protected float |
mOffsetX |
protected float |
mOffsetY |
mTextureCoords, NUM_VERTICES
mAlive, mAlpha, mAutoUpdateBounds, mBlendColor, mBlendFunc, mBounds, mBypassCameraClipping, mColor, mDebugFlags, mFrameDuration, mGlobalPosition, mHasOrigin, mId, mInvalidateFlags, mManipulators, mMatrix, mMatrixForVertices, mNumManipulators, mOrigin, mOriginAtCenter, mParent, mPivot, mPosition, mRotation, mScale, mScene, mSize, mSkew, mStackable, mVertices, mVisible, mZ, TAG
FLIP_X, FLIP_Y
ALL, ALPHA, BLEND, BOUNDS, CACHE, CHILDREN, COLOR, DEPTH, FRAME, ORIGIN, PARENT, PARENT_BOUNDS, PERSPECTIVE, PIVOT, POSITION, ROTATION, SCALE, SIZE, SKEW, TEXTURE, TEXTURE_COORDS, TRANSFORM_MATRIX, VERTICES, VISIBILITY, VISUAL
Constructor and Description |
---|
UniSprite() |
Modifier and Type | Method and Description |
---|---|
AtlasFrame |
getAtlasFrame() |
boolean |
isSizeToFrame() |
boolean |
isSizeToTexture() |
void |
onAdded(UniContainer container)
This is called after this object is added to a Container
|
void |
setAtlasFrame(AtlasFrame frame) |
void |
setSizeToFrame(boolean sizeToFrame) |
void |
setSizeToTexture(boolean sizeToTexture) |
resetVertices, setTextureCoords, stack
addManipulator, dispose, drawBounds, drawWireframe, getAlpha, getBlendFunc, getBounds, getColor, getDebugFlags, getFps, getGlobalPosition, getHeight, getId, getInheritedBlendFunc, getInheritedColor, getManipulator, getMatrix, getNumManipulators, getNumStackedChildren, getObjectTree, getOrigin, getParent, getPivot, getPosition, getRotation, getScale, getScene, getSize, getSkew, getWidth, getX, getY, getZ, globalToLocal, invalidate, invalidate, isAlive, isAutoUpdateBounds, isBypassCameraClipping, isOriginAtCenter, isStackable, isVisible, localToGlobal, move, moveTo, onAddedToScene, onRemoved, onRemovedFromScene, queueEvent, removeAllManipulators, removeFromParent, removeManipulator, rotate, setAlive, setAlpha, setAutoUpdateBounds, setBlendFunc, setBypassCameraClipping, setColor, setDebugFlags, setFps, setId, setOrigin, setOrigin, setOriginAtCenter, setPivot, setPivot, setPivotAtCenter, setPosition, setPosition, setRotation, setScale, setScale, setSize, setSize, setSkew, setStackable, setVisible, setX, setY, setZ, shouldDraw, update, updateBounds, updateMatrix, validate
protected AtlasFrame mAtlasFrame
protected float mOffsetX
protected float mOffsetY
public boolean isSizeToTexture()
public void setSizeToTexture(boolean sizeToTexture)
public boolean isSizeToFrame()
public void setSizeToFrame(boolean sizeToFrame)
public void setAtlasFrame(AtlasFrame frame)
public AtlasFrame getAtlasFrame()
public void onAdded(UniContainer container)
UniObject
onAdded
in interface StackableObject
onAdded
in class UniObject