tooltips Namespace Reference

tooltips. More...


Classes

struct  manager

Functions

void clear_tooltips ()
void clear_tooltips (const SDL_Rect &rect)
void add_tooltip (const SDL_Rect &rect, const std::string &message)
void process (int mousex, int mousey)


Detailed Description

tooltips.

This module can be used to register tooltips, which will be shown provided process() is called every time mouse motion events are received from the events system. If tooltips::draw_text() is used instead of font::draw_text(), the text will also be registered as a tooltip.


Function Documentation

void tooltips::add_tooltip ( const SDL_Rect &  rect,
const std::string &  message 
)

void tooltips::clear_tooltips ( const SDL_Rect &  rect  ) 

Definition at line 133 of file tooltips.cpp.

References clear_tooltip(), and rectangles_overlap().

void tooltips::clear_tooltips (  ) 

void tooltips::process ( int  mousex,
int  mousey 
)


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs