|
|
| ButtonState () |
| | Constructs an empty button state.
|
|
bool | isEnabled () const |
| | Returns true if the button is currently enabled.
|
|
void | setEnabled (bool value) |
| | Sets whether the button is enabled.
|
|
bool | isHovered () const |
| | Returns true if the pointer is currently hovering the button.
|
|
void | setHovered (bool value) |
| | Sets whether the pointer is currently hovering the button.
|
|
bool | isFocused () const |
| | Returns true if the button currently has focus.
|
|
void | setFocused (bool value) |
| | Sets whether the button has focus.
|
|
bool | isPressed () const |
| | Returns true if the button is currently pressed.
|
|
void | setPressed (bool value) |
| | Sets whether the button is pressed.
|
|
bool | isFlat () const |
| | Returns true if the button uses flat rendering.
|
|
void | setFlat (bool value) |
| | Sets whether the button uses flat rendering.
|
ButtonState is the snapshot a PushButton passes to measure, layout, and paint. It is not the application model. Enabled, hovered, focused, pressed, and flat describe the look of one paint pass.