X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/74c57d1ff65edd1da6f4f8d30be55db47f6d27a7..9918d4d5c1604d8bdd6cd04a3b163ae64eb9d447:/include/wx/generic/splitter.h diff --git a/include/wx/generic/splitter.h b/include/wx/generic/splitter.h index 3d1745b0a1..beaba72ac5 100644 --- a/include/wx/generic/splitter.h +++ b/include/wx/generic/splitter.h @@ -244,7 +244,15 @@ protected: int ConvertSashPosition(int sashPos) const; // set the real sash position, sashPos here must be positive - void DoSetSashPosition(int sashPos); + // + // 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; @@ -258,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;