LibGUI: Allow adding previously constructed menus to Menubar

This commit is contained in:
thankyouverycool 2022-09-26 08:42:36 -04:00 committed by Andreas Kling
commit c88d77361c
Notes: sideshowbarker 2024-07-17 04:22:29 +09:00
4 changed files with 18 additions and 0 deletions

View file

@ -23,6 +23,7 @@ class Menubar : public Core::Object {
public:
virtual ~Menubar() override = default;
ErrorOr<void> try_add_menu(Badge<Window>, NonnullRefPtr<Menu>);
ErrorOr<NonnullRefPtr<Menu>> try_add_menu(Badge<Window>, String name);
Menu& add_menu(Badge<Window>, String name);