BOTTOM_CENTER, BOTTOM_LEFT, BOTTOM_RIGHT, color, MIDDLE_CENTER, MIDDLE_LEFT, MIDDLE_RIGHT, patches, TOP_CENTER, TOP_LEFT, TOP_RIGHT
Constructor and Description |
---|
RepeatedNinePatch(NinePatch ninePatch) |
RepeatedNinePatch(NinePatch ninePatch,
com.badlogic.gdx.graphics.Color color) |
RepeatedNinePatch(com.badlogic.gdx.graphics.Texture texture,
int left,
int right,
int top,
int bottom)
Create a
RepeatedNinePatch by cutting up the given texture into nine
patches. |
RepeatedNinePatch(TextureRegion region,
int left,
int right,
int top,
int bottom)
Create a
RepeatedNinePatch by cutting up the given texture region into
nine patches. |
getBottomHeight, getColor, getLeftWidth, getMiddleHeight, getMiddleWidth, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getRightWidth, getTexture, getTopHeight, getTotalHeight, getTotalWidth, render, scale, setBottomHeight, setColor, setLeftWidth, setMiddleHeight, setMiddleWidth, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setRightWidth, setTopHeight
public RepeatedNinePatch(com.badlogic.gdx.graphics.Texture texture, int left, int right, int top, int bottom)
RepeatedNinePatch
by cutting up the given texture into nine
patches. The subsequent parameters define the 4 lines that will cut the
texture region into 9 pieces.left
- Pixels from left edge.right
- Pixels from right edge.top
- Pixels from top edge.bottom
- Pixels from bottom edge.public RepeatedNinePatch(TextureRegion region, int left, int right, int top, int bottom)
RepeatedNinePatch
by cutting up the given texture region into
nine patches. The subsequent parameters define the 4 lines that will cut
the texture region into 9 pieces.left
- Pixels from left edge.right
- Pixels from right edge.top
- Pixels from top edge.bottom
- Pixels from bottom edge.public RepeatedNinePatch(NinePatch ninePatch)
public RepeatedNinePatch(NinePatch ninePatch, com.badlogic.gdx.graphics.Color color)