diff options
Diffstat (limited to 'Libraries/LibGUI/MenuBar.h')
-rw-r--r-- | Libraries/LibGUI/MenuBar.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Libraries/LibGUI/MenuBar.h b/Libraries/LibGUI/MenuBar.h index 695911a18e..20c1b5678b 100644 --- a/Libraries/LibGUI/MenuBar.h +++ b/Libraries/LibGUI/MenuBar.h @@ -28,22 +28,25 @@ #include <AK/Forward.h> #include <AK/NonnullRefPtrVector.h> +#include <LibCore/Object.h> #include <LibGUI/Forward.h> namespace GUI { -class MenuBar { +class MenuBar : public Core::Object { + C_OBJECT(MenuBar); + public: - MenuBar(); ~MenuBar(); Menu& add_menu(String name); - void append_menu(NonnullRefPtr<Menu>); void notify_added_to_application(Badge<Application>); void notify_removed_from_application(Badge<Application>); private: + MenuBar(); + int realize_menubar(); void unrealize_menubar(); |