mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibGUI: More work on client-side menus.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include <LibGUI/GMenu.h>
|
||||
|
||||
GMenu::GMenu()
|
||||
GMenu::GMenu(const String& name)
|
||||
: m_name(name)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -8,4 +9,12 @@ GMenu::~GMenu()
|
||||
{
|
||||
}
|
||||
|
||||
void GMenu::add_item(unsigned identifier, const String& text)
|
||||
{
|
||||
m_items.append({ identifier, text });
|
||||
}
|
||||
|
||||
void GMenu::add_separator()
|
||||
{
|
||||
m_items.append(GMenuItem(GMenuItem::Separator));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user