Functions

gui2::tip Namespace Reference

Functions

static ttiptip ()
void show (CVideo &video, const std::string &window_id, const t_string &message, const tpoint &mouse)
 Shows a tip.
void remove ()
 Removes a tip.

Function Documentation

void gui2::tip::remove (  ) 

Removes a tip.

It is safe to call this function when no tip is shown.

void gui2::tip::show ( CVideo video,
const std::string &  window_id,
const t_string message,
const tpoint &  mouse 
)

Shows a tip.

The tip is a tooltip or a helptip. One type of tip is shown at the same time, opening a second tip closes the first.

Parameters:
video The video which contains the surface to draw upon.
window_id The id of the window used to show the tip.
message The message to show in the tip.
mouse The position of the mouse.

Referenced by lobby_info::apply_game_filter(), and unit_creator::post_create().

Here is the caller graph for this function:

static ttip& gui2::tip::tip (  )  [static]

Definition at line 129 of file tip.cpp.

Referenced by gui2::ttitle_screen::pre_show(), and gui2::tcontrol::signal_handler_show_tooltip().

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:23:43 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs