Add wxMenuBar::OSXGetAppleMenu().

Native OS X apps sometimes have certain app-wide comments in the
Apple/app menu ("Check for Updates" is a typical example).  Make it
possible to write well-behaved OS X apps by exposing this menu to user
code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2013-11-17 18:03:02 +00:00
parent bb290e285f
commit 6aa48db478
2 changed files with 16 additions and 0 deletions

View File

@@ -408,6 +408,18 @@ public:
*/
static wxMenuBar* MacGetCommonMenuBar();
/**
Returns the Apple menu.
This is the leftmost menu with application's name as its title. You
shouldn't remove any items from it, but it is safe to insert extra menu
items or submenus into it.
@onlyfor{wxosx}
@since 3.0.1
*/
wxMenu *OSXGetAppleMenu() const;
wxFrame *GetFrame() const;
bool IsAttached() const;
virtual void Attach(wxFrame *frame);