/* * 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 namespace GUI { class Menubar : public Core::Object { C_OBJECT(Menubar); public: virtual ~Menubar() override = default; ErrorOr try_add_menu(Badge, NonnullRefPtr); ErrorOr> try_add_menu(Badge, DeprecatedString name); Menu& add_menu(Badge, DeprecatedString name); void for_each_menu(Function); private: Menubar() = default; Vector> m_menus; }; }