1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/slider.h
3 // Purpose: wxSlider class
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 #include "wx/control.h"
17 class WXDLLIMPEXP_CORE wxSlider
: public wxSliderBase
19 DECLARE_DYNAMIC_CLASS(wxSlider
)
24 wxSlider(wxWindow
*parent
, wxWindowID id
,
25 int value
, int minValue
, int maxValue
,
26 const wxPoint
& pos
= wxDefaultPosition
,
27 const wxSize
& size
= wxDefaultSize
,
28 long style
= wxSL_HORIZONTAL
,
29 const wxValidator
& validator
= wxDefaultValidator
,
30 const wxString
& name
= wxSliderNameStr
)
32 Create(parent
, id
, value
, minValue
, maxValue
, pos
, size
, style
, validator
, name
);
37 bool Create(wxWindow
*parent
, wxWindowID id
,
38 int value
, int minValue
, int maxValue
,
39 const wxPoint
& pos
= wxDefaultPosition
,
40 const wxSize
& size
= wxDefaultSize
,
41 long style
= wxSL_HORIZONTAL
,
42 const wxValidator
& validator
= wxDefaultValidator
,
43 const wxString
& name
= wxSliderNameStr
);
45 virtual int GetValue() const ;
46 virtual void SetValue(int);
48 void SetRange(int minValue
, int maxValue
);
50 inline int GetMin() const { return m_rangeMin
; }
51 inline int GetMax() const { return m_rangeMax
; }
54 void SetPageSize(int pageSize
);
55 int GetPageSize() const ;
56 void SetLineSize(int lineSize
);
57 int GetLineSize() const ;
58 void SetThumbLength(int len
) ;
59 int GetThumbLength() const ;
61 void Command(wxCommandEvent
& event
);
69 virtual void DoSetSize(int x
, int y
,
70 int width
, int height
,
71 int sizeFlags
= wxSIZE_AUTO
);