16#pragma warning(disable:4251)
36 virtual void setFromJsonObject(
const ConstJsonObject& _object)
override;
38 void setKey(
const std::string& _key) { m_key = _key; };
39 const std::string&
key(
void)
const {
return m_key; };
41 void setQss(
const std::string& _qss) { m_qss = _qss; };
42 const std::string&
qss(
void)
const {
return m_qss; };
#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
The Serializable class is the default interface of serializable objects.
Definition Serializable.h:17
Definition StyleValue.h:20
void setQss(const std::string &_qss)
Definition StyleValue.h:41
void setKey(const std::string &_key)
Definition StyleValue.h:38
const std::string & qss(void) const
Definition StyleValue.h:42
const ot::Color & color(void) const
Definition StyleValue.h:45
const std::string & key(void) const
Definition StyleValue.h:39
void setColor(const ot::Color &_color)
Definition StyleValue.h:44
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