diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-12 00:52:19 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-12 00:52:19 +0100 |
commit | 133706d697b7e7441a7f4968b5a52dfc0323d34b (patch) | |
tree | e2af7b65b49ce66a9e003278a0508913f644c578 /WindowServer/WSMenu.h | |
parent | bb31d961b4b7041ec1b748ce65f256df64e113de (diff) | |
download | serenity-133706d697b7e7441a7f4968b5a52dfc0323d34b.zip |
Add API's and plumbing for WindowServer clients to make menus.
Diffstat (limited to 'WindowServer/WSMenu.h')
-rw-r--r-- | WindowServer/WSMenu.h | 5 |
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; |