Add wxFullScreenEvent for macOS
Send a wxFullScreenEvent when the user enters or exits full screen on macOS. EnableFullScreenView() has to be used to enable the native full screen API. Closes https://github.com/wxWidgets/wxWidgets/pull/2284
This commit is contained in:
committed by
Vadim Zeitlin
parent
a495b1fd23
commit
0ff1bdec09
@@ -2262,6 +2262,46 @@ public:
|
||||
wxMaximizeEvent(int id = 0);
|
||||
};
|
||||
|
||||
/**
|
||||
@class wxFullScreenEvent
|
||||
|
||||
An event being sent when the user enters or exits full screen mode.
|
||||
|
||||
Currently this event is only generated in the wxOSX/Cocoa port when
|
||||
wxTopLevelWindow::EnableFullScreenView() is enabled and the user
|
||||
the user enters or exits full screen. Note that this event is @e not
|
||||
generated when wxTopLevelWindow::ShowFullScreen().
|
||||
|
||||
@beginEventTable{wxFullScreenEvent}
|
||||
@event{EVT_FULLSCREEN(func)}
|
||||
Process a @c wxEVT_FULLSCREEN event.
|
||||
@endEventTable
|
||||
|
||||
@library{wxcore}
|
||||
@category{events}
|
||||
|
||||
@since 3.1.5
|
||||
|
||||
@see @ref overview_events, wxTopLevelWindow::EnableFullScreenView,
|
||||
wxTopLevelWindow::IsFullScreen
|
||||
*/
|
||||
class wxFullScreenEvent : public wxEvent
|
||||
{
|
||||
public:
|
||||
/**
|
||||
Constructor.
|
||||
*/
|
||||
wxFullScreenEvent(int id = 0, bool fullscreen = true);
|
||||
|
||||
/**
|
||||
Returns @true if the frame entered full screen, @false if exited
|
||||
full screen.
|
||||
*/
|
||||
bool IsFullScreen() const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
The possibles modes to pass to wxUpdateUIEvent::SetMode().
|
||||
*/
|
||||
@@ -5151,4 +5191,3 @@ wxEventType wxEVT_WINDOW_MODAL_DIALOG_CLOSED;
|
||||
#endif // wxUSE_GUI
|
||||
|
||||
//@}
|
||||
|
||||
|
Reference in New Issue
Block a user