| Modifier and Type | Field and Description |
|---|---|
protected float |
clipHeight |
protected float |
clipWidth |
protected float |
clipX |
protected float |
clipY |
BLOCK_TEXTURE_HEIGHT, BLOCK_TEXTURE_WIDTH, dependants, flippedU, flippedV, missing, rotation, sheetHeight, sheetWidth| Constructor and Description |
|---|
ClippedIcon(Icon parent,
float clipX,
float clipY,
float clipWidth,
float clipHeight) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initIcon(Icon baseIcon,
int width,
int height,
int x,
int y,
boolean rotated)
Initializes this
ClippedIcon and clips it based on the clipping set. |
void |
setClipping(float clipX,
float clipY,
float clipWidth,
float clipHeight)
Sets the clipping for this
ClippedIcon. |
addDependant, clip, clip, copy, copyFrom, flip, from, from, from, from, getMaxU, getMaxV, getMinU, getMinV, getRegistered, getRotation, initSprite, isFlippedU, isFlippedV, isRotated, offset, registerIcons, setRotation, setSize, setUVsclearFramesTextureData, generateMipmaps, getFrameCount, getFrameTextureData, getIconHeight, getIconName, getIconWidth, getInterpolatedU, getInterpolatedV, getOriginX, getOriginY, getUnInterpolatedU, getUnInterpolatedV, hasAnimationMetadata, hasCustomLoader, load, loadSprite, loadSpriteFrames, makeAtlasSprite, setFramesTextureData, setIconHeight, setIconWidth, toString, updateAnimationprotected float clipX
protected float clipY
protected float clipWidth
protected float clipHeight
public ClippedIcon(Icon parent, float clipX, float clipY, float clipWidth, float clipHeight)
public void setClipping(float clipX,
float clipY,
float clipWidth,
float clipHeight)
ClippedIcon. Has no effect after the parent icon has been stiched.clipX - x offsetclipY - y offsetclipWidth - the clip widthclipHeight - the clip heightprotected void initIcon(Icon baseIcon, int width, int height, int x, int y, boolean rotated)
ClippedIcon and clips it based on the clipping set.