AbstractButtonΒΆ
Inherited: Frame
DescriptionΒΆ
The AbstractButton class provides a foundation for creating interactive buttons within a graphical user interface. It allows customization of various visual properties and handles user interaction events. Internal methods are marked as internal and are intended for use within the framework rather than by external code.
Public MethodsΒΆ
void |
clicked () |
highlightedColor () const |
|
bool |
isCheckable () const |
bool |
isChecked () const |
bool |
isExclusive () const |
void |
pressed () |
pressedColor () const |
|
void |
setCheckable (bool checkable) |
void |
setChecked (bool checked) |
void |
setExclusive (bool exclusive) |
void |
setHighlightedColor (const Vector4 & color) |
void |
setPressedColor (const Vector4 & color) |
void |
toggled (bool checked) |
Static MethodsΒΆ
None
Methods DescriptionΒΆ
void AbstractButton::clicked ()
This signal is emitted when the button is activated (i.e., pressed down then released while the mouse cursor is inside the button).
Vector4 AbstractButton::highlightedColor () const
Returns the color used when the button is highlighted.
See also setHighlightedColor().
bool AbstractButton::isCheckable () const
Returns true if the button is checkable; otherwise, false.
bool AbstractButton::isChecked () const
Returns true if the button is checked; otherwise, false.
bool AbstractButton::isExclusive () const
Returns true if the button is in exclusive mode; otherwise, false.
void AbstractButton::pressed ()
This signal is emitted when the button is pressed down.
Vector4 AbstractButton::pressedColor () const
Returns the color used when the button is pressed.
See also setPressedColor().
void AbstractButton::setCheckable (bool checkable)
Sets whether the button is checkable.
See also isCheckable().
void AbstractButton::setChecked (bool checked)
Sets the checked state of the button.
See also isChecked().
void AbstractButton::setExclusive (bool exclusive)
Sets whether the button is in exclusive mode.
See also isExclusive().
void AbstractButton::setHighlightedColor (Vector4 & color)
Sets the color used when the button is highlighted.
See also highlightedColor().
void AbstractButton::setPressedColor (Vector4 & color)
Sets the color used when the button is pressed.
See also pressedColor().
void AbstractButton::toggled (bool checked)
This signal is emitted whenever a checkable button changes its state. checked is true if the button is checked, or false if the button is unchecked.