X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3e58dcb9058f177d767c6f39baa88ee5626266a9..9918d4d5c1604d8bdd6cd04a3b163ae64eb9d447:/include/wx/generic/splitter.h diff --git a/include/wx/generic/splitter.h b/include/wx/generic/splitter.h index fabcbfcf8a..beaba72ac5 100644 --- a/include/wx/generic/splitter.h +++ b/include/wx/generic/splitter.h @@ -237,9 +237,22 @@ protected: // get either width or height depending on the split mode int GetWindowSize() const; - - // set m_sashPosition w/ safeguards - void DoSetSashPosition(int sashPos); + + // 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 + // + // returns TRUE if the sash position has been changed, FALSE otherwise + bool DoSetSashPosition(int sashPos); + + // set the sash position and send an event about it having been changed + void SetSashPositionAndNotify(int sashPos); + + // set the cursor appropriate for the current split mode + void SetResizeCursor(); wxSplitMode m_splitMode; bool m_permitUnsplitAlways; @@ -253,11 +266,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;