The StyleRefPainter2D can be used to reference a ColorStyleValue in the active ColorStyle.
More...
#include "StyleRefPainter2D.h"
The StyleRefPainter2D can be used to reference a ColorStyleValue in the active ColorStyle.
- Note
- Note that the reference is only evaluated in the frontend by the QtFactory.
◆ StyleRefPainter2D()
◆ ~StyleRefPainter2D()
ot::StyleRefPainter2D::~StyleRefPainter2D |
( |
| ) |
|
|
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::Painter2D.
◆ generateQss()
std::string ot::StyleRefPainter2D::generateQss |
( |
void | | ) |
const |
|
overridevirtual |
◆ getDefaultColor()
ot::Color ot::StyleRefPainter2D::getDefaultColor |
( |
void | | ) |
const |
|
overridevirtual |
◆ getFactoryKey()
virtual std::string ot::StyleRefPainter2D::getFactoryKey |
( |
void | | ) |
const |
|
inlineoverridevirtual |
Returns the key that is used to create an instance of this class in the simple factory.
Implements ot::Painter2D.
◆ getReferenceKey()
◆ isEqualTo()
bool ot::StyleRefPainter2D::isEqualTo |
( |
const Painter2D * | _other | ) |
const |
|
overridevirtual |
Returns true if this painter is equal to the other painter.
Implements ot::Painter2D.
◆ setFromJsonObject()
void ot::StyleRefPainter2D::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::Painter2D.
◆ setReferenceKey()
The documentation for this class was generated from the following files: