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::action Class Reference

#include <theme.hpp>

Inheritance diagram for theme::action:
Inheritance graph

Public Member Functions

 action ()
 
 action (const config &cfg)
 
bool is_context () const
 
const std::stringtitle () const
 
const std::string tooltip (size_t index) const
 
const std::stringtype () 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 context_
 
bool auto_tooltip_
 
bool tooltip_name_prepend_
 
std::string title_
 
std::string tooltip_
 
std::string image_
 
std::string overlay_
 
std::string type_
 
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 174 of file theme.hpp.

Constructor & Destructor Documentation

theme::action::action ( )

Definition at line 571 of file theme.cpp.

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

Definition at line 584 of file theme.cpp.

Member Function Documentation

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

Definition at line 190 of file theme.hpp.

References image_.

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

Definition at line 182 of file theme.hpp.

References context_.

Referenced by theme::add_object().

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

Definition at line 194 of file theme.hpp.

References items_.

Referenced by controller_base::play_slice().

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

Definition at line 192 of file theme.hpp.

References overlay_.

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

Definition at line 196 of file theme.hpp.

References title_.

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

Definition at line 184 of file theme.hpp.

References title_.

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

const std::string theme::action::tooltip ( size_t  index) const
const std::string& theme::action::type ( ) const
inline

Definition at line 188 of file theme.hpp.

References type_.

Member Data Documentation

bool theme::action::auto_tooltip_
private

Definition at line 198 of file theme.hpp.

bool theme::action::context_
private

Definition at line 198 of file theme.hpp.

Referenced by is_context().

std::string theme::action::image_
private

Definition at line 199 of file theme.hpp.

Referenced by image().

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

Definition at line 200 of file theme.hpp.

Referenced by items().

std::string theme::action::overlay_
private

Definition at line 199 of file theme.hpp.

Referenced by overlay().

std::string theme::action::title_
private

Definition at line 199 of file theme.hpp.

Referenced by set_title(), and title().

std::string theme::action::tooltip_
private

Definition at line 199 of file theme.hpp.

bool theme::action::tooltip_name_prepend_
private

Definition at line 198 of file theme.hpp.

std::string theme::action::type_
private

Definition at line 199 of file theme.hpp.

Referenced by type().


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