12#define OT_FactoryKey_FillPainter2D "OT_P2DFill"
31 virtual void setFromJsonObject(
const ConstJsonObject& _object)
override;
36 virtual std::string generateQss(
void)
const override;
38 virtual ot::Color getDefaultColor(
void)
const override;
40 virtual bool isEqualTo(
const Painter2D* _other)
const override;
#define OT_FactoryKey_FillPainter2D
Definition FillPainter2D.h:12
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
The Color class is used to represent RGBA colors with integer values.
Definition Color.h:72
Definition FillPainter2D.h:16
void setColor(const ot::Color &_color)
Definition FillPainter2D.h:42
virtual std::string getFactoryKey(void) const override
Returns the key that is used to create an instance of this class in the simple factory.
Definition FillPainter2D.h:34
const ot::Color & getColor(void) const
Definition FillPainter2D.h:43
Definition Painter2D.h:17
DefaultColor
Default colors.
Definition Color.h:18
rapidjson::Value JsonValue
Writable JSON value.
Definition JSON.h:27
rapidjson::GenericObject< true, rapidjson::GenericValue< rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > > > ConstJsonObject
Read only JSON Object.
Definition JSON.h:35
rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > JsonAllocator
Allocator used for writing to JSON values.
Definition JSON.h:30