#include <matrix.hpp>
Public Member Functions | |
tstate_default () | |
void | set_active (const bool active) |
bool | get_active () const |
unsigned | get_state () const |
Protected Types | |
enum | tstate { ENABLED, DISABLED, COUNT } |
Possible states of the widget. More... | |
Private Attributes | |
tstate | state_ |
Current state of the widget. More... | |
Definition at line 35 of file matrix.hpp.
|
protected |
Possible states of the widget.
Note the order of the states must be the same as defined in settings.hpp.
Enumerator | |
---|---|
ENABLED | |
DISABLED | |
COUNT |
Definition at line 52 of file matrix.hpp.
gui2::tstate_default::tstate_default | ( | ) |
Definition at line 40 of file matrix.cpp.
bool gui2::tstate_default::get_active | ( | ) | const |
Definition at line 50 of file matrix.cpp.
References DISABLED, and state_.
Referenced by set_active().
unsigned gui2::tstate_default::get_state | ( | ) | const |
Definition at line 55 of file matrix.cpp.
References state_.
void gui2::tstate_default::set_active | ( | const bool | active | ) |
Definition at line 43 of file matrix.cpp.
References DISABLED, ENABLED, get_active(), and state_.
|
private |
Current state of the widget.
The state of the widget determines what to render and how the widget reacts to certain 'events'.
Definition at line 65 of file matrix.hpp.
Referenced by get_active(), get_state(), and set_active().