/* * Copyright (c) 2018-2021, Andreas Kling * Copyright (c) 2021, sin-ack * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include #include namespace GUI { class Menubar : public Core::Object { C_OBJECT(Menubar); public: virtual ~Menubar() override; ErrorOr> try_add_menu(Badge, String name); Menu& add_menu(Badge, String name); void for_each_menu(Function); private: Menubar(); NonnullRefPtrVector m_menus; }; }