mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 17:28:11 +00:00
17 lines
294 B
C++
17 lines
294 B
C++
#pragma once
|
|
|
|
#include <LibGUI/GMenuItem.h>
|
|
#include <AK/Vector.h>
|
|
|
|
class GMenu {
|
|
public:
|
|
explicit GMenu(const String& name);
|
|
~GMenu();
|
|
|
|
void add_item(unsigned identifier, const String& text);
|
|
void add_separator();
|
|
|
|
private:
|
|
String m_name;
|
|
Vector<GMenuItem> m_items;
|
|
};
|