]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | ///////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/gtk/scrolbar.h |
c801d85f KB |
3 | // Purpose: |
4 | // Author: Robert Roebling | |
58614078 | 5 | // Copyright: (c) 1998 Robert Roebling |
65571936 | 6 | // Licence: wxWindows licence |
c801d85f KB |
7 | ///////////////////////////////////////////////////////////////////////////// |
8 | ||
ef5c70f9 VZ |
9 | #ifndef _WX_GTK_SCROLLBAR_H_ |
10 | #define _WX_GTK_SCROLLBAR_H_ | |
c801d85f | 11 | |
c801d85f KB |
12 | //----------------------------------------------------------------------------- |
13 | // wxScrollBar | |
14 | //----------------------------------------------------------------------------- | |
15 | ||
20123d49 | 16 | class WXDLLIMPEXP_CORE wxScrollBar: public wxScrollBarBase |
c801d85f | 17 | { |
20e05ffb | 18 | public: |
add7cadd | 19 | wxScrollBar(); |
6de97a3b | 20 | inline wxScrollBar( wxWindow *parent, wxWindowID id, |
c801d85f KB |
21 | const wxPoint& pos = wxDefaultPosition, |
22 | const wxSize& size = wxDefaultSize, | |
debe6624 | 23 | long style = wxSB_HORIZONTAL, |
6de97a3b RR |
24 | const wxValidator& validator = wxDefaultValidator, |
25 | const wxString& name = wxScrollBarNameStr ) | |
26 | { | |
9826157f | 27 | Create( parent, id, pos, size, style, validator, name ); |
6de97a3b RR |
28 | } |
29 | bool Create( 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 ); | |
d3c7fc99 | 35 | virtual ~wxScrollBar(); |
9826157f | 36 | int GetThumbPosition() const; |
c801d85f KB |
37 | int GetThumbSize() const; |
38 | int GetPageSize() const; | |
39 | int GetRange() const; | |
4fabb575 | 40 | virtual void SetThumbPosition( int viewStart ); |
debe6624 | 41 | virtual void SetScrollbar( int position, int thumbSize, int range, int pageSize, |
add7cadd | 42 | bool refresh = true ); |
c801d85f | 43 | |
add7cadd | 44 | void SetThumbSize(int thumbSize); |
debe6624 | 45 | void SetPageSize( int pageLength ); |
add7cadd | 46 | void SetRange(int range); |
debe6624 | 47 | |
9d522606 RD |
48 | static wxVisualAttributes |
49 | GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); | |
03647350 | 50 | |
20e05ffb | 51 | DECLARE_DYNAMIC_CLASS(wxScrollBar) |
c801d85f KB |
52 | }; |
53 | ||
ef5c70f9 | 54 | #endif // _WX_GTK_SCROLLBAR_H_ |