Public Member Functions | Private Attributes

gui2::iterator::tgrid Class Reference

A walker for a gui2::tgrid. More...

#include <walker_grid.hpp>

Inheritance diagram for gui2::iterator::tgrid:
Inheritance graph
[legend]
Collaboration diagram for gui2::iterator::tgrid:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 tgrid (gui2::tgrid &grid)
 Constructor.
virtual tstate next (const tlevel level)
 Inherited from gui2::iterator::twalker_.
virtual bool at_end (const tlevel level) const
 Inherited from gui2::iterator::twalker_.
virtual gui2::twidgetget (const tlevel level)
 Inherited from gui2::iterator::twalker_.

Private Attributes

gui2::tgridgrid_
 The grid which the walker is attached to.
gui2::twidgetwidget_
 The grid which the walker is attached to.
gui2::tgrid::iterator itor_
 The iterator to the children of grid_.

Detailed Description

A walker for a gui2::tgrid.

Definition at line 28 of file walker_grid.hpp.


Constructor & Destructor Documentation

gui2::iterator::tgrid::tgrid ( gui2::tgrid grid  )  [explicit]

Constructor.

Parameters:
grid The grid which the walker is attached to.

Definition at line 21 of file walker_grid.cpp.

References preferences::grid().

Here is the call graph for this function:


Member Function Documentation

bool gui2::iterator::tgrid::at_end ( const tlevel  level  )  const [virtual]

Inherited from gui2::iterator::twalker_.

Implements gui2::iterator::twalker_.

Definition at line 58 of file walker_grid.cpp.

gui2::twidget * gui2::iterator::tgrid::get ( const tlevel  level  )  [virtual]

Inherited from gui2::iterator::twalker_.

Implements gui2::iterator::twalker_.

Definition at line 73 of file walker_grid.cpp.

twalker_::tstate gui2::iterator::tgrid::next ( const tlevel  level  )  [virtual]

Inherited from gui2::iterator::twalker_.

Implements gui2::iterator::twalker_.

Definition at line 28 of file walker_grid.cpp.


Member Data Documentation

The grid which the walker is attached to.

Definition at line 52 of file walker_grid.hpp.

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 68 of file walker_grid.hpp.

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 60 of file walker_grid.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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