#include "GradientPainterStop2D.h"
◆ GradientPainterStop2D() [1/3]
ot::GradientPainterStop2D::GradientPainterStop2D |
( |
| ) |
|
◆ GradientPainterStop2D() [2/3]
ot::GradientPainterStop2D::GradientPainterStop2D |
( |
double | _pos, |
|
|
const ot::Color & | _color ) |
◆ GradientPainterStop2D() [3/3]
◆ ~GradientPainterStop2D()
ot::GradientPainterStop2D::~GradientPainterStop2D |
( |
| ) |
|
|
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 |
◆ getColor()
const ot::Color & ot::GradientPainterStop2D::getColor |
( |
void | | ) |
const |
|
inline |
◆ getPos()
double ot::GradientPainterStop2D::getPos |
( |
void | | ) |
const |
|
inline |
◆ operator!=()
◆ operator=()
◆ operator==()
◆ setColor()
void ot::GradientPainterStop2D::setColor |
( |
const ot::Color & | _color | ) |
|
|
inline |
◆ setFromJsonObject()
void ot::GradientPainterStop2D::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) |
Implements ot::Serializable.
◆ setPos()
void ot::GradientPainterStop2D::setPos |
( |
double | _pos | ) |
|
|
inline |
Set postion of the gradient stop (0.0 - 1.0)
The documentation for this class was generated from the following files: