15 #define GETTEXT_DOMAIN "wesnoth-lib"
26 #define ERR_CFG LOG_STREAM(warn, log_config)
68 class ttip :
public tpopup
143 t.set_window_id(window_id);
144 t.set_message(message);
152 ERR_CFG <<
"Tip with the requested id '" << window_id
153 <<
"' doesn't exist, fall back to the default.\n";
154 t.set_window_id(
"tooltip_large");
161 ERR_CFG <<
"Default tooltip doesn't exist, no message shown."
#define REGISTER_WINDOW(id)
Registers a window.
Helper struct to signal that get_window_builder failed.
base class of top level items, the only item which needs to store the final canvases to draw on ...
A class inherited from ttext_box that displays its input as stars.
virtual const std::string & window_id() const
Inherited from tpopup.
void pre_show(twindow &window)
Inherited from tpopup.
static lg::log_domain log_config("config")
void show(CVideo &video, const std::string &window_id, const t_string &message, const tpoint &mouse)
Shows a tip.
tpoint mouse_
The position of the mouse.
The tips of day structure.
void set_message(const t_string &message)
void set_mouse(const tpoint &mouse)
t_string message_
The message to show.
GLsizei GLenum GLuint GLuint GLsizei char * message
static void set_label(twindow &window, const std::string &id, const std::string &label)
void set_window_id(const std::string &window_id)
std::string window_id_
The id of the window to use to show the tip.
GLsizei const GLcharARB ** string