The Battle for Wesnoth  1.19.7+dev
Public Member Functions | Private Attributes | List of all members
theme::status_item Class Reference

#include <theme.hpp>

Inheritance diagram for theme::status_item:

Public Member Functions

 status_item (std::size_t sw, std::size_t sh, const config &cfg)
 
const std::string & prefix () const
 
const std::string & postfix () const
 
const labelget_label () const
 
std::size_t font_size () const
 
color_t font_rgb () const
 
bool font_rgb_set () const
 
virtual rectlocation (const SDL_Rect &screen) const
 
- Public Member Functions inherited from theme::object
 object ()
 
 object (std::size_t sw, std::size_t sh, const config &cfg)
 
virtual ~object ()
 
virtual rectlocation (const SDL_Rect &screen) const
 
const rectget_location () const
 
const std::string & get_id () const
 
void modify_location (const _rect &rect)
 
void modify_location (const std::string &rect_str, SDL_Rect rect_ref)
 

Private Attributes

std::string prefix_
 
std::string postfix_
 
label label_
 
std::size_t font_
 
bool font_rgb_set_
 
color_t font_rgb_
 

Additional Inherited Members

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

Detailed Description

Definition at line 125 of file theme.hpp.

Constructor & Destructor Documentation

◆ status_item()

theme::status_item::status_item ( std::size_t  sw,
std::size_t  sh,
const config cfg 
)
explicit

Member Function Documentation

◆ font_rgb()

color_t theme::status_item::font_rgb ( ) const
inline

Definition at line 140 of file theme.hpp.

References font_rgb_.

Referenced by display::draw_report().

◆ font_rgb_set()

bool theme::status_item::font_rgb_set ( ) const
inline

Definition at line 141 of file theme.hpp.

References font_rgb_set_.

Referenced by display::draw_report().

◆ font_size()

std::size_t theme::status_item::font_size ( ) const
inline

Definition at line 139 of file theme.hpp.

References font_.

Referenced by display::draw_report().

◆ get_label()

const label* theme::status_item::get_label ( ) const
inline

Definition at line 137 of file theme.hpp.

References theme::label::empty(), and label_.

◆ location()

rect & theme::object::location

Definition at line 53 of file theme.cpp.

Referenced by display::refresh_report().

◆ postfix()

const std::string& theme::status_item::postfix ( ) const
inline

Definition at line 134 of file theme.hpp.

References postfix_.

Referenced by display::refresh_report().

◆ prefix()

const std::string& theme::status_item::prefix ( ) const
inline

Definition at line 133 of file theme.hpp.

References prefix_.

Referenced by display::refresh_report().

Member Data Documentation

◆ font_

std::size_t theme::status_item::font_
private

Definition at line 146 of file theme.hpp.

Referenced by font_size(), and status_item().

◆ font_rgb_

color_t theme::status_item::font_rgb_
private

Definition at line 148 of file theme.hpp.

Referenced by font_rgb(), and status_item().

◆ font_rgb_set_

bool theme::status_item::font_rgb_set_
private

Definition at line 147 of file theme.hpp.

Referenced by font_rgb_set(), and status_item().

◆ label_

label theme::status_item::label_
private

Definition at line 145 of file theme.hpp.

Referenced by get_label(), and status_item().

◆ postfix_

std::string theme::status_item::postfix_
private

Definition at line 144 of file theme.hpp.

Referenced by postfix().

◆ prefix_

std::string theme::status_item::prefix_
private

Definition at line 144 of file theme.hpp.

Referenced by prefix().


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