X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..00a73a8de6f98749e2ec7bf060c5c0aa55261821:/include/wx/msw/slider.h diff --git a/include/wx/msw/slider.h b/include/wx/msw/slider.h index a692c9905c..abd4ec4985 100644 --- a/include/wx/msw/slider.h +++ b/include/wx/msw/slider.h @@ -59,7 +59,6 @@ public: int GetMax() const { return m_rangeMax; } // Win32-specific slider methods - void SetTickFreq(int n, int pos); int GetTickFreq() const { return m_tickFreq; } void SetPageSize(int pageSize); int GetPageSize() const; @@ -106,8 +105,8 @@ protected: // get the boundig box for the slider and possible labels wxRect GetBoundingBox() const; - // get the height and, if the pointer is not NULL, width of our labels - int GetLabelsSize(int *width = NULL) const; + // Get the height and, if the pointers are non NULL, widths of both labels. + int GetLabelsSize(int *widthMin = NULL, int *widthMax = NULL) const; // overridden base class virtuals @@ -124,11 +123,16 @@ protected: int m_pageSize; int m_lineSize; int m_tickFreq; + int m_minLabelWidth; + int m_maxLabelWidth; // flag needed to detect whether we're getting THUMBRELEASE event because // of dragging the thumb or scrolling the mouse wheel bool m_isDragging; + // Platform-specific implementation of SetTickFreq + virtual void DoSetTickFreq(int freq); + DECLARE_DYNAMIC_CLASS_NO_COPY(wxSlider) };