X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/69b85ca49b0ac601c285e84294ac50be9dfc5291..a2b9e9520297da0f7d13e4cc2e36acdf2bda105d:/include/wx/mac/slider.h?ds=sidebyside diff --git a/include/wx/mac/slider.h b/include/wx/mac/slider.h index db747cda72..9599a60c10 100644 --- a/include/wx/mac/slider.h +++ b/include/wx/mac/slider.h @@ -12,7 +12,7 @@ #ifndef _WX_SLIDER_H_ #define _WX_SLIDER_H_ -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "slider.h" #endif @@ -59,6 +59,9 @@ public: inline int GetMin() const { return m_rangeMin; } inline int GetMax() const { return m_rangeMax; } + void SetMin(int minValue) { SetRange(minValue, m_rangeMax); } + void SetMax(int maxValue) { SetRange(m_rangeMin, maxValue); } + // For trackbars only void SetTickFreq(int n, int pos); inline int GetTickFreq() const { return m_tickFreq; }