The Battle for Wesnoth  1.15.12+dev
Namespaces | Macros | Functions | Variables
floating_label.cpp File Reference
#include "floating_label.hpp"
#include "display.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.


 Collection of helper functions relating to Pango formatting.


#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)


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, int fadeout=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 (surface screen)
void font::undraw_floating_labels (surface screen)


static lg::log_domain log_font ("font")

Macro Definition Documentation


#define DBG_FT   LOG_STREAM(debug, log_font)

Definition at line 27 of file floating_label.cpp.


#define ERR_FT   LOG_STREAM(err, log_font)

Definition at line 30 of file floating_label.cpp.

Referenced by font::floating_label::create_surface().


#define LOG_FT   LOG_STREAM(info, log_font)

Definition at line 28 of file floating_label.cpp.


#define WRN_FT   LOG_STREAM(warn, log_font)

Definition at line 29 of file floating_label.cpp.

Variable Documentation

◆ log_font

lg::log_domain log_font("font")