Public Member Functions | Private Member Functions | Private Attributes

gui2::tspacer Class Reference

An empty widget. More...

#include <spacer.hpp>

Inheritance diagram for gui2::tspacer:
Inheritance graph
[legend]
Collaboration diagram for gui2::tspacer:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

gui2::tspacer::tspacer (  )  [inline]

Definition at line 35 of file spacer.hpp.


Member Function Documentation

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]

Inherited from tcontrol.

Implements gui2::tcontrol.

Definition at line 58 of file spacer.hpp.

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]

Inherited from tcontrol.

Implements gui2::tcontrol.

Definition at line 61 of file spacer.hpp.

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]

Inherited from tcontrol.

Implements gui2::tcontrol.

Definition at line 55 of file spacer.hpp.

void gui2::tspacer::set_best_size ( const tpoint best_size  )  [inline]

Definition at line 68 of file spacer.hpp.

References best_size_.


Member Data Documentation

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


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

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