|
Orcus
|
#include <document_types.hpp>
Public Member Functions | |
| void | reset () |
| bool | formatted () const |
Public Attributes | |
| std::size_t | pos |
| std::size_t | size |
| std::string_view | font |
| double | font_size |
| color_t | color |
| bool | bold:1 |
| bool | italic:1 |
Contains formatting properties of a section of a string. This is used in the stroage of rich-text strings.
| bool orcus::spreadsheet::format_run::formatted | ( | ) | const |
Query whether or not the section contains non-default format properties.
true of it's formatted, otherwise false. | void orcus::spreadsheet::format_run::reset | ( | ) |
Reset the properties to unformatted state.
| bool orcus::spreadsheet::format_run::bold |
Whether or not the font is bold.
| color_t orcus::spreadsheet::format_run::color |
Color of the section.
| std::string_view orcus::spreadsheet::format_run::font |
Name of the font.
| double orcus::spreadsheet::format_run::font_size |
Size of the font.
| bool orcus::spreadsheet::format_run::italic |
Whether or not the font is italic.
| std::size_t orcus::spreadsheet::format_run::pos |
Position of the section where the formatting starts.
| std::size_t orcus::spreadsheet::format_run::size |
Length of the section.