1
/////////////////////////////////////////////////////////////////////////////
2
// Name: wx/gtk1/slider.h
4
// Author: Robert Roebling
5
// Id: $Id: slider.h 37065 2006-01-23 02:28:01Z MR $
6
// Copyright: (c) 1998 Robert Roebling
7
// Licence: wxWindows licence
8
/////////////////////////////////////////////////////////////////////////////
10
#ifndef __GTKSLIDERH__
11
#define __GTKSLIDERH__
13
// ----------------------------------------------------------------------------
15
// ----------------------------------------------------------------------------
17
class WXDLLIMPEXP_CORE wxSlider : public wxSliderBase
21
wxSlider(wxWindow *parent,
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)
30
Create( parent, id, value, minValue, maxValue,
31
pos, size, style, validator, name );
34
bool Create(wxWindow *parent,
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);
43
// implement the base class pure virtuals
44
virtual int GetValue() const;
45
virtual void SetValue(int value);
47
virtual void SetRange(int minValue, int maxValue);
48
virtual int GetMin() const;
49
virtual int GetMax() const;
51
virtual void SetLineSize(int lineSize);
52
virtual void SetPageSize(int pageSize);
53
virtual int GetLineSize() const;
54
virtual int GetPageSize() const;
56
virtual void SetThumbLength(int lenPixels);
57
virtual int GetThumbLength() const;
59
static wxVisualAttributes
60
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
63
bool IsOwnGtkWindow( GdkWindow *window );
64
void GtkDisableEvents();
65
void GtkEnableEvents();
67
GtkAdjustment *m_adjust;
71
DECLARE_DYNAMIC_CLASS(wxSlider)
74
#endif // __GTKSLIDERH__