Interface Drawable
-
- All Known Subinterfaces:
TransformDrawable
- All Known Implementing Classes:
BaseDrawable,NinePatchDrawable,SpriteDrawable,TextureRegionDrawable,TiledDrawable
public interface DrawableA drawable knows how to draw itself at a given rectangular size. It provides padding sizes and a minimum size so that other code can determine how to size and position content.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddraw(Batch batch, float x, float y, float width, float height)Draws this drawable at the specified bounds.floatgetBottomHeight()floatgetLeftWidth()floatgetMinHeight()floatgetMinWidth()floatgetRightWidth()floatgetTopHeight()voidsetBottomHeight(float bottomHeight)voidsetLeftWidth(float leftWidth)voidsetMinHeight(float minHeight)voidsetMinWidth(float minWidth)voidsetRightWidth(float rightWidth)voidsetTopHeight(float topHeight)
-
-
-
Method Detail
-
draw
void draw(Batch batch, float x, float y, float width, float height)
Draws this drawable at the specified bounds. The drawable should be tinted withBatch.getColor(), possibly by mixing its own color.
-
getLeftWidth
float getLeftWidth()
-
setLeftWidth
void setLeftWidth(float leftWidth)
-
getRightWidth
float getRightWidth()
-
setRightWidth
void setRightWidth(float rightWidth)
-
getTopHeight
float getTopHeight()
-
setTopHeight
void setTopHeight(float topHeight)
-
getBottomHeight
float getBottomHeight()
-
setBottomHeight
void setBottomHeight(float bottomHeight)
-
getMinWidth
float getMinWidth()
-
setMinWidth
void setMinWidth(float minWidth)
-
getMinHeight
float getMinHeight()
-
setMinHeight
void setMinHeight(float minHeight)
-
-