SVGGraphicsElement.h 740 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2020, Matthew Olsson <mattco@serenityos.org>
  3. * Copyright (c) 2021-2022, Sam Atkins <atkinssj@serenityos.org>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #pragma once
  8. #include <LibGfx/Path.h>
  9. #include <LibWeb/DOM/Node.h>
  10. #include <LibWeb/SVG/SVGElement.h>
  11. #include <LibWeb/SVG/TagNames.h>
  12. namespace Web::SVG {
  13. class SVGGraphicsElement : public SVGElement {
  14. public:
  15. using WrapperType = Bindings::SVGGraphicsElementWrapper;
  16. SVGGraphicsElement(DOM::Document&, DOM::QualifiedName);
  17. virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
  18. Optional<Gfx::Color> fill_color() const;
  19. Optional<Gfx::Color> stroke_color() const;
  20. Optional<float> stroke_width() const;
  21. };
  22. }