2022-03-10 14:02:25 +01:00
|
|
|
/*
|
2024-10-04 13:19:50 +02:00
|
|
|
* Copyright (c) 2022, Andreas Kling <andreas@ladybird.org>
|
2022-03-10 14:02:25 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2024-09-23 11:13:14 -04:00
|
|
|
#include <LibWeb/Forward.h>
|
2022-03-10 22:46:35 +01:00
|
|
|
#include <LibWeb/Painting/LabelablePaintable.h>
|
2022-03-10 14:02:25 +01:00
|
|
|
|
|
|
|
|
namespace Web::Painting {
|
|
|
|
|
|
2022-03-10 22:46:35 +01:00
|
|
|
class RadioButtonPaintable final : public LabelablePaintable {
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_CELL(RadioButtonPaintable, LabelablePaintable);
|
|
|
|
|
GC_DECLARE_ALLOCATOR(RadioButtonPaintable);
|
2023-01-11 12:51:49 +01:00
|
|
|
|
2022-03-10 14:02:25 +01:00
|
|
|
public:
|
2024-11-15 04:01:23 +13:00
|
|
|
static GC::Ref<RadioButtonPaintable> create(Layout::RadioButton const&);
|
2022-03-10 14:02:25 +01:00
|
|
|
|
|
|
|
|
virtual void paint(PaintContext&, PaintPhase) const override;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
RadioButtonPaintable(Layout::RadioButton const&);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|