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