ladybird/Libraries/LibWeb/Painting/RadioButtonPaintable.h
Aliaksandr Kalenik 61114f6d16 LibWeb: Rename PaintContext to DisplayListRecordingContext
PaintContext dates back to a time when display lists didn't exist and it
truly represented "paint context". Renaming it to better align with its
current role.
2025-08-01 05:25:56 -04:00

27 lines
634 B
C++

/*
* Copyright (c) 2022, Andreas Kling <andreas@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/Forward.h>
#include <LibWeb/Painting/LabelablePaintable.h>
namespace Web::Painting {
class RadioButtonPaintable final : public LabelablePaintable {
GC_CELL(RadioButtonPaintable, LabelablePaintable);
GC_DECLARE_ALLOCATOR(RadioButtonPaintable);
public:
static GC::Ref<RadioButtonPaintable> create(Layout::RadioButton const&);
virtual void paint(DisplayListRecordingContext&, PaintPhase) const override;
private:
RadioButtonPaintable(Layout::RadioButton const&);
};
}