FlightGear next
FGWindowsMenuBar.hxx
Go to the documentation of this file.
1/*
2 * SPDX-FileName: FGWindowsMenuBar.hxx
3 * SPDX-FileComment: XML-configured menu bar.
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#pragma once
8
9#include <simgear/structure/SGBinding.hxx>
10
11#include <GUI/menubar.hxx>
12
13#include <memory>
14
23{
24public:
29 ~FGWindowsMenuBar() override = default;
30
34 void init() override;
35
39 void show() override;
40
44 void hide() override;
45
49 bool isVisible() const override;
50
51 void setHideIfOverlapsWindow(bool hide) override;
52
53 bool getHideIfOverlapsWindow() const override;
54
55 std::vector<SGBindingList> getItemBindings() const;
56
57private:
59 std::unique_ptr<WindowsMenuBarPrivate> _p;
60};
void setHideIfOverlapsWindow(bool hide) override
Request the menubar to be hidden if its display overlays the main window content.
void hide() override
Make the menu bar invisible.
bool getHideIfOverlapsWindow() const override
void show() override
Make the menu bar visible.
FGWindowsMenuBar()
Constructor.
void init() override
Initialize the menu bar from $FG_ROOT/gui/menubar.xml.
~FGWindowsMenuBar() override=default
bool isVisible() const override
Test whether the menu bar is visible.
std::vector< SGBindingList > getItemBindings() const