/* * Copyright (c) 2018-2021, Andreas Kling * Copyright (c) 2021, sin-ack * Copyright (c) 2022, the SerenityOS developers. * * 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 = default; ErrorOr> try_add_menu(Badge, String name); Menu& add_menu(Badge, String name); void for_each_menu(Function); private: Menubar() = default; NonnullRefPtrVector m_menus; }; }