mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +00:00
LibGUI: Add GMenu* and GApplication classes.
This commit is contained in:
parent
8d0bfa62fd
commit
9483b39227
9 changed files with 131 additions and 0 deletions
19
LibGUI/GApplication.h
Normal file
19
LibGUI/GApplication.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/OwnPtr.h>
|
||||
|
||||
class GEventLoop;
|
||||
class GMenuBar;
|
||||
|
||||
class GApplication {
|
||||
public:
|
||||
GApplication(int argc, char** argv);
|
||||
|
||||
int exec();
|
||||
|
||||
void set_menubar(OwnPtr<GMenuBar>&&);
|
||||
|
||||
private:
|
||||
OwnPtr<GEventLoop> m_event_loop;
|
||||
OwnPtr<GMenuBar> m_menubar;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue