An empty widget. More...
#include <spacer.hpp>


Public Member Functions | |
| tspacer () | |
| void | set_active (const bool) |
| Inherited from tcontrol. | |
| bool | get_active () const |
| Inherited from tcontrol. | |
| unsigned | get_state () const |
| Inherited from tcontrol. | |
| bool | disable_click_dismiss () const |
| Inherited from tcontrol. | |
| void | set_best_size (const tpoint &best_size) |
Private Member Functions | |
| tpoint | calculate_best_size () const |
| Inherited from tcontrol. | |
| void | impl_draw_background (surface &) |
| Inherited from tcontrol. | |
| void | impl_draw_background (surface &, int, int) |
| const std::string & | get_control_type () const |
| Inherited from tcontrol. | |
Private Attributes | |
| tpoint | best_size_ |
| When we're used as a fixed size item, this holds the best size. | |
An empty widget.
Since every grid cell needs a widget this is a blank widget. This widget can also be used to 'force' sizes.
Since we're a kind of dummy class we're always active, our drawing does nothing.
Definition at line 32 of file spacer.hpp.
| gui2::tspacer::tspacer | ( | ) | [inline] |
Definition at line 35 of file spacer.hpp.
| tpoint gui2::tspacer::calculate_best_size | ( | ) | const [inline, private, virtual] |
Inherited from tcontrol.
Reimplemented from gui2::tcontrol.
Definition at line 45 of file spacer.hpp.
References best_size_.
| bool gui2::tspacer::disable_click_dismiss | ( | ) | const [inline, virtual] |
Inherited from tcontrol.
Reimplemented from gui2::tcontrol.
Definition at line 64 of file spacer.hpp.
| bool gui2::tspacer::get_active | ( | ) | const [inline, virtual] |
| const std::string & gui2::tspacer::get_control_type | ( | ) | const [private, virtual] |
Inherited from tcontrol.
Implements gui2::tcontrol.
Definition at line 30 of file spacer.cpp.
References type.
| unsigned gui2::tspacer::get_state | ( | ) | const [inline, virtual] |
| void gui2::tspacer::impl_draw_background | ( | surface & | , | |
| int | , | |||
| int | ||||
| ) | [inline, private, virtual] |
Reimplemented from gui2::tcontrol.
Definition at line 81 of file spacer.hpp.
| void gui2::tspacer::impl_draw_background | ( | surface & | ) | [inline, private, virtual] |
Inherited from tcontrol.
Since we're always empty the draw does nothing.
Reimplemented from gui2::tcontrol.
Definition at line 80 of file spacer.hpp.
| void gui2::tspacer::set_active | ( | const | bool | ) | [inline, virtual] |
| void gui2::tspacer::set_best_size | ( | const tpoint & | best_size | ) | [inline] |
Definition at line 68 of file spacer.hpp.
References best_size_.
tpoint gui2::tspacer::best_size_ [private] |
When we're used as a fixed size item, this holds the best size.
Definition at line 73 of file spacer.hpp.
Referenced by calculate_best_size(), and set_best_size().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:23:24 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |