#include <theme.hpp>
Public Member Functions | |
label () | |
label (const config &cfg) | |
const std::string & | text () const |
void | set_text (const std::string &text) |
const std::string & | icon () const |
bool | empty () const |
size_t | font_size () const |
Uint32 | font_rgb () const |
bool | font_rgb_set () const |
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::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_ |
size_t | font_ |
bool | font_rgb_set_ |
Uint32 | font_rgb_ |
Additional Inherited Members | |
Public Types inherited from theme::object | |
enum | ANCHORING { FIXED, TOP_ANCHORED, PROPORTIONAL, BOTTOM_ANCHORED } |
|
explicit |
Definition at line 448 of file theme.cpp.
References c, font_, font_rgb_, font_rgb_set_, g, config::has_attribute(), and utils::split().
|
inline |
Definition at line 123 of file theme.hpp.
Referenced by theme::status_item::get_label().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 120 of file theme.hpp.
Referenced by theme::modify_label().
|
inline |
Definition at line 119 of file theme.hpp.
References text_.
Referenced by draw_label(), and set_text().
|
private |
Definition at line 130 of file theme.hpp.
Referenced by font_size(), and label().
|
private |
Definition at line 132 of file theme.hpp.
Referenced by font_rgb(), and label().
|
private |
Definition at line 131 of file theme.hpp.
Referenced by font_rgb_set(), and label().
|
private |
|
private |
Definition at line 129 of file theme.hpp.
Referenced by empty(), set_text(), and text().