Visible container to hold multiple widgets. More...
#include <panel.hpp>


Public Member Functions | |
| tpanel (const unsigned canvas_count=2) | |
| Constructor. | |
| virtual SDL_Rect | get_client_rect () const |
| Returns the client rect. | |
| bool | get_active () const |
| Inherited from tcontrol. | |
| unsigned | get_state () const |
| Inherited from tcontrol. | |
Private Member Functions | |
| void | impl_draw_background (surface &frame_buffer) |
| Inherited from tcontrol. | |
| void | impl_draw_background (surface &frame_buffer, int x_offset, int y_offset) |
| void | impl_draw_foreground (surface &frame_buffer) |
| Inherited from tcontrol. | |
| void | impl_draw_foreground (surface &frame_buffer, int x_offset, int y_offset) |
| const std::string & | get_control_type () const |
| Inherited from tcontrol. | |
| tpoint | border_space () const |
| Inherited from tcontainer_. | |
| void | set_self_active (const bool) |
| Inherited from tcontainer_. | |
Visible container to hold multiple widgets.
This widget can draw items beyond the widgets it holds and in front of them. A panel is always active so these functions return dummy values.
Definition at line 29 of file panel.hpp.
| gui2::tpanel::tpanel | ( | const unsigned | canvas_count = 2 |
) | [inline, explicit] |
| tpoint gui2::tpanel::border_space | ( | ) | const [private, virtual] |
Inherited from tcontainer_.
Reimplemented from gui2::tcontainer_.
Definition at line 87 of file panel.cpp.
References gui2::tcontrol::config().

| bool gui2::tpanel::get_active | ( | ) | const [inline, virtual] |
| SDL_Rect gui2::tpanel::get_client_rect | ( | ) | const [virtual] |
Returns the client rect.
The client rect is the area which is used for child items. The rest of the area of this widget is used for its own decoration.
Reimplemented from gui2::tcontainer_.
| const std::string & gui2::tpanel::get_control_type | ( | ) | const [private, virtual] |
Inherited from tcontrol.
Implements gui2::tcontrol.
Definition at line 97 of file panel.cpp.
References type.
| unsigned gui2::tpanel::get_state | ( | ) | const [inline, virtual] |
| void gui2::tpanel::impl_draw_background | ( | surface & | frame_buffer | ) | [private, virtual] |
Inherited from tcontrol.
Reimplemented from gui2::tcontrol.
Definition at line 49 of file panel.cpp.
References gui2::tcontrol::canvas(), DBG_GUI_D, gui2::twidget::get_rect(), and LOG_HEADER.

| void gui2::tpanel::impl_draw_background | ( | surface & | frame_buffer, | |
| int | x_offset, | |||
| int | y_offset | |||
| ) | [private, virtual] |
Reimplemented from gui2::tcontrol.
Definition at line 58 of file panel.cpp.
References gui2::twidget::calculate_blitting_rectangle(), gui2::tcontrol::canvas(), DBG_GUI_D, gui2::twidget::get_rect(), and LOG_HEADER.

| void gui2::tpanel::impl_draw_foreground | ( | surface & | frame_buffer | ) | [private, virtual] |
Inherited from tcontrol.
Reimplemented from gui2::tcontrol.
Definition at line 72 of file panel.cpp.
References gui2::tcontrol::canvas(), and gui2::twidget::get_rect().

| void gui2::tpanel::impl_draw_foreground | ( | surface & | frame_buffer, | |
| int | x_offset, | |||
| int | y_offset | |||
| ) | [private, virtual] |
Reimplemented from gui2::tcontrol.
Definition at line 77 of file panel.cpp.
References gui2::twidget::calculate_blitting_rectangle(), and gui2::tcontrol::canvas().

| void gui2::tpanel::set_self_active | ( | const | bool | ) | [inline, private, virtual] |
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:23:09 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |