1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface defs for wxSlider
7 // Created: 10-June-1998
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
16 //---------------------------------------------------------------------------
19 #include <wx/slider.h>
21 DECLARE_DEF_STRING(SliderNameStr);
24 //---------------------------------------------------------------------------
27 class wxSlider : public wxControl {
29 %addtofunc wxSlider "self._setOORInfo(self)"
30 %addtofunc wxSlider() ""
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();
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);
49 // get/set the current slider value (should be in range)
50 virtual int GetValue() const;
51 virtual void SetValue(int value);
53 // retrieve/change the range
54 virtual void SetRange(int minValue, int maxValue);
55 virtual int GetMin() const;
56 virtual int GetMax() const;
58 void SetMin( int minValue );
59 void SetMax( int maxValue );
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;
69 // these methods get/set the length of the slider pointer in pixels
70 virtual void SetThumbLength(int lenPixels);
71 virtual int GetThumbLength() const;
73 virtual void SetTickFreq(int n, int pos);
74 virtual int GetTickFreq() const;
75 virtual void ClearTicks();
76 virtual void SetTick(int tickPos);
78 virtual void ClearSel();
79 virtual int GetSelEnd() const;
80 virtual int GetSelStart() const;
81 virtual void SetSelection(int min, int max);
85 //---------------------------------------------------------------------------