theme::menu Class Reference

#include <theme.hpp>

Inheritance diagram for theme::menu:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 menu ()
 menu (const config &cfg)
bool is_context () const
const std::string & title () const
const std::string & tooltip () const
const std::string & type () const
const std::string & image () const
const std::vector< std::string > & items () const
void set_title (const std::string new_title)

Private Attributes

bool context_
std::string title_
std::string tooltip_
std::string image_
std::string type_
std::vector< std::string > items_


Detailed Description

Definition at line 167 of file theme.hpp.


Constructor & Destructor Documentation

theme::menu::menu (  ) 

Definition at line 491 of file theme.cpp.

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

Definition at line 494 of file theme.cpp.


Member Function Documentation

bool theme::menu::is_context (  )  const [inline]

Definition at line 175 of file theme.hpp.

References context_.

Referenced by theme::add_object(), and theme::context_menu().

const std::string& theme::menu::title (  )  const [inline]

Definition at line 177 of file theme.hpp.

References title_.

const std::string& theme::menu::tooltip (  )  const [inline]

Definition at line 179 of file theme.hpp.

References tooltip_.

const std::string& theme::menu::type (  )  const [inline]

Definition at line 181 of file theme.hpp.

References type_.

const std::string& theme::menu::image (  )  const [inline]

Definition at line 183 of file theme.hpp.

References image_.

const std::vector<std::string>& theme::menu::items (  )  const [inline]

void theme::menu::set_title ( const std::string  new_title  )  [inline]

Definition at line 187 of file theme.hpp.

References title_.

Referenced by theme::refresh_title().


Member Data Documentation

bool theme::menu::context_ [private]

Definition at line 189 of file theme.hpp.

Referenced by is_context().

std::string theme::menu::title_ [private]

Definition at line 190 of file theme.hpp.

Referenced by set_title(), and title().

std::string theme::menu::tooltip_ [private]

Definition at line 190 of file theme.hpp.

Referenced by tooltip().

std::string theme::menu::image_ [private]

Definition at line 190 of file theme.hpp.

Referenced by image().

std::string theme::menu::type_ [private]

Definition at line 190 of file theme.hpp.

Referenced by type().

std::vector<std::string> theme::menu::items_ [private]

Definition at line 191 of file theme.hpp.

Referenced by items().


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