#include <theme.hpp>
Public Member Functions | |
label () | |
label (std::size_t sw, std::size_t sh, const config &cfg) | |
const std::string & | text () const |
void | set_text (const std::string &text) |
const std::string & | icon () const |
bool | empty () const |
std::size_t | font_size () const |
color_t | font_rgb () const |
bool | font_rgb_set () const |
virtual rect & | location (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 rect & | location (const SDL_Rect &screen) const |
const rect & | get_location () const |
const std::string & | get_id () const |
void | modify_location (const _rect &rect) |
void | modify_location (std::string rect_str, SDL_Rect rect_ref) |
Private Attributes | |
std::string | text_ |
std::string | icon_ |
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 } |
|
explicit |
Definition at line 432 of file theme.cpp.
References font_, font_rgb_, font_rgb_set_, color_t::from_rgb_string(), and config::has_attribute().
|
inline |
Definition at line 113 of file theme.hpp.
Referenced by theme::status_item::get_label().
|
inline |
|
inline |
Definition at line 117 of file theme.hpp.
References font_rgb_set_.
|
inline |
|
inline |
|
inline |
Definition at line 110 of file theme.hpp.
Referenced by theme::modify_label().
|
inline |
|
private |
Definition at line 120 of file theme.hpp.
Referenced by font_size(), and label().
|
private |
Definition at line 122 of file theme.hpp.
Referenced by font_rgb(), and label().
|
private |
Definition at line 121 of file theme.hpp.
Referenced by font_rgb_set(), and label().
|
private |
|
private |
Definition at line 119 of file theme.hpp.
Referenced by empty(), set_text(), and text().