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) |
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.
void tooltips::add_tooltip | ( | const SDL_Rect & | rect, | |
const std::string & | message | |||
) |
Definition at line 148 of file tooltips.cpp.
References rectangles_overlap().
Referenced by display::create_buttons(), draw_label(), font::draw_text_line(), map_editor::terrain_palette::load_tooltips(), map_editor::load_tooltips(), mp::create::process_event(), and display::refresh_report().
void tooltips::clear_tooltips | ( | const SDL_Rect & | rect | ) |
void tooltips::clear_tooltips | ( | ) |
Definition at line 126 of file tooltips.cpp.
References clear_tooltip().
Referenced by map_editor::load_tooltips(), tooltips::manager::manager(), mp::create::process_event(), display::redraw_everything(), display::refresh_report(), tooltips::manager::~manager(), and gui::preview_pane::~preview_pane().
void tooltips::process | ( | int | mousex, | |
int | mousey | |||
) |
Definition at line 161 of file tooltips.cpp.
References clear_tooltip(), rect, and show_tooltip().
Referenced by map_editor::handle_event(), play_controller::play_slice(), help::help_menu::process(), and mp::create::process_event().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |