1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface defs for wxScrollBar
7 // Created: 10-June-1998
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
16 //---------------------------------------------------------------------------
18 MAKE_CONST_WXSTRING(ScrollBarNameStr);
20 //---------------------------------------------------------------------------
23 class wxScrollBar : public wxControl {
25 %pythonAppend wxScrollBar "self._setOORInfo(self)"
26 %pythonAppend wxScrollBar() ""
28 wxScrollBar(wxWindow* parent, wxWindowID id = -1,
29 const wxPoint& pos = wxDefaultPosition,
30 const wxSize& size = wxDefaultSize,
31 long style = wxSB_HORIZONTAL,
32 const wxValidator& validator = wxDefaultValidator,
33 const wxString& name = wxPyScrollBarNameStr);
34 %name(PreScrollBar)wxScrollBar();
36 bool Create(wxWindow* parent, wxWindowID id = -1,
37 const wxPoint& pos = wxDefaultPosition,
38 const wxSize& size = wxDefaultSize,
39 long style = wxSB_HORIZONTAL,
40 const wxValidator& validator = wxDefaultValidator,
41 const wxString& name = wxPyScrollBarNameStr);
43 virtual int GetThumbPosition() const;
44 virtual int GetThumbSize() const;
45 %pythoncode { GetThumbLength = GetThumbSize };
46 virtual int GetPageSize() const;
47 virtual int GetRange() const;
49 bool IsVertical() const { return (m_windowStyle & wxVERTICAL) != 0; }
51 virtual void SetThumbPosition(int viewStart);
52 virtual void SetScrollbar(int position, int thumbSize,
53 int range, int pageSize,
57 //---------------------------------------------------------------------------