Class endstone::Toggle¶
Represents a toggle button with a label.
#include <endstone/form/controls/toggle.h>
Public Functions¶
| Type | Name |
|---|---|
| Toggle () = default |
|
| Toggle (Message label, bool default_value=false) |
|
| bool | getDefaultValue () const Gets the default value of the toggle. |
| Message | getLabel () const Gets the label of the toggle. |
| Toggle & | setDefaultValue (bool value) Sets the default value of the toggle. |
| Toggle & | setLabel (Message label) Sets the label of the toggle. |
Public Functions Documentation¶
function Toggle [½]¶
function Toggle [2/2]¶
function getDefaultValue¶
Gets the default value of the toggle.
Returns:
The default value of the toggle.
function getLabel¶
Gets the label of the toggle.
Returns:
The label of the toggle.
function setDefaultValue¶
Sets the default value of the toggle.
Parameters:
valueThe new default value for the toggle.
Returns:
A reference to the current toggle.
function setLabel¶
Sets the label of the toggle.
Parameters:
labelThe new label for the toggle.
Returns:
A reference to the current toggle.
The documentation for this class was generated from the following file include/endstone/form/controls/toggle.h