/* * Copyright (c) 2024, Kostya Farber * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include namespace Web::Painting { class FieldSetPaintable final : public PaintableBox { GC_CELL(FieldSetPaintable, PaintableBox); GC_DECLARE_ALLOCATOR(FieldSetPaintable); public: static GC::Ref create(Layout::FieldSetBox const&); virtual void paint(PaintContext&, PaintPhase) const override; private: Layout::FieldSetBox& layout_box(); Layout::FieldSetBox const& layout_box() const; explicit FieldSetPaintable(Layout::FieldSetBox const&); }; }