UIButton
Complete API reference for UIButton, including constructors, attributes, virtual attributes, and methods.
Package: JAVARuntime
Category: UI
Component: yes
public class UIButton extends Component
Constructors
| Signature | Description |
|---|---|
UIButton() | Creates a new instance of UIButton. |
Virtual Attributes
| Name | Type | Access | Description |
|---|---|---|---|
border | float | get/set | Virtual attribute exposed by getBorder. Access it like a field to read or write the underlying value. |
down | boolean | get | Virtual attribute exposed by isDown. Access it like a field to read or write the underlying value. |
fontFile | String | get | Virtual attribute exposed by getFontFile. Access it like a field to read or write the underlying value. |
normalColor | Color | get/set | Virtual attribute exposed by getNormalColor. Access it like a field to read or write the underlying value. |
normalTexture | Texture | get/set | Virtual attribute exposed by getNormalTexture. Access it like a field to read or write the underlying value. |
padding | Vector2 | get/set | Virtual attribute exposed by getPadding. Access it like a field to read or write the underlying value. |
pressed | boolean | get | Virtual attribute exposed by isPressed. Access it like a field to read or write the underlying value. |
pressedColor | Color | get/set | Virtual attribute exposed by getPressedColor. Access it like a field to read or write the underlying value. |
pressedTexture | Texture | get/set | Virtual attribute exposed by getPressedTexture. Access it like a field to read or write the underlying value. |
resolution | int | get/set | Virtual attribute exposed by getResolution. Access it like a field to read or write the underlying value. |
text | String | get/set | Virtual attribute exposed by getText. Access it like a field to read or write the underlying value. |
textNormalColor | Color | get/set | Virtual attribute exposed by getTextNormalColor. Access it like a field to read or write the underlying value. |
textPressedColor | Color | get/set | Virtual attribute exposed by getTextPressedColor. Access it like a field to read or write the underlying value. |
textSize | float | get/set | Virtual attribute exposed by getTextSize. Access it like a field to read or write the underlying value. |
up | boolean | get | Virtual attribute exposed by isUp. Access it like a field to read or write the underlying value. |
Methods
| Signature | Returns | Description |
|---|---|---|
getBorder() | float | Returns the current border value. |
getFontFile() | String | Returns the current fontFile value. |
getNormalColor() | Color | Returns the current normalColor value. |
getNormalTexture() | Texture | Returns the current normalTexture value. |
getPadding() | Vector2 | Returns the current padding value. |
getPressedColor() | Color | Returns the current pressedColor value. |
getPressedTexture() | Texture | Returns the current pressedTexture value. |
getResolution() | int | Returns the current resolution value. |
getText() | String | Returns the current text value. |
getTextNormalColor() | Color | Returns the current textNormalColor value. |
getTextPressedColor() | Color | Returns the current textPressedColor value. |
getTextSize() | float | Returns the current textSize value. |
isDown() | boolean | Returns whether down is true. |
isPressed() | boolean | Returns whether pressed is true. |
isUp() | boolean | Returns whether up is true. |
setBorder(float) | void | Sets border. |
setNormalColor(Color) | void | Sets normalColor. |
setNormalTexture(Texture) | void | Sets normalTexture. |
setPadding(Vector2) | void | Sets padding. |
setPressedColor(Color) | void | Sets pressedColor. |
setPressedTexture(Texture) | void | Sets pressedTexture. |
setResolution(int) | void | Sets resolution. |
setText(String) | void | Sets text. |
setTextNormalColor(Color) | void | Sets textNormalColor. |
setTextPressedColor(Color) | void | Sets textPressedColor. |
setTextSize(float) | void | Sets textSize. |