A walker for a gui2::container_base. More...
#include <walker_container.hpp>
Public Member Functions | |
container (gui2::container_base &container) | |
Constructor. More... | |
virtual state_t | next (const level level) |
Inherited from gui2::iteration::walker_base. More... | |
virtual bool | at_end (const level level) const |
Inherited from gui2::iteration::walker_base. More... | |
virtual gui2::widget * | get (const level level) |
Inherited from gui2::iteration::walker_base. More... | |
Public Member Functions inherited from gui2::iteration::walker_base | |
virtual | ~walker_base () |
Private Attributes | |
gui2::container_base & | container_ |
The container which the walker is attached to. More... | |
gui2::widget * | widget_ |
The widget which the walker is attached to. More... | |
bool | entered_grid = false |
Whether the grid has been yielded. More... | |
bool | in_grid = false |
gui2::grid::iterator | itor_ |
The iterator to the children of container_. More... | |
Additional Inherited Members | |
Public Types inherited from gui2::iteration::walker_base | |
enum | level { self , internal , child } |
The level to walk at. More... | |
enum | state_t { valid , invalid , fail } |
The state of the walker. More... | |
A walker for a gui2::container_base.
Definition at line 26 of file walker_container.hpp.
|
explicit |
Constructor.
container | The grid which the walker is attached to. |
Definition at line 25 of file walker_container.cpp.
|
virtual |
Inherited from gui2::iteration::walker_base.
Implements gui2::iteration::walker_base.
Definition at line 67 of file walker_container.cpp.
References gui2::iteration::walker_base::child, container_, gui2::container_base::end(), entered_grid, in_grid, itor_, and widget_.
Referenced by next().
|
virtual |
Inherited from gui2::iteration::walker_base.
Implements gui2::iteration::walker_base.
Definition at line 82 of file walker_container.cpp.
References gui2::iteration::walker_base::child, container_, gui2::container_base::end(), gui2::container_base::get_grid(), itor_, and widget_.
|
virtual |
Inherited from gui2::iteration::walker_base.
Implements gui2::iteration::walker_base.
Definition at line 30 of file walker_container.cpp.
References at_end(), gui2::iteration::walker_base::child, container_, gui2::container_base::end(), entered_grid, gui2::iteration::walker_base::fail, in_grid, gui2::iteration::walker_base::invalid, itor_, gui2::iteration::walker_base::valid, and widget_.
|
private |
The container which the walker is attached to.
Definition at line 47 of file walker_container.hpp.
|
private |
Whether the grid has been yielded.
This variable is used to track whether the gui2::iteration::walker_base::internal level has been visited.
Definition at line 63 of file walker_container.hpp.
|
private |
Definition at line 63 of file walker_container.hpp.
|
private |
The iterator to the children of container_.
This variable is used to track where the gui2::iteration::walker_base::child level visiting is.
Definition at line 71 of file walker_container.hpp.
|
private |
The widget which the walker is attached to.
This variable is used to track whether the gui2::iteration::walker_base::widget level has been visited.
Definition at line 55 of file walker_container.hpp.