Uses of Interface
com.badlogic.gdx.scenes.scene2d.utils.Drawable
-
Packages that use Drawable Package Description com.badlogic.gdx.scenes.scene2d.ui com.badlogic.gdx.scenes.scene2d.utils -
-
Uses of Drawable in com.badlogic.gdx.scenes.scene2d.ui
Fields in com.badlogic.gdx.scenes.scene2d.ui declared as Drawable Modifier and Type Field Description Drawable
Label.LabelStyle. background
Drawable
List.ListStyle. background
Drawable
ProgressBar.ProgressBarStyle. background
The progress bar background, stretched only in one direction.Drawable
ScrollPane.ScrollPaneStyle. background
Drawable
SelectBox.SelectBoxStyle. background
Drawable
TextField.TextFieldStyle. background
Drawable
TextTooltip.TextTooltipStyle. background
Drawable
Touchpad.TouchpadStyle. background
Stretched in both directions.Drawable
Tree.TreeStyle. background
Drawable
Window.WindowStyle. background
Drawable
SelectBox.SelectBoxStyle. backgroundDisabled
Drawable
Slider.SliderStyle. backgroundDown
Drawable
SelectBox.SelectBoxStyle. backgroundOpen
Drawable
SelectBox.SelectBoxStyle. backgroundOver
Drawable
Slider.SliderStyle. backgroundOver
Drawable
CheckBox.CheckBoxStyle. checkboxOff
Drawable
CheckBox.CheckBoxStyle. checkboxOffDisabled
Drawable
CheckBox.CheckBoxStyle. checkboxOn
Drawable
CheckBox.CheckBoxStyle. checkboxOnDisabled
Drawable
CheckBox.CheckBoxStyle. checkboxOnOver
Drawable
CheckBox.CheckBoxStyle. checkboxOver
Drawable
Button.ButtonStyle. checked
Drawable
Button.ButtonStyle. checkedDown
Drawable
Button.ButtonStyle. checkedFocused
Drawable
Button.ButtonStyle. checkedOver
Drawable
ScrollPane.ScrollPaneStyle. corner
Drawable
TextField.TextFieldStyle. cursor
Drawable
Button.ButtonStyle. disabled
Drawable
ProgressBar.ProgressBarStyle. disabledBackground
The progress bar background, stretched only in one direction.Drawable
TextField.TextFieldStyle. disabledBackground
Drawable
ProgressBar.ProgressBarStyle. disabledKnob
Drawable
ProgressBar.ProgressBarStyle. disabledKnobAfter
Drawable
ProgressBar.ProgressBarStyle. disabledKnobBefore
Drawable
Button.ButtonStyle. down
Drawable
List.ListStyle. down
Drawable
Button.ButtonStyle. focused
Drawable
TextField.TextFieldStyle. focusedBackground
Drawable
SplitPane.SplitPaneStyle. handle
Drawable
ScrollPane.ScrollPaneStyle. hScroll
Drawable
ScrollPane.ScrollPaneStyle. hScrollKnob
Drawable
ImageButton.ImageButtonStyle. imageChecked
Drawable
ImageTextButton.ImageTextButtonStyle. imageChecked
Drawable
ImageButton.ImageButtonStyle. imageCheckedDown
Drawable
ImageTextButton.ImageTextButtonStyle. imageCheckedDown
Drawable
ImageButton.ImageButtonStyle. imageCheckedOver
Drawable
ImageTextButton.ImageTextButtonStyle. imageCheckedOver
Drawable
ImageButton.ImageButtonStyle. imageDisabled
Drawable
ImageTextButton.ImageTextButtonStyle. imageDisabled
Drawable
ImageButton.ImageButtonStyle. imageDown
Drawable
ImageTextButton.ImageTextButtonStyle. imageDown
Drawable
ImageButton.ImageButtonStyle. imageOver
Drawable
ImageTextButton.ImageTextButtonStyle. imageOver
Drawable
ImageButton.ImageButtonStyle. imageUp
Drawable
ImageTextButton.ImageTextButtonStyle. imageUp
Drawable
ProgressBar.ProgressBarStyle. knob
Drawable
Touchpad.TouchpadStyle. knob
Drawable
ProgressBar.ProgressBarStyle. knobAfter
Drawable
Slider.SliderStyle. knobAfterDown
Drawable
Slider.SliderStyle. knobAfterOver
Drawable
ProgressBar.ProgressBarStyle. knobBefore
Drawable
Slider.SliderStyle. knobBeforeDown
Drawable
Slider.SliderStyle. knobBeforeOver
Drawable
Slider.SliderStyle. knobDown
Drawable
Slider.SliderStyle. knobOver
Drawable
Tree.TreeStyle. minus
Drawable
Tree.TreeStyle. minusOver
Drawable
Button.ButtonStyle. over
Drawable
List.ListStyle. over
Drawable
Tree.TreeStyle. over
Drawable
Tree.TreeStyle. plus
Drawable
Tree.TreeStyle. plusOver
Drawable
List.ListStyle. selection
Drawable
TextField.TextFieldStyle. selection
Drawable
Tree.TreeStyle. selection
Drawable
Window.WindowStyle. stageBackground
Drawable
Button.ButtonStyle. up
Drawable
ScrollPane.ScrollPaneStyle. vScroll
Drawable
ScrollPane.ScrollPaneStyle. vScrollKnob
Methods in com.badlogic.gdx.scenes.scene2d.ui that return Drawable Modifier and Type Method Description Drawable
Container. getBackground()
Drawable
Table. getBackground()
protected Drawable
Button. getBackgroundDrawable()
Returns appropriate background drawable from the style based on the current button state.protected Drawable
ProgressBar. getBackgroundDrawable()
protected Drawable
SelectBox. getBackgroundDrawable()
Returns appropriate background drawable from the style based on the current select box state.protected Drawable
Slider. getBackgroundDrawable()
protected Drawable
TextField. getBackgroundDrawable()
Drawable
Image. getDrawable()
Drawable
Skin. getDrawable(java.lang.String name)
Returns a registered drawable.protected Drawable
Tree. getExpandIcon(N node, float iconX)
Returns the drawable for the expand icon.Drawable
Tree.Node. getIcon()
protected Drawable
CheckBox. getImageDrawable()
protected Drawable
ImageButton. getImageDrawable()
Returns the appropriate image drawable from the style based on the current button state.protected Drawable
ImageTextButton. getImageDrawable()
Returns the appropriate image drawable from the style based on the current button state.protected Drawable
ProgressBar. getKnobAfterDrawable()
protected Drawable
Slider. getKnobAfterDrawable()
protected Drawable
ProgressBar. getKnobBeforeDrawable()
protected Drawable
Slider. getKnobBeforeDrawable()
protected Drawable
ProgressBar. getKnobDrawable()
protected Drawable
Slider. getKnobDrawable()
Drawable
Skin. newDrawable(Drawable drawable)
Returns a copy of the specified drawable.Drawable
Skin. newDrawable(Drawable drawable, float r, float g, float b, float a)
Returns a tinted copy of a drawable found in the skin viaSkin.getDrawable(String)
.Drawable
Skin. newDrawable(Drawable drawable, Color tint)
Returns a tinted copy of a drawable found in the skin viaSkin.getDrawable(String)
.Drawable
Skin. newDrawable(java.lang.String name)
Returns a copy of a drawable found in the skin viaSkin.getDrawable(String)
.Drawable
Skin. newDrawable(java.lang.String name, float r, float g, float b, float a)
Returns a tinted copy of a drawable found in the skin viaSkin.getDrawable(String)
.Drawable
Skin. newDrawable(java.lang.String name, Color tint)
Returns a tinted copy of a drawable found in the skin viaSkin.getDrawable(String)
.Methods in com.badlogic.gdx.scenes.scene2d.ui with parameters of type Drawable Modifier and Type Method Description Container<T>
Container. background(Drawable background)
Table
Table. background(Drawable background)
protected void
TextArea. drawCursor(Drawable cursorPatch, Batch batch, BitmapFont font, float x, float y)
protected void
TextField. drawCursor(Drawable cursorPatch, Batch batch, BitmapFont font, float x, float y)
protected void
Tree. drawExpandIcon(N node, Drawable expandIcon, Batch batch, float x, float y)
protected void
Tree. drawIcon(N node, Drawable icon, Batch batch, float x, float y)
protected void
Tree. drawOver(N node, Drawable over, Batch batch, float x, float y, float width, float height)
protected void
List. drawSelection(Batch batch, Drawable drawable, float x, float y, float width, float height)
protected void
TextArea. drawSelection(Drawable selection, Batch batch, BitmapFont font, float x, float y)
protected void
TextField. drawSelection(Drawable selection, Batch batch, BitmapFont font, float x, float y)
Draws selection rectangleprotected void
Tree. drawSelection(N node, Drawable selection, Batch batch, float x, float y, float width, float height)
protected float
TextArea. getTextY(BitmapFont font, Drawable background)
protected float
TextField. getTextY(BitmapFont font, Drawable background)
Drawable
Skin. newDrawable(Drawable drawable)
Returns a copy of the specified drawable.Drawable
Skin. newDrawable(Drawable drawable, float r, float g, float b, float a)
Returns a tinted copy of a drawable found in the skin viaSkin.getDrawable(String)
.Drawable
Skin. newDrawable(Drawable drawable, Color tint)
Returns a tinted copy of a drawable found in the skin viaSkin.getDrawable(String)
.void
Skin. scale(Drawable drawble)
Scales the drawable'sgetLeftWidth()
,getRightWidth()
,getBottomHeight()
,getTopHeight()
,getMinWidth()
, andgetMinHeight()
.void
Container. setBackground(Drawable background)
Sets the background drawable and adjusts the container's padding to match the background.void
Container. setBackground(Drawable background, boolean adjustPadding)
Sets the background drawable and, if adjustPadding is true, sets the container's padding togetBottomHeight()
,getTopHeight()
,getLeftWidth()
, andgetRightWidth()
.void
Table. setBackground(Drawable background)
void
Image. setDrawable(Drawable drawable)
Sets a new drawable for the image.void
Tree.Node. setIcon(Drawable icon)
Sets an icon that will be drawn to the left of the actor.Constructors in com.badlogic.gdx.scenes.scene2d.ui with parameters of type Drawable Constructor Description Button(Drawable up)
Button(Drawable up, Drawable down)
Button(Drawable up, Drawable down, Drawable checked)
ButtonStyle(Drawable up, Drawable down, Drawable checked)
CheckBoxStyle(Drawable checkboxOff, Drawable checkboxOn, BitmapFont font, Color fontColor)
Image(Drawable drawable)
Creates an image stretched, and aligned center.Image(Drawable drawable, Scaling scaling)
Creates an image aligned center.Image(Drawable drawable, Scaling scaling, int align)
ImageButton(Drawable imageUp)
ImageButton(Drawable imageUp, Drawable imageDown)
ImageButton(Drawable imageUp, Drawable imageDown, Drawable imageChecked)
ImageButtonStyle(Drawable up, Drawable down, Drawable checked, Drawable imageUp, Drawable imageDown, Drawable imageChecked)
ImageTextButtonStyle(Drawable up, Drawable down, Drawable checked, BitmapFont font)
ListStyle(BitmapFont font, Color fontColorSelected, Color fontColorUnselected, Drawable selection)
ProgressBarStyle(Drawable background, Drawable knob)
ScrollPaneStyle(Drawable background, Drawable hScroll, Drawable hScrollKnob, Drawable vScroll, Drawable vScrollKnob)
SelectBoxStyle(BitmapFont font, Color fontColor, Drawable background, ScrollPane.ScrollPaneStyle scrollStyle, List.ListStyle listStyle)
SliderStyle(Drawable background, Drawable knob)
SplitPaneStyle(Drawable handle)
TextButtonStyle(Drawable up, Drawable down, Drawable checked, BitmapFont font)
TextFieldStyle(BitmapFont font, Color fontColor, Drawable cursor, Drawable selection, Drawable background)
TextTooltipStyle(Label.LabelStyle label, Drawable background)
TouchpadStyle(Drawable background, Drawable knob)
TreeStyle(Drawable plus, Drawable minus, Drawable selection)
WindowStyle(BitmapFont titleFont, Color titleFontColor, Drawable background)
-
Uses of Drawable in com.badlogic.gdx.scenes.scene2d.utils
Subinterfaces of Drawable in com.badlogic.gdx.scenes.scene2d.utils Modifier and Type Interface Description interface
TransformDrawable
A drawable that supports scale and rotation.Classes in com.badlogic.gdx.scenes.scene2d.utils that implement Drawable Modifier and Type Class Description class
BaseDrawable
Drawable that stores the size information but doesn't draw anything.class
NinePatchDrawable
Drawable for aNinePatch
.class
SpriteDrawable
Drawable for aSprite
.class
TextureRegionDrawable
Drawable for aTextureRegion
.class
TiledDrawable
Draws aTextureRegion
repeatedly to fill the area, instead of stretching it.Methods in com.badlogic.gdx.scenes.scene2d.utils that return Drawable Modifier and Type Method Description Drawable
TextureRegionDrawable. tint(Color tint)
Creates a new drawable that renders the same as this drawable tinted the specified color.Constructors in com.badlogic.gdx.scenes.scene2d.utils with parameters of type Drawable Constructor Description BaseDrawable(Drawable drawable)
Creates a new empty drawable with the same sizing information as the specified drawable.
-