The text that will be displayed on the button.
A pointer to a variable which holds the current state of the checkbox.
Set whether the checkbox can be pressed.
Optionally override the current default color scheme when creating this element.
true if the checkbox was toggled on or off. Note that toggling implies pressing and releasing the left mouse button while over the checkbox.
bool checkState = false; // initially un-checked if (imguiCheck("checkbox", &checkState)) // checkbox was toggled writeln(checkState); // check the current state
Define a new checkbox.