mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 05:55:13 +00:00
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.
22 lines
358 B
C++
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;
|
|
};
|