X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f618020a15f1647a83aaeab1fe315f90497a9876..91116345459337f3fc10fa60ad96d770d41569eb:/include/wx/gtk/toplevel.h diff --git a/include/wx/gtk/toplevel.h b/include/wx/gtk/toplevel.h index a3b842add3..e95ee0f11c 100644 --- a/include/wx/gtk/toplevel.h +++ b/include/wx/gtk/toplevel.h @@ -11,7 +11,7 @@ #ifndef __GTKTOPLEVELH__ #define __GTKTOPLEVELH__ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "toplevel.h" #endif @@ -60,11 +60,19 @@ public: virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL); virtual bool IsFullScreen() const { return m_fsIsShowing; }; + virtual bool SetShape(const wxRegion& region); + virtual bool Show(bool show = TRUE); virtual void SetTitle( const wxString &title ); virtual wxString GetTitle() const { return m_title; } + // Experimental, to allow help windows to be + // viewable from within modal dialogs + virtual void AddGrab(); + virtual void RemoveGrab(); + virtual bool IsGrabbed() const { return m_grabbed; } + // implementation from now on // -------------------------- @@ -92,8 +100,10 @@ public: long m_fsSaveGdkFunc, m_fsSaveGdkDecor; long m_fsSaveFlag; wxRect m_fsSaveFrame; - - long m_gdkFunc, m_gdkDecor; // m_windowStyle translated to GDK's terms + + // m_windowStyle translated to GDK's terms + long m_gdkFunc, + m_gdkDecor; protected: // common part of all ctors @@ -109,6 +119,9 @@ protected: // is the frame currently iconized? bool m_isIconized; + // is the frame currently grabbed explicitly + // by the application? + bool m_grabbed; }; #endif // __GTKTOPLEVELH__