2021-04-03 10:07:45 -03:00
|
|
|
/*
|
2022-01-31 15:07:22 -03:00
|
|
|
* Copyright (c) 2021, Tim Flynn <trflynn89@serenityos.org>
|
2021-04-03 10:07:45 -03:00
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2021-04-03 10:07:45 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <LibWeb/HTML/HTMLInputElement.h>
|
2022-03-14 20:05:55 -03:00
|
|
|
#include <LibWeb/Layout/FormAssociatedLabelableNode.h>
|
2021-04-03 10:07:45 -03:00
|
|
|
|
|
|
|
|
namespace Web::Layout {
|
|
|
|
|
|
2022-03-14 20:05:55 -03:00
|
|
|
class RadioButton final : public FormAssociatedLabelableNode {
|
2021-04-03 10:07:45 -03:00
|
|
|
public:
|
|
|
|
|
RadioButton(DOM::Document&, HTML::HTMLInputElement&, NonnullRefPtr<CSS::StyleProperties>);
|
|
|
|
|
virtual ~RadioButton() override;
|
|
|
|
|
|
|
|
|
|
private:
|
2022-03-10 18:46:35 -03:00
|
|
|
virtual RefPtr<Painting::Paintable> create_paintable() const override;
|
2021-04-03 10:07:45 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|