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 MustHaveApp(wxScrollBar);
25 class wxScrollBar : public wxControl {
27 %pythonAppend wxScrollBar "self._setOORInfo(self)"
28 %pythonAppend wxScrollBar() ""
30 wxScrollBar(wxWindow* parent, wxWindowID id = -1,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize,
33 long style = wxSB_HORIZONTAL,
34 const wxValidator& validator = wxDefaultValidator,
35 const wxString& name = wxPyScrollBarNameStr);
36 %RenameCtor(PreScrollBar, wxScrollBar());
38 bool Create(wxWindow* parent, wxWindowID id = -1,
39 const wxPoint& pos = wxDefaultPosition,
40 const wxSize& size = wxDefaultSize,
41 long style = wxSB_HORIZONTAL,
42 const wxValidator& validator = wxDefaultValidator,
43 const wxString& name = wxPyScrollBarNameStr);
45 virtual int GetThumbPosition() const;
46 virtual int GetThumbSize() const;
47 %pythoncode { GetThumbLength = GetThumbSize };
48 virtual int GetPageSize() const;
49 virtual int GetRange() const;
51 bool IsVertical() const { return (m_windowStyle & wxVERTICAL) != 0; }
53 virtual void SetThumbPosition(int viewStart);
56 virtual void , SetScrollbar(int position, int thumbSize,
57 int range, int pageSize,
62 static wxVisualAttributes
63 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
65 %property(PageSize, GetPageSize, doc="See `GetPageSize`");
66 %property(Range, GetRange, doc="See `GetRange`");
67 %property(ThumbPosition, GetThumbPosition, SetThumbPosition, doc="See `GetThumbPosition` and `SetThumbPosition`");
68 %property(ThumbSize, GetThumbSize, doc="See `GetThumbSize`");
71 //---------------------------------------------------------------------------