ButtonBox.h 589 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2020, Andreas Kling <kling@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 ButtonBox : public FormAssociatedLabelableNode {
  11. public:
  12. ButtonBox(DOM::Document&, HTML::HTMLInputElement&, NonnullRefPtr<CSS::StyleProperties>);
  13. virtual ~ButtonBox() override;
  14. virtual void prepare_for_replaced_layout() override;
  15. private:
  16. virtual RefPtr<Painting::Paintable> create_paintable() const override;
  17. };
  18. }