#include "color.hpp"
#include "sdl/point.hpp"
#include "sdl/rect.hpp"
#include "sdl/surface.hpp"
#include "sdl/texture.hpp"
#include <chrono>
#include <string>
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, 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 () |