The Battle for Wesnoth  1.15.0+dev
Namespaces | Functions
tooltips.cpp File Reference
#include "tooltips.hpp"
#include "floating_label.hpp"
#include "font/standard_colors.hpp"
#include "game_display.hpp"
#include "help/help.hpp"
#include "video.hpp"
#include <SDL2/SDL_rect.h>
Include dependency graph for tooltips.cpp:

Go to the source code of this file.

Namespaces

 tooltips
 tooltips.
 

Functions

static void clear_tooltip ()
 
static void show_tooltip (const tooltip &tip)
 
void tooltips::clear_tooltips ()
 
void tooltips::clear_tooltips (const SDL_Rect &rect)
 
bool tooltips::update_tooltip (int id, const SDL_Rect &rect, const std::string &message, const std::string &action, bool use_markup)
 
bool tooltips::update_tooltip (int id, const SDL_Rect &rect, const std::string &message, const std::string &action, bool use_markup, const surface &foreground)
 
void tooltips::remove_tooltip (int id)
 
int tooltips::add_tooltip (const SDL_Rect &rect, const std::string &message, const std::string &action, bool use_markup, const surface &foreground)
 
void tooltips::process (int mousex, int mousey)
 
bool tooltips::click (int mousex, int mousey)
 

Function Documentation

◆ clear_tooltip()

static void clear_tooltip ( )
static

◆ show_tooltip()

static void show_tooltip ( const tooltip &  tip)
static