]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/slider.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxSlider class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/control.h"
18 class WXDLLEXPORT wxSlider
: public wxSliderBase
20 DECLARE_DYNAMIC_CLASS(wxSlider
)
25 wxSlider(wxWindow
*parent
, wxWindowID id
,
26 int value
, int minValue
, int maxValue
,
27 const wxPoint
& pos
= wxDefaultPosition
,
28 const wxSize
& size
= wxDefaultSize
,
29 long style
= wxSL_HORIZONTAL
,
30 const wxValidator
& validator
= wxDefaultValidator
,
31 const wxString
& name
= wxSliderNameStr
)
33 Create(parent
, id
, value
, minValue
, maxValue
, pos
, size
, style
, validator
, name
);
38 bool Create(wxWindow
*parent
, wxWindowID id
,
39 int value
, int minValue
, int maxValue
,
40 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxSize
& size
= wxDefaultSize
,
42 long style
= wxSL_HORIZONTAL
,
43 const wxValidator
& validator
= wxDefaultValidator
,
44 const wxString
& name
= wxSliderNameStr
);
46 virtual int GetValue() const ;
47 virtual void SetValue(int);
49 void SetRange(int minValue
, int maxValue
);
51 inline int GetMin() const { return m_rangeMin
; }
52 inline int GetMax() const { return m_rangeMax
; }
55 void SetPageSize(int pageSize
);
56 int GetPageSize() const ;
57 void SetLineSize(int lineSize
);
58 int GetLineSize() const ;
59 void SetThumbLength(int len
) ;
60 int GetThumbLength() const ;
62 void Command(wxCommandEvent
& event
);
70 virtual void DoSetSize(int x
, int y
,
71 int width
, int height
,
72 int sizeFlags
= wxSIZE_AUTO
);