The Battle for Wesnoth  1.19.0-dev
Classes | Namespaces | Enumerations | Functions
floating_label.hpp File Reference
#include "color.hpp"
#include "sdl/point.hpp"
#include "sdl/rect.hpp"
#include "sdl/surface.hpp"
#include "sdl/texture.hpp"
#include <string>
Include dependency graph for floating_label.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  font::floating_label_context
 structure which will hide all current floating labels, and cause floating labels instantiated after it is created to be displayed More...
 
class  font::floating_label
 

Namespaces

 font
 Collection of helper functions relating to Pango formatting.
 

Enumerations

enum  font::ALIGN { font::LEFT_ALIGN , font::CENTER_ALIGN , font::RIGHT_ALIGN }
 
enum  font::LABEL_SCROLL_MODE { font::ANCHOR_LABEL_SCREEN , font::ANCHOR_LABEL_MAP }
 

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, 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 ()
 
void font::update_floating_labels ()