The Battle for Wesnoth  1.19.7+dev
Namespaces | Macros | Functions | Variables
floating_label.cpp File Reference
#include "floating_label.hpp"
#include "draw.hpp"
#include "draw_manager.hpp"
#include "font/standard_colors.hpp"
#include "font/text.hpp"
#include "log.hpp"
#include "video.hpp"
#include <map>
#include <set>
#include <stack>
Include dependency graph for floating_label.cpp:

Go to the source code of this file.

Namespaces

 font
 Graphical text output.
 

Macros

#define DBG_FT   LOG_STREAM(debug, log_font)
 
#define LOG_FT   LOG_STREAM(info, log_font)
 
#define WRN_FT   LOG_STREAM(warn, log_font)
 
#define ERR_FT   LOG_STREAM(err, log_font)
 
#define ERR_DP   LOG_STREAM(err, log_display)
 

Functions

int font::add_floating_label (const floating_label &flabel)
 add a label floating on the screen above everything else. More...
 
void font::move_floating_label (int handle, double xmove, double ymove)
 moves the floating label given by 'handle' by (xmove,ymove) More...
 
void font::scroll_floating_labels (double xmove, double ymove)
 moves all floating labels that have 'scroll_mode' set to ANCHOR_LABEL_MAP More...
 
void font::remove_floating_label (int handle, const std::chrono::milliseconds &fadeout=std::chrono::milliseconds{0})
 removes the floating label given by 'handle' from the screen More...
 
void font::show_floating_label (int handle, bool show)
 hides or shows a floating label More...
 
SDL_Rect font::get_floating_label_rect (int handle)
 
void font::draw_floating_labels ()
 
void font::update_floating_labels ()
 

Variables

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

Macro Definition Documentation

◆ DBG_FT

#define DBG_FT   LOG_STREAM(debug, log_font)

Definition at line 30 of file floating_label.cpp.

◆ ERR_DP

#define ERR_DP   LOG_STREAM(err, log_display)

Definition at line 36 of file floating_label.cpp.

◆ ERR_FT

#define ERR_FT   LOG_STREAM(err, log_font)

Definition at line 33 of file floating_label.cpp.

◆ LOG_FT

#define LOG_FT   LOG_STREAM(info, log_font)

Definition at line 31 of file floating_label.cpp.

◆ WRN_FT

#define WRN_FT   LOG_STREAM(warn, log_font)

Definition at line 32 of file floating_label.cpp.

Variable Documentation

◆ log_display

lg::log_domain log_display("display") ( "display"  )
static

◆ log_font

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