summaryrefslogtreecommitdiff
path: root/Userland/Services/WindowServer/Menubar.cpp
blob: 34991bee79c55ad81788420e7e652c85a202b325 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include "Menubar.h"
#include "Menu.h"

namespace WindowServer {

Menubar::Menubar(ClientConnection& client, int menubar_id)
    : m_client(client)
    , m_menubar_id(menubar_id)
{
}

Menubar::~Menubar()
{
}

void Menubar::add_menu(Menu& menu)
{
    m_menus.append(&menu);
}

}