The Battle for Wesnoth  1.19.6+dev
Classes | Namespaces | Functions | Variables
markup.hpp File Reference
#include "color.hpp"
#include "config.hpp"
#include "font/standard_colors.hpp"
#include "formatter.hpp"
#include "serialization/string_utils.hpp"
#include <string>
Include dependency graph for markup.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  markup::parse_error
 Thrown when the help system fails to parse something. More...
 

Namespaces

 markup
 

Functions

template<typename... Args>
std::string markup::tag (const std::string &tag_name, Args &&... contents)
 
template<typename... Args>
std::string markup::span_color (const color_t &color, Args &&... data)
 
template<typename... Args>
std::string markup::span_color (const std::string &color, Args &&... data)
 
template<typename... Args>
std::string markup::span_size (const std::string &size, Args &&... data)
 
template<typename... Args>
std::string markup::bold (Args &&... data)
 
template<typename... Args>
std::string markup::italic (Args &&... data)
 
std::string markup::img (const std::string &src, const std::string &align, const bool floating)
 
std::string markup::make_link (const std::string &text, const std::string &dst)
 
config markup::parse_text (const std::string &text)
 Parse a xml style marked up text string. More...
 

Variables

static const std::string markup::br = "<br/>"