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 CheckBoxPaintable final : public LabelablePaintable {
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_CELL(CheckBoxPaintable, LabelablePaintable);
|
|
|
|
|
GC_DECLARE_ALLOCATOR(CheckBoxPaintable);
|
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<CheckBoxPaintable> create(Layout::CheckBox const&);
|
2022-03-10 14:02:25 +01:00
|
|
|
|
|
|
|
|
Layout::CheckBox const& layout_box() const;
|
2022-03-10 22:46:35 +01:00
|
|
|
Layout::CheckBox& layout_box();
|
|
|
|
|
|
2023-03-19 23:55:03 +00:00
|
|
|
virtual void paint(PaintContext&, PaintPhase) const override;
|
|
|
|
|
|
2022-03-10 14:02:25 +01:00
|
|
|
private:
|
|
|
|
|
CheckBoxPaintable(Layout::CheckBox const&);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|