mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-27 19:34:14 +00:00
24 lines
381 B
C++
24 lines
381 B
C++
|
|
#include <LibGUI/GApplication.h>
|
||
|
|
#include <LibGUI/GEventLoop.h>
|
||
|
|
#include <LibGUI/GMenuBar.h>
|
||
|
|
|
||
|
|
GApplication::GApplication(int argc, char** argv)
|
||
|
|
{
|
||
|
|
m_event_loop = make<GEventLoop>();
|
||
|
|
}
|
||
|
|
|
||
|
|
GApplication::~GApplication()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
int GApplication::exec()
|
||
|
|
{
|
||
|
|
return m_event_loop->exec();
|
||
|
|
}
|
||
|
|
|
||
|
|
void GApplication::set_menubar(OwnPtr<GMenuBar>&& menubar)
|
||
|
|
{
|
||
|
|
m_menubar = move(menubar);
|
||
|
|
}
|
||
|
|
|