Struct Button

Standard themed Button.

struct Button ;

Button is the standard themed button. It can contain text and an icon, and will display them according to the current Theme.

Properties

NameTypeDescription
_align[get, set] Button.TextAlignText alignment policy for the button's text, use one of the textalign constants.
clipText[get, set] boolWhen this property is enabled, text that is too large to fit the button is clipped, when disabled the Button will always be wide enough to hold the text.
expandIcon[get, set] boolWhen enabled, the button's icon will expand/shrink to fit the button's size while keeping its aspect.
flat[get, set] boolFlat buttons don't display decoration.
icon[get, set] TextureButton's icon, if text is present the icon will be placed before the text.
text[get, set] StringThe button's text that will be displayed inside the button's area.

Methods

NameDescription
getButtonIcon
getClipText
getText
getTextAlign
isExpandIcon
isFlat
setButtonIcon
setClipText
setExpandIcon
setFlat
setText
setTextAlign

Enums

NameDescription
Constants
TextAlign