GApplication.h 358 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include <AK/OwnPtr.h>
  3. class GEventLoop;
  4. class GMenuBar;
  5. class GApplication {
  6. public:
  7. static GApplication& the();
  8. GApplication(int argc, char** argv);
  9. ~GApplication();
  10. int exec();
  11. void quit(int);
  12. void set_menubar(OwnPtr<GMenuBar>&&);
  13. private:
  14. OwnPtr<GEventLoop> m_event_loop;
  15. OwnPtr<GMenuBar> m_menubar;
  16. };