public class BaseDrawable extends java.lang.Object implements Drawable
| Constructor and Description |
|---|
BaseDrawable() |
BaseDrawable(Drawable drawable)
Creates a new empty drawable with the same sizing information as the specified drawable.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(SpriteBatch batch,
float x,
float y,
float width,
float height)
Draws this drawable at the specified bounds.
|
float |
getBottomHeight() |
float |
getLeftWidth() |
float |
getMinHeight() |
float |
getMinWidth() |
float |
getRightWidth() |
float |
getTopHeight() |
void |
setBottomHeight(float bottomHeight) |
void |
setLeftWidth(float leftWidth) |
void |
setMinHeight(float minHeight) |
void |
setMinWidth(float minWidth) |
void |
setRightWidth(float rightWidth) |
void |
setTopHeight(float topHeight) |
public BaseDrawable()
public BaseDrawable(Drawable drawable)
public void draw(SpriteBatch batch, float x, float y, float width, float height)
DrawableSpriteBatch.getColor(), possibly by
mixing its own color.public float getLeftWidth()
getLeftWidth in interface Drawablepublic void setLeftWidth(float leftWidth)
setLeftWidth in interface Drawablepublic float getRightWidth()
getRightWidth in interface Drawablepublic void setRightWidth(float rightWidth)
setRightWidth in interface Drawablepublic float getTopHeight()
getTopHeight in interface Drawablepublic void setTopHeight(float topHeight)
setTopHeight in interface Drawablepublic float getBottomHeight()
getBottomHeight in interface Drawablepublic void setBottomHeight(float bottomHeight)
setBottomHeight in interface Drawablepublic float getMinWidth()
getMinWidth in interface Drawablepublic void setMinWidth(float minWidth)
setMinWidth in interface Drawablepublic float getMinHeight()
getMinHeight in interface Drawablepublic void setMinHeight(float minHeight)
setMinHeight in interface Drawable