]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/slider.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/slider.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKSLIDERH__
11 #define __GTKSLIDERH__
13 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
17 // ----------------------------------------------------------------------------
19 // ----------------------------------------------------------------------------
21 class wxSlider
: public wxSliderBase
25 wxSlider(wxWindow
*parent
,
27 int value
, int minValue
, int maxValue
,
28 const wxPoint
& pos
= wxDefaultPosition
,
29 const wxSize
& size
= wxDefaultSize
,
30 long style
= wxSL_HORIZONTAL
,
31 const wxValidator
& validator
= wxDefaultValidator
,
32 const wxString
& name
= wxSliderNameStr
)
34 Create( parent
, id
, value
, minValue
, maxValue
,
35 pos
, size
, style
, validator
, name
);
38 bool Create(wxWindow
*parent
,
40 int value
, int minValue
, int maxValue
,
41 const wxPoint
& pos
= wxDefaultPosition
,
42 const wxSize
& size
= wxDefaultSize
,
43 long style
= wxSL_HORIZONTAL
,
44 const wxValidator
& validator
= wxDefaultValidator
,
45 const wxString
& name
= wxSliderNameStr
);
47 // implement the base class pure virtuals
48 virtual int GetValue() const;
49 virtual void SetValue(int value
);
51 virtual void SetRange(int minValue
, int maxValue
);
52 virtual int GetMin() const;
53 virtual int GetMax() const;
55 virtual void SetLineSize(int lineSize
);
56 virtual void SetPageSize(int pageSize
);
57 virtual int GetLineSize() const;
58 virtual int GetPageSize() const;
60 virtual void SetThumbLength(int lenPixels
);
61 virtual int GetThumbLength() const;
63 static wxVisualAttributes
64 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
67 bool IsOwnGtkWindow( GdkWindow
*window
);
68 void GtkDisableEvents();
69 void GtkEnableEvents();
71 GtkAdjustment
*m_adjust
;
75 DECLARE_DYNAMIC_CLASS(wxSlider
)
78 #endif // __GTKSLIDERH__