SVGGeometryPaintable.h 596 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/Layout/SVGGeometryBox.h>
  8. #include <LibWeb/Painting/SVGGraphicsPaintable.h>
  9. namespace Web::Painting {
  10. class SVGGeometryPaintable : public SVGGraphicsPaintable {
  11. public:
  12. static NonnullRefPtr<SVGGeometryPaintable> create(Layout::SVGGeometryBox const&);
  13. virtual void paint(PaintContext&, PaintPhase) const override;
  14. Layout::SVGGeometryBox const& layout_box() const;
  15. protected:
  16. SVGGeometryPaintable(Layout::SVGGeometryBox const&);
  17. };
  18. }