]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/slider.h
added wxSUBRELEAS_NUMBER and macro to check for it
[wxWidgets.git] / include / wx / gtk1 / slider.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
1e6feb95 2// Name: wx/gtk/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
12028905 13#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
c801d85f
KB
14#pragma interface
15#endif
16
1e6feb95 17// ----------------------------------------------------------------------------
c801d85f 18// wxSlider
1e6feb95 19// ----------------------------------------------------------------------------
c801d85f 20
1e6feb95 21class wxSlider : public wxSliderBase
c801d85f 22{
a075e27b 23public:
1e6feb95
VZ
24 wxSlider() { }
25 wxSlider(wxWindow *parent,
26 wxWindowID id,
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)
6de97a3b 33 {
1e6feb95
VZ
34 Create( parent, id, value, minValue, maxValue,
35 pos, size, style, validator, name );
6de97a3b 36 }
1e6feb95
VZ
37
38 bool Create(wxWindow *parent,
39 wxWindowID id,
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);
46
47 // implement the base class pure virtuals
a075e27b 48 virtual int GetValue() const;
1e6feb95
VZ
49 virtual void SetValue(int value);
50
51 virtual void SetRange(int minValue, int maxValue);
52 virtual int GetMin() const;
53 virtual int GetMax() const;
54
55 virtual void SetLineSize(int lineSize);
56 virtual void SetPageSize(int pageSize);
57 virtual int GetLineSize() const;
58 virtual int GetPageSize() const;
59
60 virtual void SetThumbLength(int lenPixels);
61 virtual int GetThumbLength() const;
c801d85f 62
9d522606
RD
63 static wxVisualAttributes
64 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
65
aa9a4ae1 66 // implementation
b4071e91 67 bool IsOwnGtkWindow( GdkWindow *window );
ee4ead93
RR
68 void GtkDisableEvents();
69 void GtkEnableEvents();
aa9a4ae1 70
c801d85f
KB
71 GtkAdjustment *m_adjust;
72 float m_oldPos;
aa9a4ae1 73
a075e27b
RR
74private:
75 DECLARE_DYNAMIC_CLASS(wxSlider)
c801d85f
KB
76};
77
78#endif // __GTKSLIDERH__