mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
LibGUI: Allow adding previously constructed menus to Menubar
This commit is contained in:
parent
9cf93528f5
commit
c88d77361c
4 changed files with 18 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue