Skip to main content

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

SignatureDescription
UIButton()Creates a new instance of UIButton.

Virtual Attributes

NameTypeAccessDescription
borderfloatget/setVirtual attribute exposed by getBorder. Access it like a field to read or write the underlying value.
downbooleangetVirtual attribute exposed by isDown. Access it like a field to read or write the underlying value.
fontFileStringgetVirtual attribute exposed by getFontFile. Access it like a field to read or write the underlying value.
normalColorColorget/setVirtual attribute exposed by getNormalColor. Access it like a field to read or write the underlying value.
normalTextureTextureget/setVirtual attribute exposed by getNormalTexture. Access it like a field to read or write the underlying value.
paddingVector2get/setVirtual attribute exposed by getPadding. Access it like a field to read or write the underlying value.
pressedbooleangetVirtual attribute exposed by isPressed. Access it like a field to read or write the underlying value.
pressedColorColorget/setVirtual attribute exposed by getPressedColor. Access it like a field to read or write the underlying value.
pressedTextureTextureget/setVirtual attribute exposed by getPressedTexture. Access it like a field to read or write the underlying value.
resolutionintget/setVirtual attribute exposed by getResolution. Access it like a field to read or write the underlying value.
textStringget/setVirtual attribute exposed by getText. Access it like a field to read or write the underlying value.
textNormalColorColorget/setVirtual attribute exposed by getTextNormalColor. Access it like a field to read or write the underlying value.
textPressedColorColorget/setVirtual attribute exposed by getTextPressedColor. Access it like a field to read or write the underlying value.
textSizefloatget/setVirtual attribute exposed by getTextSize. Access it like a field to read or write the underlying value.
upbooleangetVirtual attribute exposed by isUp. Access it like a field to read or write the underlying value.

Methods

SignatureReturnsDescription
getBorder()floatReturns the current border value.
getFontFile()StringReturns the current fontFile value.
getNormalColor()ColorReturns the current normalColor value.
getNormalTexture()TextureReturns the current normalTexture value.
getPadding()Vector2Returns the current padding value.
getPressedColor()ColorReturns the current pressedColor value.
getPressedTexture()TextureReturns the current pressedTexture value.
getResolution()intReturns the current resolution value.
getText()StringReturns the current text value.
getTextNormalColor()ColorReturns the current textNormalColor value.
getTextPressedColor()ColorReturns the current textPressedColor value.
getTextSize()floatReturns the current textSize value.
isDown()booleanReturns whether down is true.
isPressed()booleanReturns whether pressed is true.
isUp()booleanReturns whether up is true.
setBorder(float)voidSets border.
setNormalColor(Color)voidSets normalColor.
setNormalTexture(Texture)voidSets normalTexture.
setPadding(Vector2)voidSets padding.
setPressedColor(Color)voidSets pressedColor.
setPressedTexture(Texture)voidSets pressedTexture.
setResolution(int)voidSets resolution.
setText(String)voidSets text.
setTextNormalColor(Color)voidSets textNormalColor.
setTextPressedColor(Color)voidSets textPressedColor.
setTextSize(float)voidSets textSize.