Serenity Operating System
at master 25 lines 602 B view raw
1/* 2 * Copyright (c) 2021, Tim Flynn <trflynn89@serenityos.org> 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#pragma once 8 9#include <LibWeb/HTML/HTMLInputElement.h> 10#include <LibWeb/Layout/FormAssociatedLabelableNode.h> 11 12namespace Web::Layout { 13 14class RadioButton final : public FormAssociatedLabelableNode { 15 JS_CELL(RadioButton, FormAssociatedLabelableNode); 16 17public: 18 RadioButton(DOM::Document&, HTML::HTMLInputElement&, NonnullRefPtr<CSS::StyleProperties>); 19 virtual ~RadioButton() override; 20 21private: 22 virtual JS::GCPtr<Painting::Paintable> create_paintable() const override; 23}; 24 25}