]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/scrolbar.h
Add support for auto-orientable toolbars to AUI.
[wxWidgets.git] / include / wx / gtk / scrolbar.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: scrolbar.h
3// Purpose:
4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
ef5c70f9
VZ
10#ifndef _WX_GTK_SCROLLBAR_H_
11#define _WX_GTK_SCROLLBAR_H_
c801d85f 12
c801d85f 13#include "wx/defs.h"
dcf924a3 14
c801d85f
KB
15//-----------------------------------------------------------------------------
16// classes
17//-----------------------------------------------------------------------------
18
b5dbe15d 19class WXDLLIMPEXP_FWD_CORE wxScrollBar;
c801d85f 20
c801d85f
KB
21//-----------------------------------------------------------------------------
22// wxScrollBar
23//-----------------------------------------------------------------------------
24
20123d49 25class WXDLLIMPEXP_CORE wxScrollBar: public wxScrollBarBase
c801d85f 26{
20e05ffb 27public:
add7cadd 28 wxScrollBar();
6de97a3b 29 inline wxScrollBar( wxWindow *parent, wxWindowID id,
c801d85f
KB
30 const wxPoint& pos = wxDefaultPosition,
31 const wxSize& size = wxDefaultSize,
debe6624 32 long style = wxSB_HORIZONTAL,
6de97a3b
RR
33 const wxValidator& validator = wxDefaultValidator,
34 const wxString& name = wxScrollBarNameStr )
35 {
9826157f 36 Create( parent, id, pos, size, style, validator, name );
6de97a3b
RR
37 }
38 bool Create( wxWindow *parent, wxWindowID id,
c801d85f
KB
39 const wxPoint& pos = wxDefaultPosition,
40 const wxSize& size = wxDefaultSize,
debe6624 41 long style = wxSB_HORIZONTAL,
6de97a3b
RR
42 const wxValidator& validator = wxDefaultValidator,
43 const wxString& name = wxScrollBarNameStr );
d3c7fc99 44 virtual ~wxScrollBar();
9826157f 45 int GetThumbPosition() const;
c801d85f
KB
46 int GetThumbSize() const;
47 int GetPageSize() const;
48 int GetRange() const;
4fabb575 49 virtual void SetThumbPosition( int viewStart );
debe6624 50 virtual void SetScrollbar( int position, int thumbSize, int range, int pageSize,
add7cadd 51 bool refresh = true );
c801d85f 52
add7cadd 53 void SetThumbSize(int thumbSize);
debe6624 54 void SetPageSize( int pageLength );
add7cadd 55 void SetRange(int range);
debe6624 56
9d522606
RD
57 static wxVisualAttributes
58 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
03647350 59
ef5c70f9
VZ
60protected:
61 virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
1e6feb95 62
20e05ffb
RR
63private:
64 DECLARE_DYNAMIC_CLASS(wxScrollBar)
c801d85f
KB
65};
66
ef5c70f9 67#endif // _WX_GTK_SCROLLBAR_H_