#include <theme.hpp>
Public Member Functions | |
menu () | |
menu (std::size_t sw, std::size_t sh, const config &cfg) | |
bool | is_button () const |
bool | is_context () const |
const std::string & | title () const |
const std::string & | tooltip () const |
const std::string & | image () const |
const std::string & | overlay () const |
const std::vector< config > & | items () const |
void | set_title (const std::string &new_title) |
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 (const std::string &rect_str, SDL_Rect rect_ref) |
Private Attributes | |
bool | button_ |
bool | context_ |
std::string | title_ |
std::string | tooltip_ |
std::string | image_ |
std::string | overlay_ |
std::vector< config > | items_ |
Additional Inherited Members | |
Public Types inherited from theme::object | |
enum | ANCHORING { FIXED , TOP_ANCHORED , PROPORTIONAL , BOTTOM_ANCHORED } |
|
explicit |
Definition at line 508 of file theme.cpp.
References hotkey::get_hotkey_command(), hotkey::get_names(), items_, utils::split(), and tooltip_.
|
inline |
|
inline |
|
inline |
Definition at line 227 of file theme.hpp.
References context_.
Referenced by theme::add_object(), theme::context_menu(), and hotkey::command_executor::show_menu().
|
inline |
Definition at line 237 of file theme.hpp.
References items_.
Referenced by controller_base::play_slice(), and hotkey::command_executor::show_menu().
rect & theme::object::location |
Definition at line 53 of file theme.cpp.
Referenced by controller_base::play_slice().
|
inline |
|
inline |
|
inline |
Definition at line 229 of file theme.hpp.
References title_.
Referenced by hotkey::command_executor::get_menu_images().
|
inline |
|
private |
Definition at line 241 of file theme.hpp.
Referenced by is_button().
|
private |
Definition at line 242 of file theme.hpp.
Referenced by is_context().
|
private |
|
private |
|
private |
|
private |
Definition at line 243 of file theme.hpp.
Referenced by set_title(), and title().
|
private |