12#define OT_FactoryKey_GraphicsGridLayoutItem "OT_GILayG"
32 virtual void setFromJsonObject(
const ConstJsonObject& _object)
override;
42 const std::vector<std::vector<GraphicsItemCfg*>>&
items(
void)
const {
return m_items; };
44 void setRowStretch(
int _row,
int _stretch);
45 const std::vector<int>&
rowStretch(
void)
const {
return m_rowStretch; };
47 void setColumnStretch(
int _column,
int _stretch);
48 const std::vector<int>&
columnStretch(
void)
const {
return m_columnStretch; };
51 void clearAndResize(
void);
55 std::vector<int> m_rowStretch;
56 std::vector<int> m_columnStretch;
57 std::vector<std::vector<GraphicsItemCfg*>> m_items;
#define OT_FactoryKey_GraphicsGridLayoutItem
Definition GraphicsGridLayoutItemCfg.h:12
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
Definition GraphicsGridLayoutItemCfg.h:16
const std::vector< std::vector< GraphicsItemCfg * > > & items(void) const
Definition GraphicsGridLayoutItemCfg.h:42
int columnCount(void) const
Definition GraphicsGridLayoutItemCfg.h:38
const std::vector< int > & rowStretch(void) const
Definition GraphicsGridLayoutItemCfg.h:45
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 GraphicsGridLayoutItemCfg.h:35
const std::vector< int > & columnStretch(void) const
Definition GraphicsGridLayoutItemCfg.h:48
int rowCount(void) const
Definition GraphicsGridLayoutItemCfg.h:37
The GraphicsItemCfg is the base class for all graphics item configurations.
Definition GraphicsItemCfg.h:33
Definition GraphicsLayoutItemCfg.h:19
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