public class BlockDrawable
extends com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable
Constructor and Description |
---|
BlockDrawable(int id) |
Modifier and Type | Method and Description |
---|---|
void |
draw(com.badlogic.gdx.graphics.g2d.Batch batch,
float x,
float y,
float width,
float height) |
float |
getBottomHeight() |
float |
getLeftWidth() |
float |
getMinHeight() |
float |
getMinWidth() |
float |
getRightWidth() |
float |
getTopHeight() |
draw, getRegion, setRegion
getName, setBottomHeight, setLeftWidth, setMinHeight, setMinWidth, setName, setRightWidth, setTopHeight, toString
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float x, float y, float width, float height)
draw
in interface com.badlogic.gdx.scenes.scene2d.utils.Drawable
draw
in class com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable
public float getLeftWidth()
getLeftWidth
in interface com.badlogic.gdx.scenes.scene2d.utils.Drawable
getLeftWidth
in class com.badlogic.gdx.scenes.scene2d.utils.BaseDrawable
public float getRightWidth()
getRightWidth
in interface com.badlogic.gdx.scenes.scene2d.utils.Drawable
getRightWidth
in class com.badlogic.gdx.scenes.scene2d.utils.BaseDrawable
public float getTopHeight()
getTopHeight
in interface com.badlogic.gdx.scenes.scene2d.utils.Drawable
getTopHeight
in class com.badlogic.gdx.scenes.scene2d.utils.BaseDrawable
public float getBottomHeight()
getBottomHeight
in interface com.badlogic.gdx.scenes.scene2d.utils.Drawable
getBottomHeight
in class com.badlogic.gdx.scenes.scene2d.utils.BaseDrawable
public float getMinHeight()
getMinHeight
in interface com.badlogic.gdx.scenes.scene2d.utils.Drawable
getMinHeight
in class com.badlogic.gdx.scenes.scene2d.utils.BaseDrawable
public float getMinWidth()
getMinWidth
in interface com.badlogic.gdx.scenes.scene2d.utils.Drawable
getMinWidth
in class com.badlogic.gdx.scenes.scene2d.utils.BaseDrawable