X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/428f841bd05025c94626d3ddf357a02901e87bc4..4c1d5d5ae212f255662264677d21c7139f4c939d:/include/wx/gtk/toplevel.h diff --git a/include/wx/gtk/toplevel.h b/include/wx/gtk/toplevel.h index 62bbf36115..e059880ab3 100644 --- a/include/wx/gtk/toplevel.h +++ b/include/wx/gtk/toplevel.h @@ -16,7 +16,6 @@ class WXDLLIMPEXP_CORE wxTopLevelWindowGTK : public wxTopLevelWindowBase { - DECLARE_EVENT_TABLE() public: // construction wxTopLevelWindowGTK() { Init(); } @@ -86,9 +85,6 @@ public: // GTK callbacks 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); @@ -107,6 +103,9 @@ public: // 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; @@ -114,6 +113,8 @@ public: // return the size of the window without WM decorations void GTKDoGetSize(int *width, int *height) 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 @@ -138,6 +139,8 @@ protected: wxString m_title; private: + wxSize& GetCachedDecorSize(); + // is the frame currently iconized? bool m_isIconized;