X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/290cd3016c18b5d56995d971b14f8d91d78ea22e..eccec0f887519b0d1ad69cb0fb2fed0687dc6965:/include/wx/gtk/toplevel.h diff --git a/include/wx/gtk/toplevel.h b/include/wx/gtk/toplevel.h index 9b1965b1b2..463537c387 100644 --- a/include/wx/gtk/toplevel.h +++ b/include/wx/gtk/toplevel.h @@ -16,6 +16,7 @@ class WXDLLIMPEXP_CORE wxTopLevelWindowGTK : public wxTopLevelWindowBase { + DECLARE_EVENT_TABLE() public: // construction wxTopLevelWindowGTK() { Init(); } @@ -83,16 +84,18 @@ public: // -------------------------- // GTK callbacks - virtual void GtkOnSize(); virtual void OnInternalIdle(); + // Respond to system colour change + void OnSysColourChanged(wxSysColourChangedEvent& event); + // 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 +104,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 +136,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;