summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Painting/SVGGeometryPaintable.h
blob: 85060eef69d0d0abf88e3d5996a55dc654284c1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <LibWeb/Layout/SVGGeometryBox.h>
#include <LibWeb/Painting/SVGGraphicsPaintable.h>

namespace Web::Painting {

class SVGGeometryPaintable final : public SVGGraphicsPaintable {
    JS_CELL(SVGGeometryPaintable, SVGGraphicsPaintable);

public:
    static JS::NonnullGCPtr<SVGGeometryPaintable> create(Layout::SVGGeometryBox const&);

    virtual void paint(PaintContext&, PaintPhase) const override;

    Layout::SVGGeometryBox const& layout_box() const;

protected:
    SVGGeometryPaintable(Layout::SVGGeometryBox const&);
};

}