16 #define GETTEXT_DOMAIN "wesnoth-lib"
28 #define ERR_CFG LOG_STREAM(warn, log_config)
61 const point& mouse,
const SDL_Rect& source_rect)
79 static std::unique_ptr<tooltip>
tip;
81 void show(
const std::string& window_id,
84 const SDL_Rect& source_rect)
97 ERR_CFG <<
"Tip with the requested id '" << window_id
98 <<
"' doesn't exist, fall back to the default.";
106 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
This file contains the settings handling of the widget library.
Helper struct to signal that get_window_builder failed.