Package | Description |
---|---|
com.badlogic.gdx.scenes.scene2d.ui | |
com.badlogic.gdx.scenes.scene2d.utils |
Modifier and Type | Field and Description |
---|---|
Drawable |
Label.LabelStyle.background
Optional.
|
Drawable |
List.ListStyle.background
Optional.
|
Drawable |
ProgressBar.ProgressBarStyle.background
The progress bar background, stretched only in one direction.
|
Drawable |
ScrollPane.ScrollPaneStyle.background
Optional.
|
Drawable |
SelectBox.SelectBoxStyle.background
Optional.
|
Drawable |
TextField.TextFieldStyle.background
Optional.
|
Drawable |
Touchpad.TouchpadStyle.background
Stretched in both directions.
|
Drawable |
Tree.TreeStyle.background
Optional.
|
Drawable |
Window.WindowStyle.background
Optional.
|
Drawable |
SelectBox.SelectBoxStyle.backgroundDisabled
Optional.
|
Drawable |
SelectBox.SelectBoxStyle.backgroundOpen
Optional.
|
Drawable |
SelectBox.SelectBoxStyle.backgroundOver
Optional.
|
Drawable |
CheckBox.CheckBoxStyle.checkboxOff |
Drawable |
CheckBox.CheckBoxStyle.checkboxOffDisabled
Optional.
|
Drawable |
CheckBox.CheckBoxStyle.checkboxOn |
Drawable |
CheckBox.CheckBoxStyle.checkboxOnDisabled
Optional.
|
Drawable |
CheckBox.CheckBoxStyle.checkboxOver
Optional.
|
Drawable |
Button.ButtonStyle.checked
Optional.
|
Drawable |
Button.ButtonStyle.checkedOver
Optional.
|
Drawable |
ScrollPane.ScrollPaneStyle.corner
Optional.
|
Drawable |
TextField.TextFieldStyle.cursor
Optional.
|
Drawable |
Button.ButtonStyle.disabled
Optional.
|
Drawable |
ProgressBar.ProgressBarStyle.disabledBackground
Optional.
|
Drawable |
TextField.TextFieldStyle.disabledBackground
Optional.
|
Drawable |
ProgressBar.ProgressBarStyle.disabledKnob
Optional, centered on the background.
|
Drawable |
ProgressBar.ProgressBarStyle.disabledKnobAfter
Optional.
|
Drawable |
ProgressBar.ProgressBarStyle.disabledKnobBefore
Optional.
|
Drawable |
Button.ButtonStyle.down
Optional.
|
Drawable |
TextField.TextFieldStyle.focusedBackground
Optional.
|
Drawable |
SplitPane.SplitPaneStyle.handle |
Drawable |
ScrollPane.ScrollPaneStyle.hScroll
Optional.
|
Drawable |
ScrollPane.ScrollPaneStyle.hScrollKnob
Optional.
|
Drawable |
ImageButton.ImageButtonStyle.imageChecked
Optional.
|
Drawable |
ImageTextButton.ImageTextButtonStyle.imageChecked
Optional.
|
Drawable |
ImageButton.ImageButtonStyle.imageCheckedOver
Optional.
|
Drawable |
ImageTextButton.ImageTextButtonStyle.imageCheckedOver
Optional.
|
Drawable |
ImageButton.ImageButtonStyle.imageDisabled
Optional.
|
Drawable |
ImageTextButton.ImageTextButtonStyle.imageDisabled
Optional.
|
Drawable |
ImageButton.ImageButtonStyle.imageDown
Optional.
|
Drawable |
ImageTextButton.ImageTextButtonStyle.imageDown
Optional.
|
Drawable |
ImageButton.ImageButtonStyle.imageOver
Optional.
|
Drawable |
ImageTextButton.ImageTextButtonStyle.imageOver
Optional.
|
Drawable |
ImageButton.ImageButtonStyle.imageUp
Optional.
|
Drawable |
ImageTextButton.ImageTextButtonStyle.imageUp
Optional.
|
Drawable |
ProgressBar.ProgressBarStyle.knob
Optional, centered on the background.
|
Drawable |
Touchpad.TouchpadStyle.knob
Optional.
|
Drawable |
ProgressBar.ProgressBarStyle.knobAfter
Optional.
|
Drawable |
ProgressBar.ProgressBarStyle.knobBefore
Optional.
|
Drawable |
Tree.TreeStyle.minus |
Drawable |
Button.ButtonStyle.over
Optional.
|
Drawable |
Tree.TreeStyle.over
Optional.
|
Drawable |
Tree.TreeStyle.plus |
Drawable |
List.ListStyle.selection |
Drawable |
TextField.TextFieldStyle.selection
Optional.
|
Drawable |
Tree.TreeStyle.selection
Optional.
|
Drawable |
Window.WindowStyle.stageBackground
Optional.
|
Drawable |
Button.ButtonStyle.up
Optional.
|
Drawable |
ScrollPane.ScrollPaneStyle.vScroll
Optional.
|
Drawable |
ScrollPane.ScrollPaneStyle.vScrollKnob
Optional.
|
Modifier and Type | Method and Description |
---|---|
Drawable |
Container.getBackground() |
Drawable |
Table.getBackground() |
Drawable |
Image.getDrawable() |
Drawable |
Skin.getDrawable(java.lang.String name)
Returns a registered drawable.
|
Drawable |
Tree.Node.getIcon() |
Drawable |
Skin.newDrawable(Drawable drawable)
Returns a copy of the specified drawable.
|
Drawable |
Skin.newDrawable(Drawable drawable,
Color tint)
Returns a tinted copy of a drawable found in the skin via
Skin.getDrawable(String) . |
Drawable |
Skin.newDrawable(Drawable drawable,
float r,
float g,
float b,
float a)
Returns a tinted copy of a drawable found in the skin via
Skin.getDrawable(String) . |
Drawable |
Skin.newDrawable(java.lang.String name)
Returns a copy of a drawable found in the skin via
Skin.getDrawable(String) . |
Drawable |
Skin.newDrawable(java.lang.String name,
Color tint)
Returns a tinted copy of a drawable found in the skin via
Skin.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 via
Skin.getDrawable(String) . |
Modifier and Type | Method and 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 |
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 rectangle
|
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,
Color tint)
Returns a tinted copy of a drawable found in the skin via
Skin.getDrawable(String) . |
Drawable |
Skin.newDrawable(Drawable drawable,
float r,
float g,
float b,
float a)
Returns a tinted copy of a drawable found in the skin via
Skin.getDrawable(String) . |
void |
Container.setBackground(Drawable background)
Sets the background drawable and adjusts the container's padding to match the background.
|
void |
Table.setBackground(Drawable background) |
void |
Container.setBackground(Drawable background,
boolean adjustPadding)
Sets the background drawable and, if adjustPadding is true, sets the container's padding to
getBottomHeight() , getTopHeight() , getLeftWidth() , and
getRightWidth() . |
void |
Image.setDrawable(Drawable drawable) |
void |
Tree.Node.setIcon(Drawable icon)
Sets an icon that will be drawn to the left of the actor.
|
Constructor and 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) |
TouchpadStyle(Drawable background,
Drawable knob) |
TreeStyle(Drawable plus,
Drawable minus,
Drawable selection) |
WindowStyle(BitmapFont titleFont,
Color titleFontColor,
Drawable background) |
Modifier and Type | Interface and Description |
---|---|
interface |
TransformDrawable
A drawable that supports scale and rotation.
|
Modifier and Type | Class and Description |
---|---|
class |
BaseDrawable
Drawable that stores the size information but doesn't draw anything.
|
class |
NinePatchDrawable
Drawable for a
NinePatch . |
class |
SpriteDrawable
Drawable for a
Sprite . |
class |
TextureRegionDrawable
Drawable for a
TextureRegion . |
class |
TiledDrawable
Draws a
TextureRegion repeatedly to fill the area, instead of stretching it. |
Constructor and Description |
---|
BaseDrawable(Drawable drawable)
Creates a new empty drawable with the same sizing information as the specified drawable.
|