1
Fork 0
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:
Andreas Kling 2019-02-11 15:37:12 +01:00
parent c75ecaae32
commit 757429fb55
6 changed files with 55 additions and 3 deletions

View file

@ -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;
};