CheckBoxPaintable.h 655 B

1234567891011121314151617181920212223242526272829
  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/CheckBox.h>
  8. #include <LibWeb/Painting/LabelablePaintable.h>
  9. namespace Web::Painting {
  10. class CheckBoxPaintable final : public LabelablePaintable {
  11. JS_CELL(CheckBoxPaintable, LabelablePaintable);
  12. public:
  13. static JS::NonnullGCPtr<CheckBoxPaintable> create(Layout::CheckBox const&);
  14. Layout::CheckBox const& layout_box() const;
  15. Layout::CheckBox& layout_box();
  16. virtual void paint(PaintContext&, PaintPhase) const override;
  17. private:
  18. CheckBoxPaintable(Layout::CheckBox const&);
  19. };
  20. }