]>
git.saurik.com Git - wxWidgets.git/blob - src/qt/scrolbar.cpp
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "scrolbar.h"
16 #include "wx/scrolbar.h"
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
23 IMPLEMENT_DYNAMIC_CLASS(wxScrollBar
,wxControl
)
25 wxScrollBar::wxScrollBar(wxWindow
*parent
, wxWindowID id
,
26 const wxPoint
& pos
, const wxSize
& size
,
27 long style
, const wxString
& name
)
29 Create( parent
, id
, pos
, size
, style
, name
);
32 wxScrollBar::~wxScrollBar(void)
36 bool wxScrollBar::Create(wxWindow
*parent
, wxWindowID id
,
37 const wxPoint
& pos
, const wxSize
& size
,
38 long style
, const wxString
& name
)
43 int wxScrollBar::GetPosition(void) const
47 int wxScrollBar::GetThumbSize() const
51 int wxScrollBar::GetPageSize() const
55 int wxScrollBar::GetRange() const
59 void wxScrollBar::SetPosition( int viewStart
)
63 void wxScrollBar::SetScrollbar( int position
, int thumbSize
, int range
, int pageSize
,
64 bool WXUNUSED(refresh
) )
68 // Backward compatibility
69 int wxScrollBar::GetValue(void) const
74 void wxScrollBar::SetValue( int viewStart
)
76 SetPosition( viewStart
);
79 void wxScrollBar::GetValues( int *viewStart
, int *viewLength
, int *objectLength
, int *pageLength
) const
83 int wxScrollBar::GetViewLength() const
87 int wxScrollBar::GetObjectLength() const
91 void wxScrollBar::SetPageSize( int pageLength
)
95 void wxScrollBar::SetObjectLength( int objectLength
)
99 void wxScrollBar::SetViewLength( int viewLength
)