]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | ///////////////////////////////////////////////////////////////////////////// |
8ef94bfc | 2 | // Name: wx/gtk1/slider.h |
c801d85f KB |
3 | // Purpose: |
4 | // Author: Robert Roebling | |
58614078 | 5 | // Id: $Id$ |
371a5b4e | 6 | // Copyright: (c) 1998 Robert Roebling |
65571936 | 7 | // Licence: wxWindows licence |
c801d85f KB |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
c801d85f KB |
10 | #ifndef __GTKSLIDERH__ |
11 | #define __GTKSLIDERH__ | |
12 | ||
1e6feb95 | 13 | // ---------------------------------------------------------------------------- |
c801d85f | 14 | // wxSlider |
1e6feb95 | 15 | // ---------------------------------------------------------------------------- |
c801d85f | 16 | |
20123d49 | 17 | class WXDLLIMPEXP_CORE wxSlider : public wxSliderBase |
c801d85f | 18 | { |
a075e27b | 19 | public: |
1e6feb95 VZ |
20 | wxSlider() { } |
21 | wxSlider(wxWindow *parent, | |
22 | wxWindowID id, | |
23 | int value, int minValue, int maxValue, | |
24 | const wxPoint& pos = wxDefaultPosition, | |
25 | const wxSize& size = wxDefaultSize, | |
26 | long style = wxSL_HORIZONTAL, | |
27 | const wxValidator& validator = wxDefaultValidator, | |
28 | const wxString& name = wxSliderNameStr) | |
6de97a3b | 29 | { |
1e6feb95 VZ |
30 | Create( parent, id, value, minValue, maxValue, |
31 | pos, size, style, validator, name ); | |
6de97a3b | 32 | } |
1e6feb95 VZ |
33 | |
34 | bool Create(wxWindow *parent, | |
35 | wxWindowID id, | |
36 | int value, int minValue, int maxValue, | |
37 | const wxPoint& pos = wxDefaultPosition, | |
38 | const wxSize& size = wxDefaultSize, | |
39 | long style = wxSL_HORIZONTAL, | |
40 | const wxValidator& validator = wxDefaultValidator, | |
41 | const wxString& name = wxSliderNameStr); | |
42 | ||
43 | // implement the base class pure virtuals | |
a075e27b | 44 | virtual int GetValue() const; |
1e6feb95 VZ |
45 | virtual void SetValue(int value); |
46 | ||
47 | virtual void SetRange(int minValue, int maxValue); | |
48 | virtual int GetMin() const; | |
49 | virtual int GetMax() const; | |
50 | ||
51 | virtual void SetLineSize(int lineSize); | |
52 | virtual void SetPageSize(int pageSize); | |
53 | virtual int GetLineSize() const; | |
54 | virtual int GetPageSize() const; | |
55 | ||
56 | virtual void SetThumbLength(int lenPixels); | |
57 | virtual int GetThumbLength() const; | |
c801d85f | 58 | |
9d522606 RD |
59 | static wxVisualAttributes |
60 | GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); | |
8ef94bfc | 61 | |
aa9a4ae1 | 62 | // implementation |
b4071e91 | 63 | bool IsOwnGtkWindow( GdkWindow *window ); |
ee4ead93 RR |
64 | void GtkDisableEvents(); |
65 | void GtkEnableEvents(); | |
aa9a4ae1 | 66 | |
c801d85f KB |
67 | GtkAdjustment *m_adjust; |
68 | float m_oldPos; | |
aa9a4ae1 | 69 | |
a075e27b RR |
70 | private: |
71 | DECLARE_DYNAMIC_CLASS(wxSlider) | |
c801d85f KB |
72 | }; |
73 | ||
74 | #endif // __GTKSLIDERH__ |