A walker for a gui2::tgrid. More...
#include <walker_grid.hpp>
Public Member Functions | |
tgrid (gui2::tgrid &grid) | |
Constructor. More... | |
virtual tstate | next (const tlevel level) |
Inherited from gui2::iterator::twalker_. More... | |
virtual bool | at_end (const tlevel level) const |
Inherited from gui2::iterator::twalker_. More... | |
virtual gui2::twidget * | get (const tlevel level) |
Inherited from gui2::iterator::twalker_. More... | |
Public Member Functions inherited from gui2::iterator::twalker_ | |
virtual | ~twalker_ () |
Private Attributes | |
gui2::tgrid & | grid_ |
The grid which the walker is attached to. More... | |
gui2::twidget * | widget_ |
The grid which the walker is attached to. More... | |
gui2::tgrid::iterator | itor_ |
The iterator to the children of grid_. More... | |
Additional Inherited Members | |
Public Types inherited from gui2::iterator::twalker_ | |
enum | tlevel { widget, grid, child } |
The level to walk at. More... | |
enum | tstate { valid, invalid, fail } |
The state of the walker. More... | |
A walker for a gui2::tgrid.
Definition at line 29 of file walker_grid.hpp.
|
explicit |
Constructor.
grid | The grid which the walker is attached to. |
Definition at line 27 of file walker_grid.cpp.
|
virtual |
Inherited from gui2::iterator::twalker_.
Implements gui2::iterator::twalker_.
Definition at line 62 of file walker_grid.cpp.
References gui2::iterator::twalker_::child, gui2::tgrid::end(), gui2::iterator::twalker_::grid, grid_, itor_, gui2::iterator::twalker_::widget, and widget_.
Referenced by next().
|
virtual |
Inherited from gui2::iterator::twalker_.
Implements gui2::iterator::twalker_.
Definition at line 77 of file walker_grid.cpp.
References gui2::iterator::twalker_::child, gui2::tgrid::end(), gui2::iterator::twalker_::grid, grid_, itor_, gui2::iterator::twalker_::widget, and widget_.
|
virtual |
Inherited from gui2::iterator::twalker_.
Implements gui2::iterator::twalker_.
Definition at line 32 of file walker_grid.cpp.
References at_end(), gui2::iterator::twalker_::child, gui2::tgrid::end(), gui2::iterator::twalker_::fail, gui2::iterator::twalker_::grid, grid_, gui2::iterator::twalker_::invalid, itor_, gui2::iterator::twalker_::valid, gui2::iterator::twalker_::widget, and widget_.
|
private |
The grid which the walker is attached to.
Definition at line 50 of file walker_grid.hpp.
|
private |
The iterator to the children of grid_.
This variable is used to track where the gui2::iterator::twalker_::child level visiting is.
Definition at line 66 of file walker_grid.hpp.
|
private |
The grid which the walker is attached to.
This variable is used to track whether the gui2::iterator::twalker_::widget level has been visited.
Definition at line 58 of file walker_grid.hpp.