#include "LinearGradientPainter2D.h"
◆ LinearGradientPainter2D() [1/2]
ot::LinearGradientPainter2D::LinearGradientPainter2D |
( |
| ) |
|
◆ LinearGradientPainter2D() [2/2]
ot::LinearGradientPainter2D::LinearGradientPainter2D |
( |
const std::vector< GradientPainterStop2D > & | _stops | ) |
|
◆ ~LinearGradientPainter2D()
ot::LinearGradientPainter2D::~LinearGradientPainter2D |
( |
| ) |
|
|
virtual |
◆ addToJsonObject()
Add the object contents to the provided JSON object.
- Parameters
-
_document | The JSON document (used to get the allocator) |
_object | The JSON object to add the contents to |
Reimplemented from ot::GradientPainter2D.
◆ generateQss()
std::string ot::LinearGradientPainter2D::generateQss |
( |
void | | ) |
const |
|
overridevirtual |
◆ getFactoryKey()
virtual std::string ot::LinearGradientPainter2D::getFactoryKey |
( |
void | | ) |
const |
|
inlineoverridevirtual |
Returns the key that is used to create an instance of this class in the simple factory.
Implements ot::Painter2D.
◆ getFinalStop()
const ot::Point2DD & ot::LinearGradientPainter2D::getFinalStop |
( |
void | | ) |
const |
|
inline |
◆ getStart()
const ot::Point2DD & ot::LinearGradientPainter2D::getStart |
( |
void | | ) |
const |
|
inline |
◆ isEqualTo()
bool ot::LinearGradientPainter2D::isEqualTo |
( |
const Painter2D * | _other | ) |
const |
|
overridevirtual |
◆ setFinalStop()
void ot::LinearGradientPainter2D::setFinalStop |
( |
const ot::Point2DD & | _finalStop | ) |
|
|
inline |
Set the final stop point for the gradient. The painted area is between 0.0 and 1.0.
◆ setFromJsonObject()
void ot::LinearGradientPainter2D::setFromJsonObject |
( |
const ConstJsonObject & | _object | ) |
|
|
overridevirtual |
Will set the object contents from the provided JSON object.
- Parameters
-
_object | The JSON object containing the information |
- Exceptions
-
Will | throw an exception if the provided object is not valid (members missing or invalid types) |
Reimplemented from ot::GradientPainter2D.
◆ setStart()
void ot::LinearGradientPainter2D::setStart |
( |
const ot::Point2DD & | _start | ) |
|
|
inline |
Set the starting point for the gradient. The painted area is between 0.0 and 1.0.
The documentation for this class was generated from the following files: