X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/290cd3016c18b5d56995d971b14f8d91d78ea22e..5acb9127c51a79e792f6faeea6c70f32e622ee17:/include/wx/gtk/toplevel.h diff --git a/include/wx/gtk/toplevel.h b/include/wx/gtk/toplevel.h index 9b1965b1b2..e059880ab3 100644 --- a/include/wx/gtk/toplevel.h +++ b/include/wx/gtk/toplevel.h @@ -83,16 +83,15 @@ public: // -------------------------- // GTK callbacks - virtual void GtkOnSize(); virtual void OnInternalIdle(); // do *not* call this to iconize the frame, this is a private function! void SetIconizeState(bool iconic); - int m_miniEdge, - m_miniTitle; GtkWidget *m_mainWidget; + bool m_deferShow; + bool m_fsIsShowing; /* full screen */ int m_fsSaveGdkFunc, m_fsSaveGdkDecor; wxRect m_fsSaveFrame; @@ -101,27 +100,27 @@ public: int m_gdkFunc, m_gdkDecor; - bool m_sizeSet; + // size of WM decorations + wxSize m_decorSize; + + // shape of the frame + wxRegion m_shape; // private gtk_timeout_add result for mimicing wxUSER_ATTENTION_INFO and // wxUSER_ATTENTION_ERROR difference, -2 for no hint, -1 for ERROR hint, rest for GtkTimeout handle. int m_urgency_hint; - // give hints to the Window Manager for how the size - // of the TLW can be changed by dragging - virtual void DoSetSizeHints( int minW, int minH, - int maxW = wxDefaultCoord, int maxH = wxDefaultCoord, - int incW = wxDefaultCoord, int incH = wxDefaultCoord ); - // return the size of the window without WM decorations void GTKDoGetSize(int *width, int *height) const; - void GtkUpdateSize() { m_sizeSet = false; } - - // whether frame extents are accurate - virtual bool IsDecorCacheable() const; + void GTKUpdateDecorSize(const wxSize& decorSize); protected: + // give hints to the Window Manager for how the size + // of the TLW can be changed by dragging + virtual void DoSetSizeHints( int minW, int minH, + int maxW, int maxH, + int incW, int incH); // common part of all ctors void Init(); @@ -133,12 +132,15 @@ protected: int width, int height, int sizeFlags = wxSIZE_AUTO); - // override these methods to take into account tool/menu/statusbars + virtual void DoSetClientSize(int width, int height); virtual void DoGetClientSize(int *width, int *height) const; // string shown in the title bar wxString m_title; +private: + wxSize& GetCachedDecorSize(); + // is the frame currently iconized? bool m_isIconized;