xlnt
|
Represents a fill which colors the cell based on a foreground and background color and a pattern. More...
#include <fill.hpp>
Public Member Functions | |
pattern_fill () | |
Constructs a default pattern fill with a none pattern and no colors. More... | |
pattern_fill_type | type () const |
Returns the pattern used by this fill More... | |
pattern_fill & | type (pattern_fill_type new_type) |
Sets the pattern of this fill and returns a reference to it. More... | |
optional< color > | foreground () const |
Returns the optional foreground color of this fill More... | |
pattern_fill & | foreground (const color &foreground) |
Sets the foreground color and returns a reference to this pattern. More... | |
optional< color > | background () const |
Returns the optional background color of this fill More... | |
pattern_fill & | background (const color &background) |
Sets the foreground color and returns a reference to this pattern. More... | |
bool | operator== (const pattern_fill &other) const |
Returns true if this pattern fill is equivalent to other. More... | |
bool | operator!= (const pattern_fill &other) const |
Returns true if this pattern fill is not equivalent to other. More... | |
Represents a fill which colors the cell based on a foreground and background color and a pattern.
xlnt::pattern_fill::pattern_fill | ( | ) |
Constructs a default pattern fill with a none pattern and no colors.
Returns the optional background color of this fill
pattern_fill& xlnt::pattern_fill::background | ( | const color & | background | ) |
Sets the foreground color and returns a reference to this pattern.
Returns the optional foreground color of this fill
pattern_fill& xlnt::pattern_fill::foreground | ( | const color & | foreground | ) |
Sets the foreground color and returns a reference to this pattern.
bool xlnt::pattern_fill::operator!= | ( | const pattern_fill & | other | ) | const |
Returns true if this pattern fill is not equivalent to other.
bool xlnt::pattern_fill::operator== | ( | const pattern_fill & | other | ) | const |
Returns true if this pattern fill is equivalent to other.
pattern_fill_type xlnt::pattern_fill::type | ( | ) | const |
Returns the pattern used by this fill
pattern_fill& xlnt::pattern_fill::type | ( | pattern_fill_type | new_type | ) |
Sets the pattern of this fill and returns a reference to it.