]>
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 #if defined(__GNUG__) && !defined(__APPLE__)
16 #pragma interface "slider.h"
19 #include "wx/control.h"
22 class WXDLLEXPORT wxSlider
: public wxSliderBase
24 DECLARE_DYNAMIC_CLASS(wxSlider
)
29 wxSlider(wxWindow
*parent
, wxWindowID id
,
30 int value
, int minValue
, int maxValue
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& size
= wxDefaultSize
,
33 long style
= wxSL_HORIZONTAL
,
34 const wxValidator
& validator
= wxDefaultValidator
,
35 const wxString
& name
= wxSliderNameStr
)
37 Create(parent
, id
, value
, minValue
, maxValue
, pos
, size
, style
, validator
, name
);
42 bool Create(wxWindow
*parent
, wxWindowID id
,
43 int value
, int minValue
, int maxValue
,
44 const wxPoint
& pos
= wxDefaultPosition
,
45 const wxSize
& size
= wxDefaultSize
,
46 long style
= wxSL_HORIZONTAL
,
47 const wxValidator
& validator
= wxDefaultValidator
,
48 const wxString
& name
= wxSliderNameStr
);
50 virtual int GetValue() const ;
51 virtual void SetValue(int);
53 void SetRange(int minValue
, int maxValue
);
55 inline int GetMin() const { return m_rangeMin
; }
56 inline int GetMax() const { return m_rangeMax
; }
59 void SetPageSize(int pageSize
);
60 int GetPageSize() const ;
61 void SetLineSize(int lineSize
);
62 int GetLineSize() const ;
63 void SetThumbLength(int len
) ;
64 int GetThumbLength() const ;
66 void Command(wxCommandEvent
& event
);
74 virtual void DoSetSize(int x
, int y
,
75 int width
, int height
,
76 int sizeFlags
= wxSIZE_AUTO
);