PropertyParserBoxShadow.h 806 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include "../../Include/RmlUi/Core/PropertyParser.h"
  3. namespace Rml {
  4. /**
  5. Parses the RCSS 'box-shadow' property.
  6. */
  7. class PropertyParserBoxShadow : public PropertyParser {
  8. public:
  9. PropertyParserBoxShadow(PropertyParser* parser_color, PropertyParser* parser_length);
  10. /// Called to parse a RCSS declaration.
  11. /// @param[out] property The property to set the parsed value on.
  12. /// @param[in] value The raw value defined for this property.
  13. /// @param[in] parameters The parameters defined for this property.
  14. /// @return True if the value was validated successfully, false otherwise.
  15. bool ParseValue(Property& property, const String& value, const ParameterMap& parameters) const override;
  16. private:
  17. PropertyParser* parser_color;
  18. PropertyParser* parser_length;
  19. };
  20. } // namespace Rml