]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/scrolbar.h
[ 1522987 ] wxComboCtrl crashes if TAB is pressed while popup is open
[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
c801d85f
KB
10#ifndef __GTKSCROLLBARH__
11#define __GTKSCROLLBARH__
12
c801d85f 13#include "wx/defs.h"
dcf924a3 14
c801d85f
KB
15//-----------------------------------------------------------------------------
16// classes
17//-----------------------------------------------------------------------------
18
20123d49 19class WXDLLIMPEXP_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 );
9826157f
RR
44 ~wxScrollBar();
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);
59
20e05ffb
RR
60 // implementation
61 // --------------
1e6feb95 62
b4071e91 63 bool IsOwnGtkWindow( GdkWindow *window );
1e6feb95 64
20e05ffb
RR
65private:
66 DECLARE_DYNAMIC_CLASS(wxScrollBar)
c801d85f
KB
67};
68
69#endif
70 // __GTKSCROLLBARH__