diff options
Diffstat (limited to 'Userland/Services/WindowServer/Menu.h')
-rw-r--r-- | Userland/Services/WindowServer/Menu.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Userland/Services/WindowServer/Menu.h b/Userland/Services/WindowServer/Menu.h index 20fdb201cc..670c412f5b 100644 --- a/Userland/Services/WindowServer/Menu.h +++ b/Userland/Services/WindowServer/Menu.h @@ -74,11 +74,15 @@ public: callback(item); } - Gfx::IntRect text_rect_in_menubar() const { return m_text_rect_in_menubar; } - void set_text_rect_in_menubar(const Gfx::IntRect& rect) { m_text_rect_in_menubar = rect; } + Gfx::IntRect text_rect_in_global_menubar() const { return m_text_rect_in_global_menubar; } + void set_text_rect_in_global_menubar(const Gfx::IntRect& rect) { m_text_rect_in_global_menubar = rect; } + Gfx::IntRect rect_in_global_menubar() const { return m_rect_in_global_menubar; } + void set_rect_in_global_menubar(const Gfx::IntRect& rect) { m_rect_in_global_menubar = rect; } - Gfx::IntRect rect_in_menubar() const { return m_rect_in_menubar; } - void set_rect_in_menubar(const Gfx::IntRect& rect) { m_rect_in_menubar = rect; } + Gfx::IntRect text_rect_in_window_menubar() const { return m_text_rect_in_window_menubar; } + void set_text_rect_in_window_menubar(const Gfx::IntRect& rect) { m_text_rect_in_window_menubar = rect; } + Gfx::IntRect rect_in_window_menubar() const { return m_rect_in_window_menubar; } + void set_rect_in_window_menubar(const Gfx::IntRect& rect) { m_rect_in_window_menubar = rect; } Window* menu_window() { return m_menu_window.ptr(); } Window& ensure_menu_window(); @@ -149,8 +153,10 @@ private: ClientConnection* m_client { nullptr }; int m_menu_id { 0 }; String m_name; - Gfx::IntRect m_rect_in_menubar; - Gfx::IntRect m_text_rect_in_menubar; + Gfx::IntRect m_rect_in_global_menubar; + Gfx::IntRect m_text_rect_in_global_menubar; + Gfx::IntRect m_rect_in_window_menubar; + Gfx::IntRect m_text_rect_in_window_menubar; MenuBar* m_menubar { nullptr }; NonnullOwnPtrVector<MenuItem> m_items; RefPtr<Window> m_menu_window; |