- _guiInput
void _guiInput(InputEvent arg0)
- _pressed
void _pressed()
Called when the button is pressed. If you need to know the button's pressed state (and toggleMode is active), use _toggled instead.
- _toggled
void _toggled(bool button_pressed)
Called when the button is toggled (only if toggleMode is active).
- _unhandledInput
void _unhandledInput(InputEvent arg0)
- getActionMode
BaseButton.ActionMode getActionMode()
- getButtonGroup
Ref!ButtonGroup getButtonGroup()
- getButtonMask
long getButtonMask()
- getDrawMode
BaseButton.DrawMode getDrawMode()
Returns the visual state used to draw the button. This is useful mainly when implementing your own draw code by either overriding _draw() or connecting to "draw" signal. The visual state of the button is defined by the drawmode enum.
- getEnabledFocusMode
Control.FocusMode getEnabledFocusMode()
- getShortcut
Ref!ShortCut getShortcut()
- isDisabled
bool isDisabled()
- isHovered
bool isHovered()
Returns true if the mouse has entered the button and has not left it yet.
- isKeepPressedOutside
bool isKeepPressedOutside()
- isPressed
bool isPressed()
- isShortcutInTooltipEnabled
bool isShortcutInTooltipEnabled()
- isToggleMode
bool isToggleMode()
- opAssign
typeof(null) opAssign(typeof(null) n)
- opEquals
bool opEquals(BaseButton other)
- opEquals
bool opEquals(typeof(null) n)
- setActionMode
void setActionMode(long mode)
- setButtonGroup
void setButtonGroup(ButtonGroup button_group)
- setButtonMask
void setButtonMask(long mask)
- setDisabled
void setDisabled(bool disabled)
- setEnabledFocusMode
void setEnabledFocusMode(long mode)
- setKeepPressedOutside
void setKeepPressedOutside(bool enabled)
- setPressed
void setPressed(bool pressed)
- setShortcut
void setShortcut(ShortCut shortcut)
- setShortcutInTooltip
void setShortcutInTooltip(bool enabled)
- setToggleMode
void setToggleMode(bool enabled)
- toHash
size_t toHash()
- actionMode
BaseButton.ActionMode actionMode [@property getter]
long actionMode [@property setter]
Determines when the button is considered clicked, one of the actionmode constants.
- buttonMask
long buttonMask [@property getter]
long buttonMask [@property setter]
Binary mask to choose which mouse buttons this button will respond to.
To allow both left-click and right-click, use BUTTON_MASK_LEFT | BUTTON_MASK_RIGHT.
- disabled
bool disabled [@property getter]
bool disabled [@property setter]
If true, the button is in disabled state and can't be clicked or toggled.
- enabledFocusMode
Control.FocusMode enabledFocusMode [@property getter]
long enabledFocusMode [@property setter]
Deprecated. This property has been deprecated due to redundancy and no longer has any effect when set. Please use Control.focusMode instead.
- group
ButtonGroup group [@property getter]
ButtonGroup group [@property setter]
- keepPressedOutside
bool keepPressedOutside [@property getter]
bool keepPressedOutside [@property setter]
If true, the button stays pressed when moving the cursor outside the button while pressing it.
Note: This property only affects the button's visual appearance. Signals will be emitted at the same moment regardless of this property's value.
- pressed
bool pressed [@property getter]
bool pressed [@property setter]
If true, the button's state is pressed. Means the button is pressed down or toggled (if toggleMode is active).
- shortcut
ShortCut shortcut [@property getter]
ShortCut shortcut [@property setter]
- shortcutInTooltip
bool shortcutInTooltip [@property getter]
bool shortcutInTooltip [@property setter]
If true, the button will add information about its shortcut in the tooltip.
- toggleMode
bool toggleMode [@property getter]
bool toggleMode [@property setter]
If true, the button is in toggle mode. Makes the button flip state between pressed and unpressed each time its area is clicked.
Base class for different kinds of buttons.
BaseButton is the abstract base class for buttons, so it shouldn't be used directly (it doesn't display anything). Other types of buttons inherit from it.