]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/button.h
Added Set/GetItemState, GetNextItem.. to wxTreeCtrl
[wxWidgets.git] / include / wx / gtk / button.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: button.h
3// Purpose:
4// Author: Robert Roebling
5// Created: 01/02/97
6// Id:
7// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11
12#ifndef __GTKBUTTONH__
13#define __GTKBUTTONH__
14
15#ifdef __GNUG__
16#pragma interface
17#endif
18
19#include "wx/defs.h"
20#include "wx/object.h"
21#include "wx/list.h"
22#include "wx/control.h"
23
24//-----------------------------------------------------------------------------
25// classes
26//-----------------------------------------------------------------------------
27
28class wxButton;
29
30//-----------------------------------------------------------------------------
31// global data
32//-----------------------------------------------------------------------------
33
34extern const char *wxButtonNameStr;
35
36//-----------------------------------------------------------------------------
37// wxButton
38//-----------------------------------------------------------------------------
39
40class wxButton: public wxControl
41{
42 DECLARE_DYNAMIC_CLASS(wxButton)
43
44 public:
45
46 wxButton(void);
6de97a3b
RR
47 inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
48 const wxPoint& pos = wxDefaultPosition,
49 const wxSize& size = wxDefaultSize, long style = 0,
50 const wxValidator& validator = wxDefaultValidator,
51 const wxString& name = wxButtonNameStr)
52 {
53 Create(parent, id, label, pos, size, style, validator, name);
54 }
55 bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
56 const wxPoint& pos = wxDefaultPosition,
57 const wxSize& size = wxDefaultSize, long style = 0,
58 const wxValidator& validator = wxDefaultValidator,
59 const wxString& name = wxButtonNameStr);
c801d85f
KB
60 void SetDefault(void);
61 void SetLabel( const wxString &label );
a9c96bcc 62 void Enable( bool enable );
c801d85f
KB
63};
64
65#endif // __GTKBUTTONH__