#include "Painter2D.h"
Public Member Functions | |
Painter2D () | |
virtual | ~Painter2D () |
virtual std::string | getFactoryKey (void) const =0 |
Returns the unique Painter2D type name that is used in the Painter2DFactory. | |
virtual void | addToJsonObject (JsonValue &_object, JsonAllocator &_allocator) const override |
Add the object contents to the provided JSON object. | |
virtual void | setFromJsonObject (const ConstJsonObject &_object) override |
Will set the object contents from the provided JSON object. | |
virtual std::string | generateQss (void) const =0 |
virtual ot::Color | getDefaultColor (void) const =0 |
virtual bool | isEqualTo (const Painter2D *_other) const =0 |
Returns true if this painter is equal to the other painter. | |
Painter2D * | createCopy (void) const |
Creates a copy of this painter. | |
Public Member Functions inherited from ot::Serializable | |
Serializable () | |
virtual | ~Serializable () |
virtual void | addToJsonObject (ot::JsonValue &_object, ot::JsonAllocator &_allocator) const =0 |
Add the object contents to the provided JSON object. | |
|
inline |
|
inlinevirtual |
|
overridevirtual |
Add the object contents to the provided JSON object.
_document | The JSON document (used to get the allocator) |
_object | The JSON object to add the contents to |
Reimplemented in ot::CheckerboardPainter2D, ot::FillPainter2D, ot::GradientPainter2D, ot::LinearGradientPainter2D, ot::RadialGradientPainter2D, and ot::StyleRefPainter2D.
ot::Painter2D * ot::Painter2D::createCopy | ( | void | ) | const |
Creates a copy of this painter.
|
pure virtual |
|
pure virtual |
Implemented in ot::CheckerboardPainter2D, ot::FillPainter2D, ot::GradientPainter2D, and ot::StyleRefPainter2D.
|
pure virtual |
Returns the unique Painter2D type name that is used in the Painter2DFactory.
Implemented in ot::CheckerboardPainter2D, ot::FillPainter2D, ot::LinearGradientPainter2D, ot::RadialGradientPainter2D, and ot::StyleRefPainter2D.
|
pure virtual |
Returns true if this painter is equal to the other painter.
Implemented in ot::CheckerboardPainter2D, ot::FillPainter2D, ot::GradientPainter2D, ot::LinearGradientPainter2D, ot::RadialGradientPainter2D, and ot::StyleRefPainter2D.
|
overridevirtual |
Will set the object contents from the provided JSON object.
_object | The JSON object containing the information |
Will | throw an exception if the provided object is not valid (members missing or invalid types) |
Implements ot::Serializable.
Reimplemented in ot::CheckerboardPainter2D, ot::FillPainter2D, ot::GradientPainter2D, ot::LinearGradientPainter2D, ot::RadialGradientPainter2D, and ot::StyleRefPainter2D.