APIdia Launch Partner
Top Description Methods
com.badlogic.gdx.scenes.scene2d.utils

public Interface Drawable

Known Direct Subinterfaces
com.badlogic.gdx.scenes.scene2d.utils.TransformDrawable
Known Direct Implementers
com.badlogic.gdx.scenes.scene2d.utils.BaseDrawable
Imports
com.badlogic.gdx.graphics.g2d.Batch

A 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.
Author
Nathan Sweet

Method Summary

Modifier and TypeMethod and Description
public void
draw(Batch batch, float x, float y, float width, float height)

Draws this drawable at the specified bounds.

public float
public float
public float
public float
public float
public float
public void
setBottomHeight(float bottomHeight)

public void
setLeftWidth(float leftWidth)

public void
setMinHeight(float minHeight)

public default void
setMinSize(float minWidth, float minHeight)

public void
setMinWidth(float minWidth)

public default void
setPadding(float topHeight, float leftWidth, float bottomHeight, float rightWidth)

public default void
setPadding(float padding)

public default void
public void
setRightWidth(float rightWidth)

public void
setTopHeight(float topHeight)

Method Detail

drawback to summary
public void draw(Batch batch, float x, float y, float width, float height)

Draws this drawable at the specified bounds. The drawable should be tinted with Batch#getColor(), possibly by mixing its own color.

getBottomHeightback to summary
public float getBottomHeight()
getLeftWidthback to summary
public float getLeftWidth()
getMinHeightback to summary
public float getMinHeight()
getMinWidthback to summary
public float getMinWidth()
getRightWidthback to summary
public float getRightWidth()
getTopHeightback to summary
public float getTopHeight()
setBottomHeightback to summary
public void setBottomHeight(float bottomHeight)
setLeftWidthback to summary
public void setLeftWidth(float leftWidth)
setMinHeightback to summary
public void setMinHeight(float minHeight)
setMinSizeback to summary
public default void setMinSize(float minWidth, float minHeight)
setMinWidthback to summary
public void setMinWidth(float minWidth)
setPaddingback to summary
public default void setPadding(float topHeight, float leftWidth, float bottomHeight, float rightWidth)
setPaddingback to summary
public default void setPadding(float padding)
setPaddingback to summary
public default void setPadding(Drawable from)
setRightWidthback to summary
public void setRightWidth(float rightWidth)
setTopHeightback to summary
public void setTopHeight(float topHeight)