mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
WindowServer+LibGUI: Add support for nested menus
It's now possible to add a GMenu as a submenu of another GMenu. Simply use the GMenu::add_submenu(NonnullOwnPtr<GMenu>) API :^) The WindowServer now keeps track of a stack of open menus rather than just one "current menu". This code needs a bit more work, but the basic functionality is now here!
This commit is contained in:
parent
d3ebd8897f
commit
63e6b09816
16 changed files with 177 additions and 12 deletions
|
@ -73,7 +73,7 @@ public:
|
|||
|
||||
void close();
|
||||
|
||||
void popup(const Point&);
|
||||
void popup(const Point&, bool is_submenu = false);
|
||||
|
||||
private:
|
||||
virtual void event(CEvent&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue