mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
LibGUI: More work on client-side menus.
This commit is contained in:
parent
c75ecaae32
commit
757429fb55
6 changed files with 55 additions and 3 deletions
|
@ -1,13 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibGUI/GMenu.h>
|
||||
#include <AK/Badge.h>
|
||||
#include <AK/OwnPtr.h>
|
||||
#include <AK/Vector.h>
|
||||
|
||||
class GApplication;
|
||||
|
||||
class GMenuBar {
|
||||
public:
|
||||
GMenuBar();
|
||||
~GMenuBar();
|
||||
|
||||
void add_menu(OwnPtr<GMenu>&&);
|
||||
|
||||
void notify_added_to_application(Badge<GApplication>);
|
||||
void notify_removed_from_application(Badge<GApplication>);
|
||||
|
||||
private:
|
||||
Vector<GMenu> m_menus;
|
||||
Vector<OwnPtr<GMenu>> m_menus;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue