Orcus
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
orcus::spreadsheet::format_run Struct Reference

#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
 

Detailed Description

Contains formatting properties of a section of a string. This is used in the stroage of rich-text strings.

Member Function Documentation

◆ formatted()

bool orcus::spreadsheet::format_run::formatted ( ) const

Query whether or not the section contains non-default format properties.

Returns
true of it's formatted, otherwise false.

◆ reset()

void orcus::spreadsheet::format_run::reset ( )

Reset the properties to unformatted state.

Member Data Documentation

◆ bold

bool orcus::spreadsheet::format_run::bold

Whether or not the font is bold.

◆ color

color_t orcus::spreadsheet::format_run::color

Color of the section.

◆ font

std::string_view orcus::spreadsheet::format_run::font

Name of the font.

◆ font_size

double orcus::spreadsheet::format_run::font_size

Size of the font.

◆ italic

bool orcus::spreadsheet::format_run::italic

Whether or not the font is italic.

◆ pos

std::size_t orcus::spreadsheet::format_run::pos

Position of the section where the formatting starts.

◆ size

std::size_t orcus::spreadsheet::format_run::size

Length of the section.