]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/scrolbar.h
Applied rowspan patch #15276 (dghart)
[wxWidgets.git] / include / wx / gtk / scrolbar.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/gtk/scrolbar.h
c801d85f
KB
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
KB
13//-----------------------------------------------------------------------------
14// wxScrollBar
15//-----------------------------------------------------------------------------
16
20123d49 17class WXDLLIMPEXP_CORE wxScrollBar: public wxScrollBarBase
c801d85f 18{
20e05ffb 19public:
add7cadd 20 wxScrollBar();
6de97a3b 21 inline wxScrollBar( wxWindow *parent, wxWindowID id,
c801d85f
KB
22 const wxPoint& pos = wxDefaultPosition,
23 const wxSize& size = wxDefaultSize,
debe6624 24 long style = wxSB_HORIZONTAL,
6de97a3b
RR
25 const wxValidator& validator = wxDefaultValidator,
26 const wxString& name = wxScrollBarNameStr )
27 {
9826157f 28 Create( parent, id, pos, size, style, validator, name );
6de97a3b
RR
29 }
30 bool Create( wxWindow *parent, wxWindowID id,
c801d85f
KB
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize,
debe6624 33 long style = wxSB_HORIZONTAL,
6de97a3b
RR
34 const wxValidator& validator = wxDefaultValidator,
35 const wxString& name = wxScrollBarNameStr );
d3c7fc99 36 virtual ~wxScrollBar();
9826157f 37 int GetThumbPosition() const;
c801d85f
KB
38 int GetThumbSize() const;
39 int GetPageSize() const;
40 int GetRange() const;
4fabb575 41 virtual void SetThumbPosition( int viewStart );
debe6624 42 virtual void SetScrollbar( int position, int thumbSize, int range, int pageSize,
add7cadd 43 bool refresh = true );
c801d85f 44
add7cadd 45 void SetThumbSize(int thumbSize);
debe6624 46 void SetPageSize( int pageLength );
add7cadd 47 void SetRange(int range);
debe6624 48
9d522606
RD
49 static wxVisualAttributes
50 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
03647350 51
20e05ffb 52 DECLARE_DYNAMIC_CLASS(wxScrollBar)
c801d85f
KB
53};
54
ef5c70f9 55#endif // _WX_GTK_SCROLLBAR_H_