ladybird/LibGUI/GApplication.h
Andreas Kling 4b15dd2bca LibGUI: Rename GEventLoop::exit() and GApplication::exit() to quit().
These functions don't exit immediately, but rather on the next iteration
of the event loop.

Since exit() is already used by the standard library, let's call it quit()
instead. That way, saying exit() means the same thing here as anywhere else.
2019-02-17 09:59:56 +01:00

22 lines
358 B
C++

#pragma once
#include <AK/OwnPtr.h>
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<GMenuBar>&&);
private:
OwnPtr<GEventLoop> m_event_loop;
OwnPtr<GMenuBar> m_menubar;
};