1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

WindowServer: Add MenuManager helper to find closest open ancestor

This commit is contained in:
thankyouverycool 2022-08-16 06:54:29 -04:00 committed by Andreas Kling
parent db852548ce
commit 4489f9dbef
2 changed files with 9 additions and 0 deletions

View file

@ -26,6 +26,7 @@ public:
bool has_open_menu() const { return !m_open_menu_stack.is_empty(); }
Menu* current_menu() { return m_current_menu.ptr(); }
Menu* closest_open_ancestor_of(Menu const&) const;
void set_current_menu(Menu*);
void clear_current_menu();
void open_menu(Menu&, bool as_current_menu = true);