CheckBox.h 597 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2020, Andreas Kling <andreas@ladybird.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/Forward.h>
  8. #include <LibWeb/Layout/FormAssociatedLabelableNode.h>
  9. namespace Web::Layout {
  10. class CheckBox final : public FormAssociatedLabelableNode {
  11. JS_CELL(CheckBox, FormAssociatedLabelableNode);
  12. JS_DECLARE_ALLOCATOR(CheckBox);
  13. public:
  14. CheckBox(DOM::Document&, HTML::HTMLInputElement&, CSS::StyleProperties);
  15. virtual ~CheckBox() override;
  16. private:
  17. virtual JS::GCPtr<Painting::Paintable> create_paintable() const override;
  18. };
  19. }