Implement sending wxIconizeEvent in wxOSX.

Translate windowDid{Miniaturize,Deminiaturize} callbacks to calls to
SendIconizeEvent().

See #16718.
This commit is contained in:
Rob Krakora
2015-07-18 01:15:29 +02:00
committed by Vadim Zeitlin
parent 563329f89f
commit 31e1387541
6 changed files with 47 additions and 3 deletions

View File

@@ -113,7 +113,8 @@ public:
virtual void HandleResized( double timestampsec );
virtual void HandleMoved( double timestampsec );
virtual void HandleResizing( double timestampsec, wxRect* rect );
virtual void HandleMiniaturize( double WXUNUSED(timestampsec), bool miniaturized );
void WindowWasPainted();
virtual bool Destroy();

View File

@@ -82,6 +82,9 @@ public:
virtual void SetRepresentedFilename(const wxString& filename);
// do *not* call this to iconize the frame, this is a private function!
void OSXSetIconizeState(bool iconic);
protected:
// common part of all ctors
void Init();
@@ -92,6 +95,7 @@ protected:
// should the frame be maximized when it will be shown? set by Maximize()
// when it is called while the frame is hidden
bool m_maximizeOnShow;
private :
wxDECLARE_EVENT_TABLE();
};