| Modifier and Type | Field and Description |
|---|---|
LibgdxNinePatchWrapper |
ninepatch |
| Constructor and Description |
|---|
LibgdxNinePatch(LibgdxNinePatch ninepatch) |
LibgdxNinePatch(LibgdxTexture texture,
int left,
int right,
int top,
int bottom) |
LibgdxNinePatch(LibgdxTextureRegion textureRegion,
int left,
int right,
int top,
int bottom) |
| Modifier and Type | Method and Description |
|---|---|
float |
getBottomHeight() |
Color |
getColor() |
float |
getLeftWidth() |
float |
getMiddleHeight() |
float |
getMiddleWidth() |
float |
getPaddingBottom()
Returns the bottom padding if set, else returns
NinePatch.getBottomHeight(). |
float |
getPaddingLeft()
Returns the left padding if set, else returns
NinePatch.getLeftWidth(). |
float |
getPaddingRight()
Returns the right padding if set, else returns
NinePatch.getRightWidth(). |
float |
getPaddingTop()
Returns the top padding if set, else returns
NinePatch.getTopHeight(). |
float |
getRightWidth() |
Texture |
getTexture() |
float |
getTopHeight() |
float |
getTotalHeight() |
float |
getTotalWidth() |
void |
render(Graphics g,
float x,
float y,
float width,
float height) |
void |
scale(float scaleX,
float scaleY) |
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(float left,
float right,
float top,
float bottom)
Set the padding for content inside this ninepatch.
|
void |
setPaddingBottom(float bottom)
|
void |
setPaddingLeft(float left)
|
void |
setPaddingRight(float right)
|
void |
setPaddingTop(float top)
|
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
|
public final LibgdxNinePatchWrapper ninepatch
public LibgdxNinePatch(LibgdxTexture texture, int left, int right, int top, int bottom)
public LibgdxNinePatch(LibgdxTextureRegion textureRegion, int left, int right, int top, int bottom)
public LibgdxNinePatch(LibgdxNinePatch ninepatch)
public void render(Graphics g, float x, float y, float width, float height)
public void setColor(Color color)
NinePatchpublic float getLeftWidth()
getLeftWidth in interface NinePatchpublic void setLeftWidth(float leftWidth)
NinePatchsetLeftWidth in interface NinePatchpublic float getRightWidth()
getRightWidth in interface NinePatchpublic void setRightWidth(float rightWidth)
NinePatchsetRightWidth in interface NinePatchpublic float getTopHeight()
getTopHeight in interface NinePatchpublic void setTopHeight(float topHeight)
NinePatchsetTopHeight in interface NinePatchpublic float getBottomHeight()
getBottomHeight in interface NinePatchpublic void setBottomHeight(float bottomHeight)
NinePatchsetBottomHeight in interface NinePatchpublic float getMiddleWidth()
getMiddleWidth in interface NinePatchpublic void setMiddleWidth(float middleWidth)
NinePatchdefault total width.setMiddleWidth in interface NinePatchpublic float getMiddleHeight()
getMiddleHeight in interface NinePatchpublic void setMiddleHeight(float middleHeight)
NinePatchdefault total height.setMiddleHeight in interface NinePatchpublic float getTotalWidth()
getTotalWidth in interface NinePatchpublic float getTotalHeight()
getTotalHeight in interface NinePatchpublic void setPadding(float left,
float right,
float top,
float bottom)
NinePatchsetPadding in interface NinePatchpublic float getPaddingLeft()
NinePatchNinePatch.getLeftWidth().getPaddingLeft in interface NinePatchpublic void setPaddingLeft(float left)
NinePatchsetPaddingLeft in interface NinePatchpublic float getPaddingRight()
NinePatchNinePatch.getRightWidth().getPaddingRight in interface NinePatchpublic void setPaddingRight(float right)
NinePatchsetPaddingRight in interface NinePatchpublic float getPaddingTop()
NinePatchNinePatch.getTopHeight().getPaddingTop in interface NinePatchpublic void setPaddingTop(float top)
NinePatchsetPaddingTop in interface NinePatchpublic float getPaddingBottom()
NinePatchNinePatch.getBottomHeight().getPaddingBottom in interface NinePatchpublic void setPaddingBottom(float bottom)
NinePatchsetPaddingBottom in interface NinePatchpublic Texture getTexture()
getTexture in interface NinePatch