Public Member Functions

gui2::tselectable_ Class Reference

Small abstract helper class. More...

#include <selectable.hpp>

Inheritance diagram for gui2::tselectable_:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~tselectable_ ()
virtual bool get_value () const =0
 Is the control selected?
virtual void set_value (const bool)=0
 Select the control.
virtual void set_callback_state_change (boost::function< void(twidget *)> callback)=0
 When the user does something to change the widget state this event is fired.

Detailed Description

Small abstract helper class.

Parts of the engine inherit this class so we can have generic selectable items.

Definition at line 31 of file selectable.hpp.


Constructor & Destructor Documentation

virtual gui2::tselectable_::~tselectable_ (  )  [inline, virtual]

Definition at line 34 of file selectable.hpp.


Member Function Documentation

virtual bool gui2::tselectable_::get_value (  )  const [pure virtual]

Is the control selected?

Implemented in gui2::ttoggle_button, and gui2::ttoggle_panel.

Referenced by gui2::ttree_view_node::signal_handler_label_left_button_click().

Here is the caller graph for this function:

virtual void gui2::tselectable_::set_callback_state_change ( boost::function< void(twidget *)>  callback  )  [pure virtual]

When the user does something to change the widget state this event is fired.

Most of the time it will be a left click on the widget.

Implemented in gui2::ttoggle_button, and gui2::ttoggle_panel.

Referenced by gui2::tfield_bool::init_specialized().

Here is the caller graph for this function:

virtual void gui2::tselectable_::set_value ( const   bool  )  [pure virtual]

Select the control.

Implemented in gui2::ttoggle_button, and gui2::ttoggle_panel.

Referenced by gui2::ttree_view_node::signal_handler_label_left_button_click().

Here is the caller graph for this function:


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

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