Button

Standard themed Button.

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

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

Constants
enum Constants
TextAlign
enum TextAlign

Functions

getButtonIcon
Ref!Texture getButtonIcon()
getClipText
bool getClipText()
getText
String getText()
getTextAlign
Button.TextAlign getTextAlign()
isFlat
bool isFlat()
opAssign
Button opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Button other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
setButtonIcon
void setButtonIcon(Texture texture)
setClipText
void setClipText(bool enabled)
setFlat
void setFlat(bool enabled)
setText
void setText(StringArg0 text)
setTextAlign
void setTextAlign(long _align)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

_align
Button.TextAlign _align [@property getter]
long _align [@property setter]

Text alignment policy for the button's text, use one of the ALIGN_* constants.

clipText
bool clipText [@property getter]
bool clipText [@property setter]

When 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. This property is disabled by default.

flat
bool flat [@property getter]
bool flat [@property setter]

Flat buttons don't display decoration.

icon
Texture icon [@property getter]
Texture icon [@property setter]

Button's icon, if text is present the icon will be placed before the text.

text
String text [@property getter]
String text [@property setter]

The button's text that will be displayed inside the button's area.

Static functions

_new
Button _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta