Package arc.scene.style
Interface Drawable
- All Known Subinterfaces:
TransformDrawable
- All Known Implementing Classes:
BaseDrawable
,NinePatchDrawable
,ScaledNinePatchDrawable
,TextureRegionDrawable
,TiledDrawable
public interface Drawable
A drawable knows how to draw itself at a given rectangular size. It provides border sizes and a minimum size so that other code
can determine how to size and position content.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(float x, float y, float width, float height) Draws this drawable at the specified bounds.void
draw
(float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation) float
float
float
float
float
float
default float
void
setBottomHeight
(float bottomHeight) void
setLeftWidth
(float leftWidth) void
setMinHeight
(float minHeight) void
setMinWidth
(float minWidth) void
setRightWidth
(float rightWidth) void
setTopHeight
(float topHeight)
-
Method Details
-
draw
void draw(float x, float y, float width, float height) Draws this drawable at the specified bounds. -
draw
void draw(float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation) -
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) -
imageSize
default float imageSize()
-