X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3e58dcb9058f177d767c6f39baa88ee5626266a9..94c162795e6ebff164bcfc7bb9aa0138dd83b194:/include/wx/generic/splitter.h diff --git a/include/wx/generic/splitter.h b/include/wx/generic/splitter.h index fabcbfcf8a..3667538fda 100644 --- a/include/wx/generic/splitter.h +++ b/include/wx/generic/splitter.h @@ -237,10 +237,18 @@ protected: // get either width or height depending on the split mode int GetWindowSize() const; - - // set m_sashPosition w/ safeguards + + // convert the user specified sash position which may be > 0 (as is), < 0 + // (specifying the size of the right pane) or 0 (use default) to the real + // position to be passed to DoSetSashPosition() + int ConvertSashPosition(int sashPos) const; + + // set the real sash position, sashPos here must be positive void DoSetSashPosition(int sashPos); + // set the cursor appropriate for the current split mode + void SetResizeCursor(); + wxSplitMode m_splitMode; bool m_permitUnsplitAlways; bool m_needUpdating; // when in live mode, set this to TRUE to resize children in idle @@ -253,11 +261,12 @@ protected: int m_sashSize; // Sash width or height int m_sashPosition; // Number of pixels from left or top int m_requestedSashPosition; + int m_sashPositionCurrent; // while dragging int m_firstX; int m_firstY; int m_minimumPaneSize; - wxCursor* m_sashCursorWE; - wxCursor* m_sashCursorNS; + wxCursor m_sashCursorWE; + wxCursor m_sashCursorNS; wxPen* m_sashTrackerPen; wxPen* m_lightShadowPen; wxPen* m_mediumShadowPen;