16#define OT_FactoryKey_LinearGradientPainter2D "OT_P2DLGrad"
35 virtual void setFromJsonObject(
const ConstJsonObject& _object)
override;
40 virtual std::string generateQss(
void)
const override;
42 virtual bool isEqualTo(
const Painter2D* _other)
const override;
#define OT_FactoryKey_LinearGradientPainter2D
Definition LinearGradientPainter2D.h:16
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
Definition GradientPainter2D.h:16
Definition LinearGradientPainter2D.h:20
const ot::Point2DD & getFinalStop(void) const
Definition LinearGradientPainter2D.h:52
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 LinearGradientPainter2D.h:38
void setFinalStop(const ot::Point2DD &_finalStop)
Set the final stop point for the gradient. The painted area is between 0.0 and 1.0.
Definition LinearGradientPainter2D.h:51
const ot::Point2DD & getStart(void) const
Definition LinearGradientPainter2D.h:47
void setStart(const ot::Point2DD &_start)
Set the starting point for the gradient. The painted area is between 0.0 and 1.0.
Definition LinearGradientPainter2D.h:46
Definition Painter2D.h:17
2D Point with double values
Definition Point2D.h:144
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