]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/slider.h
Added stub include files; also a couple more Dialog Editor files.
[wxWidgets.git] / include / wx / gtk / 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);
debe6624
JS
46 wxSlider( wxWindow *parent, wxWindowID id,
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,
c801d85f
KB
51/* const wxValidator& validator = wxDefaultValidator, */
52 const wxString& name = wxSliderNameStr);
53 ~wxSlider(void);
debe6624
JS
54 bool Create(wxWindow *parent, wxWindowID id,
55 int value, int minValue, int maxValue,
c801d85f
KB
56 const wxPoint& pos = wxDefaultPosition,
57 const wxSize& size = wxDefaultSize,
debe6624 58 long style = wxSL_HORIZONTAL,
c801d85f
KB
59/* const wxValidator& validator = wxDefaultValidator, */
60 const wxString& name = wxSliderNameStr);
61 virtual int GetValue(void) const;
debe6624 62 virtual void SetValue( int );
c801d85f 63 void GetSize( int *x, int *y ) const;
debe6624 64 void SetSize( int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO );
c801d85f 65 void GetPosition( int *x, int *y ) const;
debe6624 66 void SetRange( int minValue, int maxValue );
c801d85f
KB
67 int GetMin(void) const;
68 int GetMax(void) const;
debe6624 69 void SetTickFreq( int n, int pos );
c801d85f 70 int GetTickFreq(void) const;
debe6624 71 void SetPageSize( int pageSize );
c801d85f
KB
72 int GetPageSize(void) const;
73 void ClearSel(void);
74 void ClearTicks(void);
debe6624 75 void SetLineSize( int lineSize );
c801d85f
KB
76 int GetLineSize(void) const;
77 int GetSelEnd(void) const;
78 int GetSelStart(void) const;
debe6624
JS
79 void SetSelection( int minPos, int maxPos );
80 void SetThumbLength( int len );
c801d85f 81 int GetThumbLength(void) const;
debe6624 82 void SetTick( int tickPos );
c801d85f
KB
83
84 public:
85
86 GtkAdjustment *m_adjust;
87 float m_oldPos;
88
89};
90
91#endif // __GTKSLIDERH__