GroupBox.h 513 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibGUI/Widget.h>
  8. namespace GUI {
  9. class GroupBox : public Widget {
  10. C_OBJECT(GroupBox)
  11. public:
  12. virtual ~GroupBox() override;
  13. String title() const { return m_title; }
  14. void set_title(const StringView&);
  15. protected:
  16. explicit GroupBox(const StringView& title = {});
  17. virtual void paint_event(PaintEvent&) override;
  18. private:
  19. String m_title;
  20. };
  21. }