7#include "../utility/utility.hpp"
8#include "../macros.hpp"
9#include <unordered_map>
13hi_export_module(hikogui.text.text_decoration);
32constexpr auto text_decoration_metadata = enum_metadata{
33 text_decoration::None,
"none",
34 text_decoration::Underline,
"underline",
35 text_decoration::WavyUnderline,
"wavy-underline",
36 text_decoration::StrikeThrough,
"strike-through"
42 return text_decoration_metadata[rhs];
47 return lhs << text_decoration_metadata[rhs];
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
text_decoration
Describes how a grapheme should be underlined when rendering the text.
Definition text_decoration.hpp:24
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:378