]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/slider.h
Fixed Get...String functions.
[wxWidgets.git] / include / wx / gtk1 / slider.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: slider.h
3// Purpose:
4// Author: Robert Roebling
5// Created: 01/02/97
6// Id:
7// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11
12#ifndef __GTKSLIDERH__
13#define __GTKSLIDERH__
14
15#ifdef __GNUG__
16#pragma interface
17#endif
18
19#include "wx/defs.h"
20#include "wx/object.h"
21#include "wx/list.h"
22#include "wx/control.h"
23
24//-----------------------------------------------------------------------------
25// classes
26//-----------------------------------------------------------------------------
27
28class wxSlider;
29
30//-----------------------------------------------------------------------------
31// global data
32//-----------------------------------------------------------------------------
33
34extern const char *wxSliderNameStr;
35
36//-----------------------------------------------------------------------------
37// wxSlider
38//-----------------------------------------------------------------------------
39
40class wxSlider: public wxControl
41{
42 DECLARE_DYNAMIC_CLASS(wxSlider)
43
44 public:
45 wxSlider(void);
6de97a3b 46 inline wxSlider( wxWindow *parent, wxWindowID id,
debe6624 47 int value, int minValue, int maxValue,
c801d85f
KB
48 const wxPoint& pos = wxDefaultPosition,
49 const wxSize& size = wxDefaultSize,
debe6624 50 long style = wxSL_HORIZONTAL,
6de97a3b
RR
51 const wxValidator& validator = wxDefaultValidator,
52 const wxString& name = wxSliderNameStr )
53 {
54 Create( parent, id, value, minValue, maxValue, pos, size, style, validator, name );
55 }
56 ~wxSlider(void);
57 bool Create(wxWindow *parent, wxWindowID id,
debe6624 58 int value, int minValue, int maxValue,
c801d85f
KB
59 const wxPoint& pos = wxDefaultPosition,
60 const wxSize& size = wxDefaultSize,
debe6624 61 long style = wxSL_HORIZONTAL,
6de97a3b
RR
62 const wxValidator& validator = wxDefaultValidator,
63 const wxString& name = wxSliderNameStr );
c801d85f 64 virtual int GetValue(void) const;
debe6624 65 virtual void SetValue( int );
c801d85f 66 void GetSize( int *x, int *y ) const;
debe6624 67 void SetSize( int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO );
c801d85f 68 void GetPosition( int *x, int *y ) const;
debe6624 69 void SetRange( int minValue, int maxValue );
c801d85f
KB
70 int GetMin(void) const;
71 int GetMax(void) const;
debe6624 72 void SetTickFreq( int n, int pos );
c801d85f 73 int GetTickFreq(void) const;
debe6624 74 void SetPageSize( int pageSize );
c801d85f
KB
75 int GetPageSize(void) const;
76 void ClearSel(void);
77 void ClearTicks(void);
debe6624 78 void SetLineSize( int lineSize );
c801d85f
KB
79 int GetLineSize(void) const;
80 int GetSelEnd(void) const;
81 int GetSelStart(void) const;
debe6624
JS
82 void SetSelection( int minPos, int maxPos );
83 void SetThumbLength( int len );
c801d85f 84 int GetThumbLength(void) const;
debe6624 85 void SetTick( int tickPos );
c801d85f
KB
86
87 public:
88
89 GtkAdjustment *m_adjust;
90 float m_oldPos;
91
92};
93
94#endif // __GTKSLIDERH__