#pragma once #include class GGroupBox : public GWidget { C_OBJECT(GGroupBox) public: explicit GGroupBox(GWidget* parent); GGroupBox(const StringView& title, GWidget* parent); virtual ~GGroupBox() override; String title() const { return m_title; } void set_title(const StringView&); protected: virtual void paint_event(GPaintEvent&) override; private: String m_title; };