# Drawables

Edit on GitHub

A Drawable is an interface that provides a draw method that takes in a SpriteBatch, position, scale, rotation, and color. The impelementation can draw anything it wants such as texture slices, nine patches, etc. Drawables are used in Control nodes for certain things such as backgrounds, foregrounds, and general themeing.

A Drawable contains properties for setting a minimum size, margins, and a color.

## Types

• EmptyDrawable: Doesn’t render anything. All the margins and sizes are set to zero. This is great for drawables that can’t be null.

• NinePatchDrawable: Renders a NinePatch.
• TextureSliceDrawable: Renders a TextureSlice.