The Battle for Wesnoth  1.17.23+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.




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


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)


static lg::log_domain log_font ("font")

Macro Definition Documentation


#define DBG_FT   LOG_STREAM(debug, log_font)

Definition at line 29 of file tooltips.cpp.


#define LOG_FT   LOG_STREAM(info, log_font)

Definition at line 30 of file tooltips.cpp.

Function Documentation

◆ clear_active()

static void clear_active ( )

Clear/hide the active tooltip.

Definition at line 118 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"  )