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