]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_slider.i
Applied patch [ 845171 ] Use transparancy mask in wxBitmapShape
[wxWidgets.git] / wxPython / src / _slider.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: _slider.i
3 // Purpose: SWIG interface defs for wxSlider
4 //
5 // Author: Robin Dunn
6 //
7 // Created: 10-June-1998
8 // RCS-ID: $Id$
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
12
13 // Not a %module
14
15
16 //---------------------------------------------------------------------------
17
18 %{
19 #include <wx/slider.h>
20
21 DECLARE_DEF_STRING(SliderNameStr);
22 %}
23
24 //---------------------------------------------------------------------------
25 %newgroup
26
27 class wxSlider : public wxControl {
28 public:
29 %addtofunc wxSlider "self._setOORInfo(self)"
30 %addtofunc wxSlider() ""
31
32 wxSlider(wxWindow* parent, wxWindowID id,
33 int value, int minValue, int maxValue,
34 const wxPoint& point = wxDefaultPosition,
35 const wxSize& size = wxDefaultSize,
36 long style = wxSL_HORIZONTAL,
37 const wxValidator& validator = wxDefaultValidator,
38 const wxString& name = wxPySliderNameStr);
39 %name(PreSlider)wxSlider();
40
41 bool Create(wxWindow* parent, wxWindowID id,
42 int value, int minValue, int maxValue,
43 const wxPoint& point = wxDefaultPosition,
44 const wxSize& size = wxDefaultSize,
45 long style = wxSL_HORIZONTAL,
46 const wxValidator& validator = wxDefaultValidator,
47 const wxString& name = wxPySliderNameStr);
48
49 // get/set the current slider value (should be in range)
50 virtual int GetValue() const;
51 virtual void SetValue(int value);
52
53 // retrieve/change the range
54 virtual void SetRange(int minValue, int maxValue);
55 virtual int GetMin() const;
56 virtual int GetMax() const;
57
58 void SetMin( int minValue );
59 void SetMax( int maxValue );
60
61 // the line/page size is the increment by which the slider moves when
62 // cursor arrow key/page up or down are pressed (clicking the mouse is like
63 // pressing PageUp/Down) and are by default set to 1 and 1/10 of the range
64 virtual void SetLineSize(int lineSize);
65 virtual void SetPageSize(int pageSize);
66 virtual int GetLineSize() const;
67 virtual int GetPageSize() const;
68
69 // these methods get/set the length of the slider pointer in pixels
70 virtual void SetThumbLength(int lenPixels);
71 virtual int GetThumbLength() const;
72
73 virtual void SetTickFreq(int n, int pos);
74 virtual int GetTickFreq() const;
75 virtual void ClearTicks();
76 virtual void SetTick(int tickPos);
77
78 virtual void ClearSel();
79 virtual int GetSelEnd() const;
80 virtual int GetSelStart() const;
81 virtual void SetSelection(int min, int max);
82
83 };
84
85 //---------------------------------------------------------------------------