2021-04-03 09:07:45 -04:00
|
|
|
/*
|
2022-01-31 13:07:22 -05:00
|
|
|
* Copyright (c) 2021, Tim Flynn <trflynn89@serenityos.org>
|
2021-04-03 09:07:45 -04:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2021-04-03 09:07:45 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-09-23 11:13:14 -04:00
|
|
|
#include <LibWeb/Forward.h>
|
2022-03-14 23:05:55 +00:00
|
|
|
#include <LibWeb/Layout/FormAssociatedLabelableNode.h>
|
2021-04-03 09:07:45 -04:00
|
|
|
|
|
|
|
namespace Web::Layout {
|
|
|
|
|
2022-03-14 23:05:55 +00:00
|
|
|
class RadioButton final : public FormAssociatedLabelableNode {
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_CELL(RadioButton, FormAssociatedLabelableNode);
|
|
|
|
GC_DECLARE_ALLOCATOR(RadioButton);
|
2022-10-17 14:41:50 +02:00
|
|
|
|
2021-04-03 09:07:45 -04:00
|
|
|
public:
|
2024-12-20 16:35:12 +01:00
|
|
|
RadioButton(DOM::Document&, HTML::HTMLInputElement&, GC::Ref<CSS::ComputedProperties>);
|
2021-04-03 09:07:45 -04:00
|
|
|
virtual ~RadioButton() override;
|
|
|
|
|
|
|
|
private:
|
2024-11-15 04:01:23 +13:00
|
|
|
virtual GC::Ptr<Painting::Paintable> create_paintable() const override;
|
2021-04-03 09:07:45 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|