|
OpenXLSX 1.9.1
|
An encapsulation of a fill item. More...
#include <XLStyles.hpp>
Public Member Functions | |
| XLFill () | |
| XLFill (const XMLNode &node) | |
| Constructor. New items should only be created through an XLStyles object. | |
| XLFill (const XLFill &other) | |
| Copy Constructor. | |
| XLFill (XLFill &&other) noexcept=default | |
| Move Constructor. | |
| ~XLFill () | |
| XLFill & | operator= (const XLFill &other) |
| Copy assignment operator. | |
| XLFill & | operator= (XLFill &&other) noexcept=default |
| Move assignment operator. | |
| XLFillType | fillType () const |
| Get the name of the element describing a fill. | |
| bool | setFillType (XLFillType newFillType, bool force=false) |
| Create & set the base XML element describing the fill. | |
| XLGradientType | gradientType () |
| Getter functions for gradientFill - will throwOnFillType(XLPatternFill, func) | |
| double | degree () |
| double | left () |
| double | right () |
| double | top () |
| double | bottom () |
| XLGradientStops | stops () |
| XLPatternType | patternType () |
| Getter functions for patternFill - will throwOnFillType(XLGradientFill, func) | |
| XLColor | color () |
| XLColor | backgroundColor () |
| bool | setGradientType (XLGradientType newType) |
| Setter functions for gradientFill - will throwOnFillType(XLPatternFill, func) | |
| bool | setDegree (double newDegree) |
| bool | setLeft (double newLeft) |
| bool | setRight (double newRight) |
| bool | setTop (double newTop) |
| bool | setBottom (double newBottom) |
| XLFill & | setPatternType (XLPatternType newPatternType) |
| Setter functions for patternFill - will throwOnFillType(XLGradientFill, func) | |
| XLFill & | setColor (XLColor newColor) |
| XLFill & | setBackgroundColor (XLColor newBgColor) |
| std::string | summary () |
| Return a string summary of the fill properties. | |
Friends | |
| class | XLFills |
An encapsulation of a fill item.
| XLFill::XLFill | ( | ) |
|
explicit |
Constructor. New items should only be created through an XLStyles object.
| node | An XMLNode object with the fill XMLNode. If no input is provided, a null node is used. |
| XLFill::XLFill | ( | const XLFill & | other | ) |
Copy Constructor.
| other | Object to be copied. |
|
defaultnoexcept |
Move Constructor.
| other | Object to be moved. |
|
default |
| XLColor XLFill::backgroundColor | ( | ) |
| double XLFill::bottom | ( | ) |
| XLColor XLFill::color | ( | ) |
| double XLFill::degree | ( | ) |
| XLFillType XLFill::fillType | ( | ) | const |
Get the name of the element describing a fill.
Returns the name of the first element child of fill
| XLGradientType XLFill::gradientType | ( | ) |
Getter functions for gradientFill - will throwOnFillType(XLPatternFill, func)
| double XLFill::left | ( | ) |
Copy assignment operator.
| other | Right hand side of assignment operation. |
Move assignment operator.
| other | Right hand side of assignment operation. |
| XLPatternType XLFill::patternType | ( | ) |
Getter functions for patternFill - will throwOnFillType(XLGradientFill, func)
| double XLFill::right | ( | ) |
| bool XLFill::setBottom | ( | double | newBottom | ) |
| bool XLFill::setDegree | ( | double | newDegree | ) |
| bool XLFill::setFillType | ( | XLFillType | newFillType, |
| bool | force = false |
||
| ) |
Create & set the base XML element describing the fill.
| newFillType | that shall be set |
| force | erase an existing fillType() if not equal newFillType |
| bool XLFill::setGradientType | ( | XLGradientType | newType | ) |
Setter functions for gradientFill - will throwOnFillType(XLPatternFill, func)
| value | that shall be set |
| bool XLFill::setLeft | ( | double | newLeft | ) |
| XLFill & XLFill::setPatternType | ( | XLPatternType | newPatternType | ) |
Setter functions for patternFill - will throwOnFillType(XLGradientFill, func)
| value | that shall be set |
| bool XLFill::setRight | ( | double | newRight | ) |
| bool XLFill::setTop | ( | double | newTop | ) |
| XLGradientStops XLFill::stops | ( | ) |
| std::string XLFill::summary | ( | ) |
Return a string summary of the fill properties.
| double XLFill::top | ( | ) |
|
friend |