diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.h')
-rw-r--r-- | Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.h b/Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.h new file mode 100644 index 0000000000..51cf9a5dbb --- /dev/null +++ b/Userland/Libraries/LibWeb/Painting/CheckBoxPaintable.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2022, Andreas Kling <kling@serenityos.org> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include <LibWeb/Layout/CheckBox.h> +#include <LibWeb/Painting/Paintable.h> + +namespace Web::Painting { + +class CheckBoxPaintable final : public Paintable { +public: + static NonnullOwnPtr<CheckBoxPaintable> create(Layout::CheckBox const&); + + virtual void paint(PaintContext&, PaintPhase) const override; + + Layout::CheckBox const& layout_box() const; + +private: + CheckBoxPaintable(Layout::CheckBox const&); +}; + +} |