
Public Types | |
| enum | ANCHORING { FIXED, TOP_ANCHORED, PROPORTIONAL, BOTTOM_ANCHORED } |
Public Member Functions | |
| 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) |
Static Private Member Functions | |
| static ANCHORING | read_anchor (const std::string &str) |
Private Attributes | |
| bool | location_modified_ |
| std::string | id_ |
| SDL_Rect | loc_ |
| SDL_Rect | relative_loc_ |
| SDL_Rect | last_screen_ |
| ANCHORING | xanchor_ |
| ANCHORING | yanchor_ |
|
inline |
Definition at line 49 of file theme.hpp.
References id_.
Referenced by draw_panel(), theme::modify(), and theme::set_object_location().
|
inline |
Definition at line 48 of file theme.hpp.
References loc_.
Referenced by theme::set_object_location().
| SDL_Rect & theme::object::location | ( | const SDL_Rect & | screen | ) | const |
Definition at line 342 of file theme.cpp.
References loc_, resources::screen, map_location::x, and map_location::y.
Referenced by draw_label(), draw_panel(), theme::main_map_location(), theme::mini_map_location(), theme::palette_location(), controller_base::play_slice(), display::refresh_report(), and theme::unit_image_location().
Definition at line 414 of file theme.cpp.
References loc_, map_location::x, _rect::x1, _rect::x2, map_location::y, _rect::y1, and _rect::y2.
Referenced by theme::set_object_location().
| void theme::object::modify_location | ( | std::string | rect_str, |
| SDL_Rect | rect_ref | ||
| ) |
Definition at line 422 of file theme.cpp.
References compute(), mp_ui_alerts::items, utils::split(), _rect::x1, _rect::x2, _rect::y1, and _rect::y2.
|
staticprivate |
|
private |
|
private |
Definition at line 69 of file theme.hpp.
Referenced by get_location().
1.8.8