emilib
Classes | Public Member Functions | Public Attributes | List of all members
text_paint::AttributeString Struct Reference

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< ColorRangecolors
 
std::vector< FontRangefonts
 

Detailed Description

Multiline text where ranges can be colored differently.


The documentation for this struct was generated from the following file: