31 #include <xlnt/xlnt_config.hpp> 32 #include <xlnt/utils/optional.hpp> 51 std::size_t index()
const;
56 void index(std::size_t index);
79 std::size_t index()
const;
84 void index(std::size_t index);
102 rgb_color(
const std::string &hex_string);
108 rgb_color(std::uint8_t r, std::uint8_t g, std::uint8_t b, std::uint8_t a = 255);
113 std::string hex_string()
const;
118 std::uint8_t red()
const;
123 std::uint8_t green()
const;
128 std::uint8_t blue()
const;
133 std::uint8_t alpha()
const;
138 std::array<std::uint8_t, 3> rgb()
const;
143 std::array<std::uint8_t, 4> rgba()
const;
149 std::array<std::uint8_t, 4> rgba_;
171 static const color black();
176 static const color white();
181 static const color red();
186 static const color darkred();
191 static const color blue();
196 static const color darkblue();
201 static const color green();
206 static const color darkgreen();
211 static const color yellow();
216 static const color darkyellow();
251 void auto_(
bool value);
292 bool has_tint()
const;
302 void tint(
double tint);
348 bool auto_color =
false;
Enumerates the possible types a cell can be determined by it's current value.
Definition: cell.hpp:37
Colors can be applied to many parts of a cell's style.
Definition: color.hpp:165
color_type
Some colors are references to colors rather than having a particular RGB value.
Definition: color.hpp:155
bool operator==(std::nullptr_t, const cell &cell)
Returns true if this cell is uninitialized.
A theme is a combination of fonts, colors, and effects. This isn't really supported yet...
Definition: theme.hpp:35
An indexed color encapsulates a simple index to a color in the indexedColors of the stylesheet...
Definition: color.hpp:39
A theme color encapsulates a color derived from the theme.
Definition: color.hpp:68
An RGB color describes a color in terms of its red, green, blue, and alpha components.
Definition: color.hpp:96
bool operator!=(const std::string &reference_string, const range_reference &ref)
Returns true if the string representation of the range is not equivalent to ref.