RadioButtonPaintable.h 532 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/Layout/RadioButton.h>
  8. #include <LibWeb/Painting/LabelablePaintable.h>
  9. namespace Web::Painting {
  10. class RadioButtonPaintable final : public LabelablePaintable {
  11. public:
  12. static NonnullRefPtr<RadioButtonPaintable> create(Layout::RadioButton const&);
  13. virtual void paint(PaintContext&, PaintPhase) const override;
  14. private:
  15. RadioButtonPaintable(Layout::RadioButton const&);
  16. };
  17. }