The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
gui2::iterator::walker::twidget Class Reference

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

#include <walker_widget.hpp>

Inheritance diagram for gui2::iterator::walker::twidget:
Inheritance graph

Public Member Functions

 twidget (gui2::twidget &widget)
 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::twidgetget (const tlevel level)
 Inherited from gui2::iterator::twalker_. More...
 
- Public Member Functions inherited from gui2::iterator::twalker_
virtual ~twalker_ ()
 

Private Attributes

gui2::twidgetwidget_
 The control which the walker is attached to. 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...
 

Detailed Description

A walker for a gui2::tcontrol.

Definition at line 30 of file walker_widget.hpp.

Constructor & Destructor Documentation

gui2::iterator::walker::twidget::twidget ( gui2::twidget widget)
explicit

Constructor.

Parameters
widgetThe control which the walker is attached to.

Definition at line 31 of file walker_widget.cpp.

Member Function Documentation

bool gui2::iterator::walker::twidget::at_end ( const tlevel  level) const
virtual
gui2::twidget * gui2::iterator::walker::twidget::get ( const tlevel  level)
virtual
twalker_::tstate gui2::iterator::walker::twidget::next ( const tlevel  level)
virtual

Member Data Documentation

gui2::twidget* gui2::iterator::walker::twidget::widget_
private

The control which the walker is attached to.

Definition at line 51 of file walker_widget.hpp.

Referenced by at_end(), get(), and next().


The documentation for this class was generated from the following files: