EffectSpecification.cpp 790 B

12345678910111213141516171819202122232425
  1. #include "../../Include/RmlUi/Core/EffectSpecification.h"
  2. #include "../../Include/RmlUi/Core/PropertyDefinition.h"
  3. namespace Rml {
  4. EffectSpecification::EffectSpecification() : properties(10, 10) {}
  5. EffectSpecification::~EffectSpecification() {}
  6. const PropertySpecification& EffectSpecification::GetPropertySpecification() const
  7. {
  8. return properties;
  9. }
  10. PropertyDefinition& EffectSpecification::RegisterProperty(const String& property_name, const String& default_value)
  11. {
  12. return properties.RegisterProperty(property_name, default_value, false, false);
  13. }
  14. ShorthandId EffectSpecification::RegisterShorthand(const String& shorthand_name, const String& property_names, ShorthandType type)
  15. {
  16. return properties.RegisterShorthand(shorthand_name, property_names, type);
  17. }
  18. } // namespace Rml