macOS: Allow setting some fullscreen style options
When using the native fullscreen API by enabling EnableFullScrenView() allow using hiding (or showing) menu and/or toolbar. An additional style parameter has been added to EnableFullScrenView() to allow customizing which style is applied when the user presses the fullscreen button instead of a call to ShowFullScreen(). Closes #22180.
This commit is contained in:
committed by
Vadim Zeitlin
parent
9b2f55833e
commit
0a8bba971c
@@ -314,7 +314,7 @@ public :
|
||||
|
||||
virtual bool IsFullScreen() const wxOVERRIDE;
|
||||
|
||||
bool EnableFullScreenView(bool enable) wxOVERRIDE;
|
||||
bool EnableFullScreenView(bool enable, long style) wxOVERRIDE;
|
||||
|
||||
virtual bool ShowFullScreen(bool show, long style) wxOVERRIDE;
|
||||
|
||||
@@ -341,6 +341,7 @@ public :
|
||||
void RestoreWindowLevel() wxOVERRIDE;
|
||||
|
||||
bool m_macIgnoreNextFullscreenChange = false;
|
||||
long m_macFullscreenStyle = wxFULLSCREEN_ALL;
|
||||
|
||||
static WX_NSResponder GetNextFirstResponder() ;
|
||||
static WX_NSResponder GetFormerFirstResponder() ;
|
||||
|
||||
@@ -962,7 +962,7 @@ public :
|
||||
|
||||
virtual void ShowWithoutActivating() { Show(true); }
|
||||
|
||||
virtual bool EnableFullScreenView(bool enable) = 0;
|
||||
virtual bool EnableFullScreenView(bool enable, long style) = 0;
|
||||
|
||||
virtual bool ShowFullScreen(bool show, long style)= 0;
|
||||
|
||||
|
||||
@@ -180,7 +180,7 @@ public :
|
||||
|
||||
virtual bool IsFullScreen() const;
|
||||
|
||||
virtual bool EnableFullScreenView(bool enable);
|
||||
virtual bool EnableFullScreenView(bool enable, long style);
|
||||
|
||||
virtual bool ShowFullScreen(bool show, long style);
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ public:
|
||||
virtual bool IsActive() wxOVERRIDE;
|
||||
|
||||
virtual void ShowWithoutActivating() wxOVERRIDE;
|
||||
bool EnableFullScreenView(bool enable = true) wxOVERRIDE;
|
||||
bool EnableFullScreenView(bool enable = true, long style = wxFULLSCREEN_ALL) wxOVERRIDE;
|
||||
virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL) wxOVERRIDE;
|
||||
virtual bool IsFullScreen() const wxOVERRIDE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user