The Battle for Wesnoth  1.19.5+dev
Namespaces | Macros | Functions | Variables
tooltips.cpp File Reference
#include "tooltips.hpp"
#include "draw_manager.hpp"
#include "floating_label.hpp"
#include "font/standard_colors.hpp"
#include "game_display.hpp"
#include "help/help.hpp"
#include "log.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.
 

Macros

#define DBG_FT   LOG_STREAM(debug, log_font)
 
#define LOG_FT   LOG_STREAM(info, log_font)
 

Functions

static void clear_active ()
 Clear/hide the active tooltip. More...
 
void tooltips::clear_tooltips ()
 
void tooltips::clear_tooltips (const SDL_Rect &r)
 
bool tooltips::update_tooltip (int id, const SDL_Rect &origin, const std::string &message)
 
void tooltips::remove_tooltip (int id)
 
int tooltips::add_tooltip (const SDL_Rect &origin, const std::string &message, const std::string &action)
 
static void tooltips::raise_to_top ()
 
static void tooltips::select_active (int id)
 
void tooltips::process (int mousex, int mousey)
 
bool tooltips::click (int mousex, int mousey)
 

Variables

static lg::log_domain log_font ("font")
 

Macro Definition Documentation

◆ DBG_FT

#define DBG_FT   LOG_STREAM(debug, log_font)

Definition at line 29 of file tooltips.cpp.

◆ LOG_FT

#define LOG_FT   LOG_STREAM(info, log_font)

Definition at line 30 of file tooltips.cpp.

Function Documentation

◆ clear_active()

static void clear_active ( )
static

Clear/hide the active tooltip.

Definition at line 180 of file tooltips.cpp.

References DBG_FT, and gui2::settings::tips.

Referenced by tooltips::clear_tooltips(), tooltips::process(), tooltips::remove_tooltip(), and tooltips::select_active().

Variable Documentation

◆ log_font

lg::log_domain log_font("font") ( "font"  )
static