The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
theme::menu Class Reference

#include <theme.hpp>

Inheritance diagram for theme::menu:
Inheritance graph

Public Member Functions

 menu ()
 
 menu (const config &cfg)
 
bool is_button () const
 
bool is_context () const
 
const std::stringtitle () const
 
const std::stringtooltip () const
 
const std::stringimage () const
 
const std::stringoverlay () const
 
const std::vector< std::string > & items () const
 
void set_title (const std::string &new_title)
 
- Public Member Functions inherited from theme::object
 object ()
 
 object (const config &cfg)
 
virtual ~object ()
 
SDL_Rect & location (const SDL_Rect &screen) const
 
const SDL_Rect & get_location () const
 
const std::stringget_id () const
 
void modify_location (const _rect &rect)
 
void modify_location (std::string rect_str, SDL_Rect rect_ref)
 

Private Attributes

bool button_
 
bool context_
 
std::string title_
 
std::string tooltip_
 
std::string image_
 
std::string overlay_
 
std::vector< std::stringitems_
 

Additional Inherited Members

- Public Types inherited from theme::object
enum  ANCHORING { FIXED, TOP_ANCHORED, PROPORTIONAL, BOTTOM_ANCHORED }
 

Detailed Description

Definition at line 227 of file theme.hpp.

Constructor & Destructor Documentation

theme::menu::menu ( )

Definition at line 543 of file theme.cpp.

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

Member Function Documentation

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

Definition at line 243 of file theme.hpp.

References image_.

bool theme::menu::is_button ( ) const
inline

Definition at line 235 of file theme.hpp.

References button_.

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

Definition at line 237 of file theme.hpp.

References context_.

Referenced by theme::add_object(), theme::context_menu(), and hotkey::command_executor::show_menu().

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

Definition at line 247 of file theme.hpp.

References items_.

Referenced by controller_base::play_slice(), and hotkey::command_executor::show_menu().

const std::string& theme::menu::overlay ( ) const
inline

Definition at line 245 of file theme.hpp.

References overlay_.

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

Definition at line 249 of file theme.hpp.

References title_.

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

Definition at line 239 of file theme.hpp.

References title_.

Referenced by hotkey::command_executor::get_menu_images().

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

Definition at line 241 of file theme.hpp.

References tooltip_.

Member Data Documentation

bool theme::menu::button_
private

Definition at line 251 of file theme.hpp.

Referenced by is_button().

bool theme::menu::context_
private

Definition at line 252 of file theme.hpp.

Referenced by is_context().

std::string theme::menu::image_
private

Definition at line 253 of file theme.hpp.

Referenced by image().

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

Definition at line 254 of file theme.hpp.

Referenced by items(), and menu().

std::string theme::menu::overlay_
private

Definition at line 253 of file theme.hpp.

Referenced by overlay().

std::string theme::menu::title_
private

Definition at line 253 of file theme.hpp.

Referenced by set_title(), and title().

std::string theme::menu::tooltip_
private

Definition at line 253 of file theme.hpp.

Referenced by menu(), and tooltip().


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