X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d13b34d3f2be575d59747a5926000be7b28a45dc..9e9574fe45b176ee74bba8fad7574cf9906145d1:/interface/wx/slider.h diff --git a/interface/wx/slider.h b/interface/wx/slider.h index 882c8bcb2b..3a1bae6acf 100644 --- a/interface/wx/slider.h +++ b/interface/wx/slider.h @@ -2,10 +2,26 @@ // Name: slider.h // Purpose: interface of wxSlider // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// + +#define wxSL_HORIZONTAL wxHORIZONTAL /* 0x0004 */ +#define wxSL_VERTICAL wxVERTICAL /* 0x0008 */ + +#define wxSL_TICKS 0x0010 +#define wxSL_AUTOTICKS wxSL_TICKS // we don't support manual ticks +#define wxSL_LEFT 0x0040 +#define wxSL_TOP 0x0080 +#define wxSL_RIGHT 0x0100 +#define wxSL_BOTTOM 0x0200 +#define wxSL_BOTH 0x0400 +#define wxSL_SELRANGE 0x0800 +#define wxSL_INVERSE 0x1000 +#define wxSL_MIN_MAX_LABELS 0x2000 +#define wxSL_VALUE_LABEL 0x4000 +#define wxSL_LABELS (wxSL_MIN_MAX_LABELS|wxSL_VALUE_LABEL) + /** @class wxSlider @@ -100,7 +116,7 @@ @event{EVT_COMMAND_SCROLL_CHANGED(func)} Process @c wxEVT_SCROLL_CHANGED end of scrolling events (MSW only). @event{EVT_SLIDER(id, func)} - Process @c wxEVT_COMMAND_SLIDER_UPDATED which is generated after any + Process @c wxEVT_SLIDER which is generated after any change of wxSlider position in addition to one of the events above. @endEventTable @@ -120,7 +136,7 @@ @library{wxcore} @category{ctrl} - @appearance{slider.png} + @appearance{slider} @see @ref overview_events, wxScrollBar */ @@ -279,6 +295,27 @@ public: */ virtual void SetLineSize(int lineSize); + + /** + Sets the minimum slider value. + + @param minValue + The new bottom end of the slider range. + + @see GetMin(), SetRange() + */ + void SetMin( int minValue ); + + /** + Sets the maximum slider value. + + @param maxValue + The new top end of the slider range. + + @see GetMax(), SetRange() + */ + void SetMax( int maxValue ); + /** Sets the page size for the slider.