RadioButton.h 543 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2021, Tim Flynn <trflynn89@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/HTML/HTMLInputElement.h>
  8. #include <LibWeb/Layout/FormAssociatedLabelableNode.h>
  9. namespace Web::Layout {
  10. class RadioButton final : public FormAssociatedLabelableNode {
  11. public:
  12. RadioButton(DOM::Document&, HTML::HTMLInputElement&, NonnullRefPtr<CSS::StyleProperties>);
  13. virtual ~RadioButton() override;
  14. private:
  15. virtual RefPtr<Painting::Paintable> create_paintable() const override;
  16. };
  17. }