SVGGeometryElement.h 631 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2020, Matthew Olsson <mattco@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/SVG/SVGGraphicsElement.h>
  8. namespace Web::SVG {
  9. // https://svgwg.org/svg2-draft/types.html#InterfaceSVGGeometryElement
  10. class SVGGeometryElement : public SVGGraphicsElement {
  11. public:
  12. using WrapperType = Bindings::SVGGeometryElementWrapper;
  13. virtual RefPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
  14. virtual Gfx::Path& get_path() = 0;
  15. protected:
  16. SVGGeometryElement(DOM::Document& document, DOM::QualifiedName qualified_name);
  17. };
  18. }