7#include "../utility/utility.hpp"
8#include "../macros.hpp"
9#include <unordered_map>
13hi_export_module(hikogui.text.text_decoration);
16hi_export
namespace hi::inline
v1 {
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"
40[[nodiscard]]
inline std::string_view
to_string(text_decoration
const &rhs)
noexcept
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