1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKSCROLLBARH__
11 #define __GTKSCROLLBARH__
15 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxScrollBar
;
21 //-----------------------------------------------------------------------------
23 //-----------------------------------------------------------------------------
25 class WXDLLIMPEXP_CORE wxScrollBar
: public wxScrollBarBase
29 inline wxScrollBar( 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
)
36 Create( parent
, id
, pos
, size
, style
, validator
, name
);
38 bool Create( wxWindow
*parent
, wxWindowID id
,
39 const wxPoint
& pos
= wxDefaultPosition
,
40 const wxSize
& size
= wxDefaultSize
,
41 long style
= wxSB_HORIZONTAL
,
42 const wxValidator
& validator
= wxDefaultValidator
,
43 const wxString
& name
= wxScrollBarNameStr
);
45 int GetThumbPosition() const;
46 int GetThumbSize() const;
47 int GetPageSize() const;
49 virtual void SetThumbPosition( int viewStart
);
50 virtual void SetScrollbar( int position
, int thumbSize
, int range
, int pageSize
,
51 bool refresh
= true );
53 void SetThumbSize(int thumbSize
);
54 void SetPageSize( int pageLength
);
55 void SetRange(int range
);
57 static wxVisualAttributes
58 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
63 bool IsOwnGtkWindow( GdkWindow
*window
);
66 DECLARE_DYNAMIC_CLASS(wxScrollBar
)