FlightGear next
FGCocoaMenuBar.hxx
Go to the documentation of this file.
1// menubar.hxx - XML-configured menu bar.
2
3#ifndef FG_COCOA_MENUBAR_HXX
4#define FG_COCOA_MENUBAR_HXX 1
5
6#include <GUI/menubar.hxx>
7
8#include <memory>
9
22{
23public:
24
29
30
34 virtual ~FGCocoaMenuBar ();
35
36
40 virtual void init ();
41
45 virtual void show ();
46
47
51 virtual void hide ();
52
53
57 virtual bool isVisible () const;
58
63 void setHideIfOverlapsWindow(bool hide) override;
64
65 bool getHideIfOverlapsWindow() const override;
66
67 class CocoaMenuBarPrivate;
68private:
69 std::unique_ptr<CocoaMenuBarPrivate> p;
70
71};
72
73#endif // __MENUBAR_HXX
virtual void show()
Make the menu bar visible.
FGCocoaMenuBar()
Constructor.
virtual void hide()
Make the menu bar invisible.
virtual ~FGCocoaMenuBar()
Destructor.
virtual void init()
Initialize the menu bar from $FG_ROOT/gui/menubar.xml.
bool getHideIfOverlapsWindow() const override
virtual bool isVisible() const
Test whether the menu bar is visible.
void setHideIfOverlapsWindow(bool hide) override
This is a no-op on Cocoa - the menubar doesn't overlap the window when its drawn.