X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff6893d2c2c05cf0c4e81f00cfdd6466b15b9c93..8325504f4bf9dc557745f4dcb26b43c029d5106d:/include/wx/osx/nonownedwnd.h diff --git a/include/wx/osx/nonownedwnd.h b/include/wx/osx/nonownedwnd.h index b7b73e4e71..8a82458f8e 100644 --- a/include/wx/osx/nonownedwnd.h +++ b/include/wx/osx/nonownedwnd.h @@ -55,6 +55,8 @@ public: long style = 0, const wxString& name = wxPanelNameStr); + bool Create(wxWindow *parent, WXWindow nativeWindow); + virtual ~wxNonOwnedWindow(); virtual wxPoint GetClientAreaOrigin() const; @@ -75,22 +77,18 @@ public: // -------------------------- virtual bool DoSetShape(const wxRegion& region); + const wxRegion& GetShape() const { return m_shape; } // activation hooks only necessary for MDI Implementation static void MacDelayedDeactivation(long timestamp); virtual void MacActivate( long timestamp , bool inIsActivating ) ; + virtual void SetWindowStyleFlag(long flags); virtual void Raise(); virtual void Lower(); virtual bool Show( bool show = true ); - virtual bool ShowWithEffect(wxShowEffect effect, - unsigned timeout = 0) ; - - virtual bool HideWithEffect(wxShowEffect effect, - unsigned timeout = 0) ; - virtual void SetExtraStyle(long exStyle) ; virtual bool SetBackgroundColour( const wxColour &colour ); @@ -108,7 +106,9 @@ public: virtual void HandleResized( double timestampsec ); virtual void HandleMoved( double timestampsec ); virtual void HandleResizing( double timestampsec, wxRect* rect ); - + + virtual bool Destroy(); + protected: // common part of all ctors void Init(); @@ -118,12 +118,20 @@ protected: virtual void DoMoveWindow(int x, int y, int width, int height); virtual void DoGetClientSize(int *width, int *height) const; + virtual bool OSXShowWithEffect(bool show, + wxShowEffect effect, + unsigned timeout); + + virtual void WillBeDestroyed(); + wxNonOwnedWindowImpl* m_nowpeer ; // wxWindowMac* m_macFocus ; static wxNonOwnedWindow *s_macDeactivateWindow; + private : + wxRegion m_shape; }; // list of all frames and modeless dialogs