Example usage for Java com.badlogic.gdx.graphics.g2d NinePatch fields, constructors, methods, implement or subclass
The text is from its open source code.
NinePatch(Texture texture, int left, int right, int top, int bottom) Create a ninepatch by cutting up the given texture into nine patches. | |
NinePatch(TextureRegion region, int left, int right, int top, int bottom) Create a ninepatch by cutting up the given texture region into nine patches. | |
NinePatch(Texture texture, Color color) Construct a degenerate "nine" patch with only a center component. | |
NinePatch(TextureRegion region, Color color) Construct a degenerate "nine" patch with only a center component. | |
NinePatch(NinePatch ninePatch, Color color) | |
NinePatch(Texture texture) Construct a degenerate "nine" patch with only a center component. | |
NinePatch(TextureRegion region) Construct a degenerate "nine" patch with only a center component. | |
NinePatch(TextureRegion... patches) Construct a nine patch from the given nine texture regions. | |
NinePatch(NinePatch ninePatch) |
Texture | getTexture() |
float | getTotalHeight() |
float | getTotalWidth() |
void | scale(float scaleX, float scaleY) Multiplies the top/left/bottom/right sizes and padding by the specified amount. |
void | setBottomHeight(float bottomHeight) Set the draw-time height of the three bottom edge patches |
void | setColor(Color color) Copy given color. |
void | setLeftWidth(float leftWidth) Set the draw-time width of the three left edge patches |
void | setMiddleHeight(float middleHeight) Set the height of the middle row of the patch. |
void | setMiddleWidth(float middleWidth) Set the width of the middle column of the patch. |
void | setPadding(int left, int right, int top, int bottom) Set the padding for content inside this ninepatch. |
void | setRightWidth(float rightWidth) Set the draw-time width of the three right edge patches |
void | setTopHeight(float topHeight) Set the draw-time height of the three top edge patches |