X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc7a2a602b4bd9308be21bc07e40a680f483438e..f20275d9c54300a403a85a9a6afd42e5e1e9f31c:/include/wx/slider.h diff --git a/include/wx/slider.h b/include/wx/slider.h index 09cd35c8b5..dfd4a63904 100644 --- a/include/wx/slider.h +++ b/include/wx/slider.h @@ -52,6 +52,8 @@ public: virtual void SetRange(int minValue, int maxValue) = 0; virtual int GetMin() const = 0; virtual int GetMax() const = 0; + void SetMin( int minValue ) { SetRange( minValue , GetMax() ) ; } + void SetMax( int maxValue ) { SetRange( GetMin() , maxValue ) ; } // the line/page size is the increment by which the slider moves when // cursor arrow key/page up or down are pressed (clicking the mouse is like @@ -78,6 +80,11 @@ public: virtual int GetSelStart() const { return GetMax(); } virtual void SetSelection(int WXUNUSED(min), int WXUNUSED(max)) { } + + virtual void ApplyParentThemeBackground(const wxColour& bg) + { SetBackgroundColour(bg); } + + private: DECLARE_NO_COPY_CLASS(wxSliderBase) }; @@ -91,7 +98,6 @@ private: #elif defined(__WXMSW__) #include "wx/msw/slider95.h" #define wxSlider wxSlider95 - #define sm_classwxSlider sm_classwxSlider95 #elif defined(__WXMOTIF__) #include "wx/motif/slider.h" #elif defined(__WXGTK__)