The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Enumerations | Functions
floating_label.hpp File Reference
#include "font.hpp"
#include "sdl/utils.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
 Graphical text output.
 

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