FontEffectInstancer.cpp 937 B

1234567891011121314151617181920212223242526272829
  1. #include "../../Include/RmlUi/Core/FontEffectInstancer.h"
  2. #include "../../Include/RmlUi/Core/PropertyDefinition.h"
  3. namespace Rml {
  4. FontEffectInstancer::FontEffectInstancer() : properties(10, 10) {}
  5. FontEffectInstancer::~FontEffectInstancer() {}
  6. const PropertySpecification& FontEffectInstancer::GetPropertySpecification() const
  7. {
  8. return properties;
  9. }
  10. PropertyDefinition& FontEffectInstancer::RegisterProperty(const String& property_name, const String& default_value, bool affects_generation)
  11. {
  12. PropertyDefinition& definition = properties.RegisterProperty(property_name, default_value, false, false);
  13. if (affects_generation)
  14. volatile_properties.insert(definition.GetId());
  15. return definition;
  16. }
  17. ShorthandId FontEffectInstancer::RegisterShorthand(const String& shorthand_name, const String& property_names, ShorthandType type)
  18. {
  19. return properties.RegisterShorthand(shorthand_name, property_names, type);
  20. }
  21. } // namespace Rml