]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_scrolbar.i
Better conversion functions for integral and floating point types,
[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
23class wxScrollBar : public wxControl {
24public:
2b9048c5
RD
25 %pythonAppend wxScrollBar "self._setOORInfo(self)"
26 %pythonAppend wxScrollBar() ""
d14a1e28
RD
27
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();
35
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);
42
43 virtual int GetThumbPosition() const;
44 virtual int GetThumbSize() const;
45 %pythoncode { GetThumbLength = GetThumbSize };
46 virtual int GetPageSize() const;
47 virtual int GetRange() const;
48
49 bool IsVertical() const { return (m_windowStyle & wxVERTICAL) != 0; }
50
51 virtual void SetThumbPosition(int viewStart);
52 virtual void SetScrollbar(int position, int thumbSize,
53 int range, int pageSize,
dd9f7fea 54 bool refresh = True);
d14a1e28
RD
55};
56
57//---------------------------------------------------------------------------