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
22
class
FGWindowsMenuBar
:
public
FGMenuBar
23
{
24
public
:
28
FGWindowsMenuBar
();
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
57
private
:
58
class
WindowsMenuBarPrivate
;
59
std::unique_ptr<WindowsMenuBarPrivate> _p;
60
};
FGMenuBar::FGMenuBar
FGMenuBar()
Definition
menubar.cxx:10
FGWindowsMenuBar::WindowsMenuBarPrivate
Definition
FGWindowsMenuBar.cxx:77
FGWindowsMenuBar::setHideIfOverlapsWindow
void setHideIfOverlapsWindow(bool hide) override
Request the menubar to be hidden if its display overlays the main window content.
Definition
FGWindowsMenuBar.cxx:183
FGWindowsMenuBar::hide
void hide() override
Make the menu bar invisible.
Definition
FGWindowsMenuBar.cxx:172
FGWindowsMenuBar::getHideIfOverlapsWindow
bool getHideIfOverlapsWindow() const override
Definition
FGWindowsMenuBar.cxx:196
FGWindowsMenuBar::show
void show() override
Make the menu bar visible.
Definition
FGWindowsMenuBar.cxx:166
FGWindowsMenuBar::FGWindowsMenuBar
FGWindowsMenuBar()
Constructor.
Definition
FGWindowsMenuBar.cxx:105
FGWindowsMenuBar::init
void init() override
Initialize the menu bar from $FG_ROOT/gui/menubar.xml.
Definition
FGWindowsMenuBar.cxx:109
FGWindowsMenuBar::~FGWindowsMenuBar
~FGWindowsMenuBar() override=default
FGWindowsMenuBar::isVisible
bool isVisible() const override
Test whether the menu bar is visible.
Definition
FGWindowsMenuBar.cxx:178
FGWindowsMenuBar::getItemBindings
std::vector< SGBindingList > getItemBindings() const
Definition
FGWindowsMenuBar.cxx:201
menubar.hxx
src
GUI
FGWindowsMenuBar.hxx
Generated on Tue Jun 3 2025 12:58:39 for FlightGear by
1.13.2