1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/scrolbar.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GTK_SCROLLBAR_H_
11 #define _WX_GTK_SCROLLBAR_H_
13 //-----------------------------------------------------------------------------
15 //-----------------------------------------------------------------------------
17 class WXDLLIMPEXP_CORE wxScrollBar
: public wxScrollBarBase
21 inline wxScrollBar( wxWindow
*parent
, wxWindowID id
,
22 const wxPoint
& pos
= wxDefaultPosition
,
23 const wxSize
& size
= wxDefaultSize
,
24 long style
= wxSB_HORIZONTAL
,
25 const wxValidator
& validator
= wxDefaultValidator
,
26 const wxString
& name
= wxScrollBarNameStr
)
28 Create( parent
, id
, pos
, size
, style
, validator
, name
);
30 bool Create( wxWindow
*parent
, wxWindowID id
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& size
= wxDefaultSize
,
33 long style
= wxSB_HORIZONTAL
,
34 const wxValidator
& validator
= wxDefaultValidator
,
35 const wxString
& name
= wxScrollBarNameStr
);
36 virtual ~wxScrollBar();
37 int GetThumbPosition() const;
38 int GetThumbSize() const;
39 int GetPageSize() const;
41 virtual void SetThumbPosition( int viewStart
);
42 virtual void SetScrollbar( int position
, int thumbSize
, int range
, int pageSize
,
43 bool refresh
= true );
45 void SetThumbSize(int thumbSize
);
46 void SetPageSize( int pageLength
);
47 void SetRange(int range
);
49 static wxVisualAttributes
50 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
52 DECLARE_DYNAMIC_CLASS(wxScrollBar
)
55 #endif // _WX_GTK_SCROLLBAR_H_