31 virtual void setFromJsonObject(
const ConstJsonObject& _object)
override;
33 virtual ot::Color getDefaultColor(
void)
const override;
35 virtual bool isEqualTo(
const Painter2D* _other)
const override;
39 void addStops(
const std::vector<GradientPainterStop2D>& _stops);
40 void setStops(
const std::vector<GradientPainterStop2D>& _stops) { m_stops = _stops; };
41 const std::vector<GradientPainterStop2D>&
getStops(
void)
const {
return m_stops; };
47 void addStopsAndSpreadToQss(std::string& _targetString)
const;
50 std::vector<GradientPainterStop2D> m_stops;
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
The Color class is used to represent RGBA colors with integer values.
Definition Color.h:72
Definition GradientPainter2D.h:16
GradientSpread getSpread(void) const
Definition GradientPainter2D.h:44
void addStop(double _pos, const ot::Color &_color)
Definition GradientPainter2D.h:37
void setStops(const std::vector< GradientPainterStop2D > &_stops)
Definition GradientPainter2D.h:40
const std::vector< GradientPainterStop2D > & getStops(void) const
Definition GradientPainter2D.h:41
void setSpread(GradientSpread _spread)
Definition GradientPainter2D.h:43
Definition GradientPainterStop2D.h:15
Definition Painter2D.h:17
GradientSpread
Describes how the painter will behave when painting outsite the gradient area.
Definition GuiTypes.h:76
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