13#define OT_FactoryKey_CheckerboardPainter2D "OT_P2DCheck"
36 virtual void setFromJsonObject(
const ConstJsonObject& _object)
override;
41 virtual std::string generateQss(
void)
const override;
43 virtual ot::Color getDefaultColor(
void)
const override;
45 virtual bool isEqualTo(
const Painter2D* _other)
const override;
51 void setPrimaryPainter(
Painter2D* _painter);
58 void setSecondaryPainter(
Painter2D* _painter);
61 void setCellSize(
int _size);
62 void setCellSize(
int _width,
int _height);
#define OT_FactoryKey_CheckerboardPainter2D
Definition CheckerboardPainter2D.h:13
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
Definition CheckerboardPainter2D.h:17
const Size2D & getCellSize(void) const
Definition CheckerboardPainter2D.h:64
const Painter2D * getSecondaryPainter(void) const
Definition CheckerboardPainter2D.h:59
const Painter2D * getPrimaryPainter(void) const
Definition CheckerboardPainter2D.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 CheckerboardPainter2D.h:39
void setCellSize(const Size2D &_size)
Definition CheckerboardPainter2D.h:63
The Color class is used to represent RGBA colors with integer values.
Definition Color.h:72
Definition Painter2D.h:17
2D Size with integer values
Definition Size2D.h:15
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