Small abstract helper class. More...
#include <selectable.hpp>

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. | |
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.
| virtual gui2::tselectable_::~tselectable_ | ( | ) | [inline, virtual] |
Definition at line 34 of file selectable.hpp.
| 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().

| 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().

| 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().

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