theme::label Class Reference

#include <theme.hpp>

Inheritance diagram for theme::label:

Inheritance graph
[legend]
Collaboration diagram for theme::label:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 label ()
 label (const config &cfg)
const std::string & text () const
const std::string & icon () const
bool empty () const
size_t font_size () const
Uint32 font_rgb () const
bool font_rgb_set () const

Private Attributes

std::string text_
std::string icon_
size_t font_
bool font_rgb_set_
Uint32 font_rgb_


Detailed Description

Definition at line 105 of file theme.hpp.


Constructor & Destructor Documentation

theme::label::label (  ) 

Definition at line 412 of file theme.cpp.

theme::label::label ( const config cfg  )  [explicit]

Definition at line 415 of file theme.cpp.

References b, DefaultFontRGB, DefaultFontSize, font_, font_rgb_, font_rgb_set_, g, r, size, and utils::split().


Member Function Documentation

const std::string& theme::label::text (  )  const [inline]

Definition at line 113 of file theme.hpp.

References text_.

Referenced by draw_label().

const std::string& theme::label::icon (  )  const [inline]

Definition at line 114 of file theme.hpp.

References icon_.

Referenced by draw_label().

bool theme::label::empty (  )  const [inline]

Definition at line 116 of file theme.hpp.

References icon_, and text_.

Referenced by theme::status_item::get_label().

size_t theme::label::font_size (  )  const [inline]

Definition at line 118 of file theme.hpp.

References font_.

Referenced by draw_label().

Uint32 theme::label::font_rgb (  )  const [inline]

Definition at line 119 of file theme.hpp.

References font_rgb_.

Referenced by draw_label().

bool theme::label::font_rgb_set (  )  const [inline]

Definition at line 120 of file theme.hpp.

References font_rgb_set_.

Referenced by draw_label().


Member Data Documentation

std::string theme::label::text_ [private]

Definition at line 122 of file theme.hpp.

Referenced by empty(), and text().

std::string theme::label::icon_ [private]

Definition at line 122 of file theme.hpp.

Referenced by empty(), and icon().

size_t theme::label::font_ [private]

Definition at line 123 of file theme.hpp.

Referenced by font_size(), and label().

Definition at line 124 of file theme.hpp.

Referenced by font_rgb_set(), and label().

Uint32 theme::label::font_rgb_ [private]

Definition at line 125 of file theme.hpp.

Referenced by font_rgb(), and label().


The documentation for this class was generated from the following files:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs