typedef Component Super;
public:
- static const int typeKey = 42;
+ static const uint16_t typeKey = 42;
/// Helper to quickly determine if a core object extends another without
/// RTTI at runtime.
- bool isTypeOf(int typeKey) const override
+ bool isTypeOf(uint16_t typeKey) const override
{
switch (typeKey)
{
}
}
- int coreType() const override { return typeKey; }
+ uint16_t coreType() const override { return typeKey; }
- static const int sourceIdPropertyKey = 92;
- static const int fillRulePropertyKey = 93;
- static const int isVisiblePropertyKey = 94;
+ static const uint16_t sourceIdPropertyKey = 92;
+ static const uint16_t fillRulePropertyKey = 93;
+ static const uint16_t isVisiblePropertyKey = 94;
private:
- int m_SourceId = 0;
+ int m_SourceId = -1;
int m_FillRule = 0;
bool m_IsVisible = true;
public:
isVisibleChanged();
}
- bool deserialize(int propertyKey, BinaryReader& reader) override
+ Core* clone() const override;
+ void copy(const ClippingShapeBase& object)
+ {
+ m_SourceId = object.m_SourceId;
+ m_FillRule = object.m_FillRule;
+ m_IsVisible = object.m_IsVisible;
+ Component::copy(object);
+ }
+
+ bool deserialize(uint16_t propertyKey, BinaryReader& reader) override
{
switch (propertyKey)
{