1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/slider.h
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
10 #define __GTKSLIDERH__
12 // ----------------------------------------------------------------------------
14 // ----------------------------------------------------------------------------
16 class WXDLLIMPEXP_CORE wxSlider
: public wxSliderBase
20 wxSlider(wxWindow
*parent
,
22 int value
, int minValue
, int maxValue
,
23 const wxPoint
& pos
= wxDefaultPosition
,
24 const wxSize
& size
= wxDefaultSize
,
25 long style
= wxSL_HORIZONTAL
,
26 const wxValidator
& validator
= wxDefaultValidator
,
27 const wxString
& name
= wxSliderNameStr
)
29 Create( parent
, id
, value
, minValue
, maxValue
,
30 pos
, size
, style
, validator
, name
);
33 bool Create(wxWindow
*parent
,
35 int value
, int minValue
, int maxValue
,
36 const wxPoint
& pos
= wxDefaultPosition
,
37 const wxSize
& size
= wxDefaultSize
,
38 long style
= wxSL_HORIZONTAL
,
39 const wxValidator
& validator
= wxDefaultValidator
,
40 const wxString
& name
= wxSliderNameStr
);
42 // implement the base class pure virtuals
43 virtual int GetValue() const;
44 virtual void SetValue(int value
);
46 virtual void SetRange(int minValue
, int maxValue
);
47 virtual int GetMin() const;
48 virtual int GetMax() const;
50 virtual void SetLineSize(int lineSize
);
51 virtual void SetPageSize(int pageSize
);
52 virtual int GetLineSize() const;
53 virtual int GetPageSize() const;
55 virtual void SetThumbLength(int lenPixels
);
56 virtual int GetThumbLength() const;
58 static wxVisualAttributes
59 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
62 bool IsOwnGtkWindow( GdkWindow
*window
);
63 void GtkDisableEvents();
64 void GtkEnableEvents();
66 GtkAdjustment
*m_adjust
;
70 DECLARE_DYNAMIC_CLASS(wxSlider
)
73 #endif // __GTKSLIDERH__