16 #define GETTEXT_DOMAIN "wesnoth-lib"
25 #define ERR_CFG LOG_STREAM(warn, log_config)
44 const point& mouse,
const SDL_Rect& source_rect)
62 static std::unique_ptr<tooltip>
tip;
64 void show(
const std::string& window_id,
67 const SDL_Rect& source_rect)
80 ERR_CFG <<
"Tip with the requested id '" << window_id
81 <<
"' doesn't exist, fall back to the default.";
89 ERR_CFG <<
"Default tooltip doesn't exist, no message shown.";
Main class to show messages to the user.
The popup class shows windows that are shown non-modal.
std::string tooltip
Shown when hovering over an entry in the filter's drop-down list.
#define REGISTER_WINDOW(id)
Registers a window.
void show(const std::string &window_id, const t_string &message, const point &mouse, const SDL_Rect &source_rect)
Shows a tip.
void remove()
Removes a tip.
static std::unique_ptr< tooltip > tip
Helper struct to signal that get_window_builder failed.