Button.value

bool value() const nothrow @nogc

Gets the button's value (pressed state).

For toggle buttons, this indicates whether the button is on or off.

Returns

true if button is pressed/on
void value(bool pressed) nothrow @nogc

Sets the button's value (pressed state).

Parameters

pressedtrue to set button as pressed/on