|
emilib
|
Multiline text where ranges can be colored differently. More...
#include <text_paint.hpp>
Classes | |
| struct | ColorRange |
| struct | FontRange |
Public Member Functions | |
| AttributeString (const std::string &str, RGBAf color={1, 1, 1, 1}) | |
| void | append (const std::string &str, RGBAf color={1, 1, 1, 1}) |
| void | set_font_range (size_t begin, size_t end, std::string font) |
| Set different font for byte range [begin, end) | |
Public Attributes | |
| std::string | utf8 |
| std::vector< ColorRange > | colors |
| std::vector< FontRange > | fonts |
Multiline text where ranges can be colored differently.
1.8.13