#pragma once #include class GEventLoop; class GMenuBar; class GApplication { public: static GApplication& the(); GApplication(int argc, char** argv); ~GApplication(); int exec(); void quit(int); void set_menubar(OwnPtr&&); private: OwnPtr m_event_loop; OwnPtr m_menubar; };