The walker abstract base class. More...
#include <walker.hpp>

Public Types | |
| enum | tlevel { widget, grid, child } |
The level to walk at. More... | |
| enum | tstate { valid, invalid, fail } |
The state of the walker. More... | |
Public Member Functions | |
| virtual | ~twalker_ () |
| virtual tstate | next (const tlevel level)=0 |
| Make the next widget the current one. | |
| virtual bool | at_end (const tlevel level) const =0 |
| Returns whether the current widget is valid. | |
| virtual gui2::twidget * | get (const tlevel level)=0 |
| Returns a pointer to the current widget. | |
The walker abstract base class.
Definition at line 26 of file walker.hpp.
The level to walk at.
| widget |
Visit the widget itself. Visit its nested grid. |
| grid |
Visit the children of its nested grid. |
| child |
Definition at line 33 of file walker.hpp.
The state of the walker.
The enum is used to return the state of next.
Definition at line 48 of file walker.hpp.
| virtual gui2::iterator::twalker_::~twalker_ | ( | ) | [inline, virtual] |
Definition at line 30 of file walker.hpp.
| virtual bool gui2::iterator::twalker_::at_end | ( | const tlevel | level | ) | const [pure virtual] |
Returns whether the current widget is valid.
| level | Determines on which level the test should be executed. |
Implemented in gui2::iterator::tgrid, and gui2::iterator::walker::twidget.
Referenced by gui2::iterator::policy::visit::tvisit< level >::at_end().

| virtual gui2::twidget* gui2::iterator::twalker_::get | ( | const tlevel | level | ) | [pure virtual] |
Returns a pointer to the current widget.
| level | Determines from which level should the current widget be returned. |
Implemented in gui2::iterator::tgrid, and gui2::iterator::walker::twidget.
Make the next widget the current one.
| level | Determines on which level the next one should be selected. |
Implemented in gui2::iterator::tgrid, and gui2::iterator::walker::twidget.
Referenced by gui2::iterator::policy::visit::tvisit< level >::next().

| Generated by doxygen 1.7.1 on Thu May 24 2012 01:24:10 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |