|
OpenXLSX 1.9.1
|
An encapsulation of an array of fill::gradientFill::stop items. More...
#include <XLStyles.hpp>
Public Member Functions | |
| XLGradientStops () | |
| XLGradientStops (const XMLNode &node) | |
| Constructor. New items should only be created through an XLFill object. | |
| XLGradientStops (const XLGradientStops &other) | |
| Copy Constructor. | |
| XLGradientStops (XLGradientStops &&other) | |
| Move Constructor. | |
| ~XLGradientStops () | |
| XLGradientStops & | operator= (const XLGradientStops &other) |
| Copy assignment operator. | |
| XLGradientStops & | operator= (XLGradientStops &&other) noexcept=default |
| Move assignment operator. | |
| size_t | count () const |
| Get the count of gradient stops. | |
| XLGradientStop | stopByIndex (XLStyleIndex index) const |
| Get the gradient stop entry identified by index. | |
| XLGradientStop | operator[] (XLStyleIndex index) const |
| Operator overload: allow [] as shortcut access to stopByIndex. | |
| XLStyleIndex | create (XLGradientStop copyFrom=XLGradientStop{}, std::string_view styleEntriesPrefix="") |
| Append a new XLGradientStop, based on copyFrom, and return its index in fills node. | |
| std::string | summary () const |
An encapsulation of an array of fill::gradientFill::stop items.
| XLGradientStops::XLGradientStops | ( | ) |
|
explicit |
Constructor. New items should only be created through an XLFill object.
| node | An XMLNode object with the gradientFill item. If no input is provided, a null node is used. |
| XLGradientStops::XLGradientStops | ( | const XLGradientStops & | other | ) |
Copy Constructor.
| other | Object to be copied. |
| XLGradientStops::XLGradientStops | ( | XLGradientStops && | other | ) |
Move Constructor.
| other | Object to be moved. |
| XLGradientStops::~XLGradientStops | ( | ) |
| size_t XLGradientStops::count | ( | ) | const |
Get the count of gradient stops.
| XLStyleIndex XLGradientStops::create | ( | XLGradientStop | copyFrom = XLGradientStop{}, |
| std::string_view | styleEntriesPrefix = "" |
||
| ) |
Append a new XLGradientStop, based on copyFrom, and return its index in fills node.
| copyFrom | Can provide an XLGradientStop to use as template for the new style |
| stopEntriesPrefix | Prefix the newly created stop XMLNode with this pugi::node_pcdata text |
| XLGradientStops & XLGradientStops::operator= | ( | const XLGradientStops & | other | ) |
Copy assignment operator.
| other | Right hand side of assignment operation. |
|
defaultnoexcept |
Move assignment operator.
| other | Right hand side of assignment operation. |
|
inline |
Operator overload: allow [] as shortcut access to stopByIndex.
| index | The index within the XML sequence |
| XLGradientStop XLGradientStops::stopByIndex | ( | XLStyleIndex | index | ) | const |
Get the gradient stop entry identified by index.
| index | The index within the XML sequence |
| std::string XLGradientStops::summary | ( | ) | const |