]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/qt/scrolbar.h
34041abc0902fe315d3813427ca79b63508d6872
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __GTKSCROLLBARH__
13 #define __GTKSCROLLBARH__
20 #include "wx/object.h"
21 #include "wx/control.h"
23 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
33 extern const char *wxScrollBarNameStr
;
35 //-----------------------------------------------------------------------------
37 //-----------------------------------------------------------------------------
39 class wxScrollBar
: public wxControl
41 DECLARE_DYNAMIC_CLASS(wxScrollBar
)
45 wxScrollBar(void) { };
46 wxScrollBar(wxWindow
*parent
, wxWindowID id
,
47 const wxPoint
& pos
= wxDefaultPosition
,
48 const wxSize
& size
= wxDefaultSize
,
49 long style
= wxSB_HORIZONTAL
,
50 const wxString
& name
= wxScrollBarNameStr
);
52 bool Create(wxWindow
*parent
, wxWindowID id
,
53 const wxPoint
& pos
= wxDefaultPosition
,
54 const wxSize
& size
= wxDefaultSize
,
55 long style
= wxSB_HORIZONTAL
,
56 const wxString
& name
= wxScrollBarNameStr
);
57 int GetPosition(void) const;
58 int GetThumbSize() const;
59 int GetPageSize() const;
61 virtual void SetPosition( int viewStart
);
62 virtual void SetScrollbar( int position
, int thumbSize
, int range
, int pageSize
,
63 bool refresh
= TRUE
);
65 // Backward compatibility
66 int GetValue(void) const;
67 void SetValue( int viewStart
);
68 void GetValues( int *viewStart
, int *viewLength
, int *objectLength
, int *pageLength
) const;
69 int GetViewLength() const;
70 int GetObjectLength() const;
71 void SetPageSize( int pageLength
);
72 void SetObjectLength( int objectLength
);
73 void SetViewLength( int viewLength
);