]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_scrolbar.i
Don't depend on the default formatting of wx.DateTime objects for
[wxWidgets.git] / wxPython / src / _scrolbar.i
CommitLineData
d14a1e28
RD
1/////////////////////////////////////////////////////////////////////////////
2// Name: _scrolbar.i
3// Purpose: SWIG interface defs for wxScrollBar
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
b2dc1044 18MAKE_CONST_WXSTRING(ScrollBarNameStr);
d14a1e28
RD
19
20//---------------------------------------------------------------------------
21%newgroup
22
ab1f7d2a
RD
23MustHaveApp(wxScrollBar);
24
d14a1e28
RD
25class wxScrollBar : public wxControl {
26public:
2b9048c5
RD
27 %pythonAppend wxScrollBar "self._setOORInfo(self)"
28 %pythonAppend wxScrollBar() ""
d14a1e28
RD
29
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);
1b8c7ba6 36 %RenameCtor(PreScrollBar, wxScrollBar());
d14a1e28
RD
37
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);
44
45 virtual int GetThumbPosition() const;
46 virtual int GetThumbSize() const;
47 %pythoncode { GetThumbLength = GetThumbSize };
48 virtual int GetPageSize() const;
49 virtual int GetRange() const;
50
51 bool IsVertical() const { return (m_windowStyle & wxVERTICAL) != 0; }
52
53 virtual void SetThumbPosition(int viewStart);
54 virtual void SetScrollbar(int position, int thumbSize,
55 int range, int pageSize,
a72f4631 56 bool refresh = true);
880715c9
RD
57
58 static wxVisualAttributes
59 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
d14a1e28
RD
60};
61
62//---------------------------------------------------------------------------