Public Member Functions | Private Attributes

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
void set_text (const std::string &text)
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 104 of file theme.hpp.


Constructor & Destructor Documentation

theme::label::label (  ) 

Definition at line 415 of file theme.cpp.

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

Definition at line 423 of file theme.cpp.

References font_, font_rgb_, font_rgb_set_, config::has_attribute(), and utils::split().

Here is the call graph for this function:


Member Function Documentation

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

Here is the caller graph for this function:

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

Definition at line 119 of file theme.hpp.

References font_rgb_.

Referenced by draw_label().

Here is the caller graph for this function:

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

Definition at line 120 of file theme.hpp.

References font_rgb_set_.

Referenced by draw_label().

Here is the caller graph for this function:

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

Definition at line 118 of file theme.hpp.

References font_.

Referenced by draw_label().

Here is the caller graph for this function:

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

Definition at line 114 of file theme.hpp.

References icon_.

Referenced by draw_label().

Here is the caller graph for this function:

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

Definition at line 113 of file theme.hpp.

References text_.

Referenced by theme::modify_label().

Here is the caller graph for this function:

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

Definition at line 112 of file theme.hpp.

References text_.

Referenced by draw_label().

Here is the caller graph for this function:


Member Data Documentation

size_t theme::label::font_ [private]

Definition at line 123 of file theme.hpp.

Referenced by font_size(), and label().

Uint32 theme::label::font_rgb_ [private]

Definition at line 125 of file theme.hpp.

Referenced by font_rgb(), and label().

Definition at line 124 of file theme.hpp.

Referenced by font_rgb_set(), and label().

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

Definition at line 122 of file theme.hpp.

Referenced by empty(), and icon().

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

Definition at line 122 of file theme.hpp.

Referenced by empty(), set_text(), and text().


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:16:43 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs