X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8219f7f98211cdf964466d130fd71a87e2282682..a7689c49fe02c0c065facf736ab28b19f5997b7c:/include/wx/generic/splitter.h?ds=inline diff --git a/include/wx/generic/splitter.h b/include/wx/generic/splitter.h index 2b75bb1d98..39d9aed8c8 100644 --- a/include/wx/generic/splitter.h +++ b/include/wx/generic/splitter.h @@ -136,8 +136,14 @@ public: // Sets the border size void SetBorderSize(int WXUNUSED(width)) { } - // Gets the sash size + // Hide or show the sash and test whether it's currently hidden. + void SetSashInvisible(bool invisible = true); + bool IsSashInvisible() const { return HasFlag(wxSP_NOSASH); } + + // Gets the current sash size which may be 0 if it's hidden and the default + // sash size. int GetSashSize() const; + int GetDefaultSashSize() const; // Gets the border size int GetBorderSize() const; @@ -206,7 +212,7 @@ public: virtual void DrawSashTracker(int x, int y); // Tests for x, y over sash - virtual bool SashHitTest(int x, int y, int tolerance = 5); + virtual bool SashHitTest(int x, int y); // Resizes subwindows virtual void SizeWindows(); @@ -294,7 +300,6 @@ protected: bool m_needUpdating:1; bool m_permitUnsplitAlways:1; bool m_isHot:1; - bool m_checkRequestedSashPosition:1; private: DECLARE_DYNAMIC_CLASS(wxSplitterWindow)