ImageButton, TextButton, Button
| Modifier and Type | Class and Description |
|---|---|
| public static class | ImageTextButton.
The style for an image text button, see |
| Modifier and Type | Field and Description |
|---|---|
| private final Image | |
| private Label | |
| private ImageTextButton. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | draw(Batch batch, float parentAlpha)
Overrides com. If this method is overridden, the super method or |
| protected Color | getFontColor()
Returns the appropriate label font color from the style based on the current button state. |
| public Image | |
| public Cell | |
| protected Drawable | getImageDrawable()
Returns the appropriate image drawable from the style based on the current button state. |
| public Label | |
| public Cell | |
| public ImageTextButton. | getStyle()
Overrides com. Implements com. Returns the button's style. |
| public CharSequence | |
| protected Image | |
| protected Label | |
| public void | |
| public void | setStyle(Button.
Overrides com. Implements com. Set the current style of the actor |
| public void | |
| public String | toString()
Overrides com. Returns a description of the actor hierarchy, recursively. |
| protected void |
| image | back to summary |
|---|---|
| private final Image image | |
| label | back to summary |
|---|---|
| private Label label | |
| style | back to summary |
|---|---|
| private ImageTextButton. | |
| ImageTextButton | back to summary |
|---|---|
| public ImageTextButton(String text, Skin skin) | |
| ImageTextButton | back to summary |
|---|---|
| public ImageTextButton(String text, Skin skin, String styleName) | |
| ImageTextButton | back to summary |
|---|---|
| public ImageTextButton(String text, ImageTextButton. | |
| draw | back to summary |
|---|---|
| public void draw(Batch batch, float parentAlpha) Overrides com. Doc from com. If this method is overridden, the super method or | |
| getFontColor | back to summary |
|---|---|
| protected Color getFontColor() Returns the appropriate label font color from the style based on the current button state.
| |
| getImage | back to summary |
|---|---|
| public Image getImage() | |
| getImageCell | back to summary |
|---|---|
| public Cell | |
| getImageDrawable | back to summary |
|---|---|
| protected Drawable getImageDrawable() Returns the appropriate image drawable from the style based on the current button state.
| |
| getLabel | back to summary |
|---|---|
| public Label getLabel() | |
| getLabelCell | back to summary |
|---|---|
| public Cell | |
| getStyle | back to summary |
|---|---|
| public ImageTextButton. Overrides com. Implements com. Doc from com. Returns the button's style. Modifying the returned style may not have an effect until | |
| getText | back to summary |
|---|---|
| public CharSequence getText() | |
| newImage | back to summary |
|---|---|
| protected Image newImage() | |
| newLabel | back to summary |
|---|---|
| protected Label newLabel(String text, Label. | |
| setLabel | back to summary |
|---|---|
| public void setLabel(Label label) | |
| setStyle | back to summary |
|---|---|
| public void setStyle(Button. Overrides com. Implements com. Doc from com. Set the current style of the actor | |
| setText | back to summary |
|---|---|
| public void setText(CharSequence text) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from com. Returns a description of the actor hierarchy, recursively. | |
| updateImage | back to summary |
|---|---|
| protected void updateImage() Sets the image drawable based on the current button state. The default implementation sets the image drawable using
| |
ImageTextButton.
| Modifier and Type | Field and Description |
|---|---|
| public Drawable | |
| public Drawable | |
| public Drawable | |
| public Drawable | |
| public Drawable | |
| public Drawable | |
| public Drawable |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| imageChecked | back to summary |
|---|---|
| public Drawable imageChecked
| |
| imageCheckedDown | back to summary |
|---|---|
| public Drawable imageCheckedDown
| |
| imageCheckedOver | back to summary |
|---|---|
| public Drawable imageCheckedOver
| |
| imageDisabled | back to summary |
|---|---|
| public Drawable imageDisabled
| |
| imageDown | back to summary |
|---|---|
| public Drawable imageDown
| |
| imageOver | back to summary |
|---|---|
| public Drawable imageOver
| |
| imageUp | back to summary |
|---|---|
| public Drawable imageUp
| |
| ImageTextButtonStyle | back to summary |
|---|---|
| public ImageTextButtonStyle() | |
| ImageTextButtonStyle | back to summary |
|---|---|
| public ImageTextButtonStyle(Drawable up, Drawable down, Drawable checked, BitmapFont font) | |
| ImageTextButtonStyle | back to summary |
|---|---|
| public ImageTextButtonStyle(ImageTextButton. | |
| ImageTextButtonStyle | back to summary |
|---|---|
| public ImageTextButtonStyle(TextButton. | |