CheckBox¶
Inherited: AbstractButton
Description¶
The CheckBox class represents an option button that can be toggled between two states: “on” or “off.” It is commonly used in graphical user interfaces (GUIs) to allow users to select or deselect specific options or features, often in forms or settings.
Public Methods¶
Sprite * |
indicator () const |
indicatorColor () const |
|
indicatorSize () const |
|
void |
setIndicator (Sprite * icon) |
void |
setIndicatorColor (const Vector4 & color) |
void |
setIndicatorSize (const Vector2 & size) |
Static Methods¶
None
Methods Description¶
Sprite * CheckBox::indicator () const
Returns indicator icon.
See also setIndicator().
Vector4 CheckBox::indicatorColor () const
Returns the color of the graphical knob.
See also setIndicatorColor().
Vector2 CheckBox::indicatorSize () const
Returns the size of indicator.
See also setIndicatorSize().
void CheckBox::setIndicator (Sprite * icon)
Sets indicator icon.
See also indicator().
void CheckBox::setIndicatorColor (Vector4 & color)
Sets the color of the graphical knob.
See also indicatorColor().
void CheckBox::setIndicatorSize (Vector2 & size)
Sets the size of indicator.
See also indicatorSize().