#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Widgets/StateHandler.hpp>
Public Types | |
| enum | State { Enabled = 1 , Checked = 2 , Focused = 4 , Hovered = 8 , Pressed = 16 , Disabled = 1 << 16 , NotChecked = 2 << 16 , NotFocused = 4 << 16 , NotHovered = 8 << 16 , NotPressed = 16 << 16 } |
Public Member Functions | |
| StateHandler (wxWindow *owner) | |
| ~StateHandler () | |
| void | attach (StateColor const &color) |
| void | attach (std::vector< StateColor const * > const &colors) |
| void | attach_child (wxWindow *child) |
| void | remove_child (wxWindow *child) |
| void | update_binds () |
| int | states () const |
| void | set_state (int state, int mask) |
Private Member Functions | |
| StateHandler (StateHandler *parent, wxWindow *owner) | |
| void | changed (wxEvent &event) |
| void | changed (int state2) |
Private Attributes | |
| wxWindow * | owner_ |
| std::vector< StateColor const * > | colors_ |
| int | bind_states_ = 0 |
| int | states_ = 0 |
| int | states2_ = 0 |
| std::vector< std::unique_ptr< StateHandler > > | children_ |
| StateHandler * | parent_ = nullptr |
| enum StateHandler::State |
| Enumerator | |
|---|---|
| Enabled | |
| Checked | |
| Focused | |
| Hovered | |
| Pressed | |
| Disabled | |
| NotChecked | |
| NotFocused | |
| NotHovered | |
| NotPressed | |
| StateHandler::StateHandler | ( | wxWindow * | owner | ) |
References Enabled, Focused, owner_, and states_.
Referenced by StateHandler(), and attach_child().
|
private |
References StateHandler(), Enabled, parent_, and states_.
| void StateHandler::attach | ( | StateColor const & | color | ) |
| void StateHandler::attach | ( | std::vector< StateColor const * > const & | colors | ) |
| void StateHandler::attach_child | ( | wxWindow * | child | ) |
References StateHandler(), children_, and states2_.
|
private |
|
private |
References owner_, parent_, states2_, and states_.
Referenced by update_binds().
| void StateHandler::remove_child | ( | wxWindow * | child | ) |
| void StateHandler::set_state | ( | int | state, |
| int | mask ) |
|
inline |
References states2_, and states_.
Referenced by update_binds().
| void StateHandler::update_binds | ( | ) |
References bind_states_, changed(), Checked, children_, colors_, Enabled, Focused, Hovered, owner_, parent_, Pressed, and states().
|
private |
Referenced by update_binds().
|
private |
Referenced by attach_child(), changed(), remove_child(), and update_binds().
|
private |
Referenced by attach(), attach(), and update_binds().
|
private |
Referenced by StateHandler(), ~StateHandler(), changed(), changed(), set_state(), and update_binds().
|
private |
Referenced by StateHandler(), changed(), changed(), set_state(), and update_binds().
|
private |
Referenced by attach_child(), changed(), changed(), remove_child(), set_state(), and states().
|
private |
Referenced by StateHandler(), StateHandler(), changed(), changed(), set_state(), and states().