SVGPolylineElement.h 657 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2022, Sam Atkins <atkinssj@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/SVG/SVGGeometryElement.h>
  8. namespace Web::SVG {
  9. class SVGPolylineElement final : public SVGGeometryElement {
  10. public:
  11. using WrapperType = Bindings::SVGPolylineElementWrapper;
  12. SVGPolylineElement(DOM::Document&, DOM::QualifiedName);
  13. virtual ~SVGPolylineElement() override = default;
  14. virtual void parse_attribute(FlyString const& name, String const& value) override;
  15. virtual Gfx::Path& get_path() override;
  16. private:
  17. Optional<Gfx::Path> m_path;
  18. Vector<Gfx::FloatPoint> m_points;
  19. };
  20. }