ladybird/LibGUI/GApplication.h

23 lines
358 B
C
Raw Normal View History

#pragma once
#include <AK/OwnPtr.h>
class GEventLoop;
class GMenuBar;
class GApplication {
public:
2019-02-11 14:56:23 +01:00
static GApplication& the();
GApplication(int argc, char** argv);
2019-02-11 14:56:23 +01:00
~GApplication();
int exec();
void quit(int);
void set_menubar(OwnPtr<GMenuBar>&&);
private:
OwnPtr<GEventLoop> m_event_loop;
OwnPtr<GMenuBar> m_menubar;
};