]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/scrolbar.h
Use CFSocket instead of CFFileDescriptor in wxCFEventLoopSource.
[wxWidgets.git] / include / wx / gtk / scrolbar.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/scrolbar.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_GTK_SCROLLBAR_H_
11 #define _WX_GTK_SCROLLBAR_H_
12
13 //-----------------------------------------------------------------------------
14 // wxScrollBar
15 //-----------------------------------------------------------------------------
16
17 class WXDLLIMPEXP_CORE wxScrollBar: public wxScrollBarBase
18 {
19 public:
20 wxScrollBar();
21 inline wxScrollBar( wxWindow *parent, wxWindowID id,
22 const wxPoint& pos = wxDefaultPosition,
23 const wxSize& size = wxDefaultSize,
24 long style = wxSB_HORIZONTAL,
25 const wxValidator& validator = wxDefaultValidator,
26 const wxString& name = wxScrollBarNameStr )
27 {
28 Create( parent, id, pos, size, style, validator, name );
29 }
30 bool Create( wxWindow *parent, wxWindowID id,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize,
33 long style = wxSB_HORIZONTAL,
34 const wxValidator& validator = wxDefaultValidator,
35 const wxString& name = wxScrollBarNameStr );
36 virtual ~wxScrollBar();
37 int GetThumbPosition() const;
38 int GetThumbSize() const;
39 int GetPageSize() const;
40 int GetRange() const;
41 virtual void SetThumbPosition( int viewStart );
42 virtual void SetScrollbar( int position, int thumbSize, int range, int pageSize,
43 bool refresh = true );
44
45 void SetThumbSize(int thumbSize);
46 void SetPageSize( int pageLength );
47 void SetRange(int range);
48
49 static wxVisualAttributes
50 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
51
52 DECLARE_DYNAMIC_CLASS(wxScrollBar)
53 };
54
55 #endif // _WX_GTK_SCROLLBAR_H_