Skip to main content

Class: UIButton

This page documents the methods and fields available in the UIButton class.

Members

SignatureDescription
UIButton()Creates a new instance of UIButton.
getBorder()Returns the current border.
getFontFile()Returns the current font file.
getNormalColor()Returns the current normal color.
getNormalTexture()Returns the current normal texture.
getPadding()Returns the current padding.
getPressedColor()Returns the current pressed color.
getPressedTexture()Returns the current pressed texture.
getResolution()Returns the current resolution.
getText()Returns the current text.
getTextNormalColor()Returns the current text normal color.
getTextPressedColor()Returns the current text pressed color.
getTextSize()Returns the current text size.
isDown()Returns whether down is true.
isPressed()Returns whether pressed is true.
isUp()Returns whether up is true.
setBorder(float)Sets or updates the border.
setNormalColor(Color)Sets or updates the normal color.
setNormalTexture(Texture)Sets or updates the normal texture.
setPadding(Vector2)Sets or updates the padding.
setPressedColor(Color)Sets or updates the pressed color.
setPressedTexture(Texture)Sets or updates the pressed texture.
setResolution(int)Sets or updates the resolution.
setText(String)Sets or updates the text.
setTextNormalColor(Color)Sets or updates the text normal color.
setTextPressedColor(Color)Sets or updates the text pressed color.
setTextSize(float)Sets or updates the text size.