Serenity Operating System
at master 25 lines 590 B view raw
1/* 2 * Copyright (c) 2020, Andreas Kling <kling@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 CheckBox final : public FormAssociatedLabelableNode { 15 JS_CELL(CheckBox, FormAssociatedLabelableNode); 16 17public: 18 CheckBox(DOM::Document&, HTML::HTMLInputElement&, NonnullRefPtr<CSS::StyleProperties>); 19 virtual ~CheckBox() override; 20 21private: 22 virtual JS::GCPtr<Painting::Paintable> create_paintable() const override; 23}; 24 25}