summaryrefslogtreecommitdiff
path: root/WindowServer/WSMenu.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-12 00:52:19 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-12 00:52:19 +0100
commit133706d697b7e7441a7f4968b5a52dfc0323d34b (patch)
treee2af7b65b49ce66a9e003278a0508913f644c578 /WindowServer/WSMenu.h
parentbb31d961b4b7041ec1b748ce65f256df64e113de (diff)
downloadserenity-133706d697b7e7441a7f4968b5a52dfc0323d34b.zip
Add API's and plumbing for WindowServer clients to make menus.
Diffstat (limited to 'WindowServer/WSMenu.h')
-rw-r--r--WindowServer/WSMenu.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/WindowServer/WSMenu.h b/WindowServer/WSMenu.h
index 99eef768a3..39c8b07dae 100644
--- a/WindowServer/WSMenu.h
+++ b/WindowServer/WSMenu.h
@@ -12,9 +12,11 @@ class Font;
class WSMenu {
public:
- WSMenu(const String& name);
+ WSMenu(int menu_id, String&& name);
~WSMenu();
+ int menu_id() const { return m_menu_id; }
+
WSMenuBar* menu_bar() { return m_menubar; }
const WSMenuBar* menu_bar() const { return m_menubar; }
@@ -70,6 +72,7 @@ public:
private:
void did_activate(WSMenuItem&);
+ int m_menu_id { 0 };
String m_name;
Rect m_rect_in_menubar;
Rect m_text_rect_in_menubar;