]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/button.h
Moved the declaration of wxEVT_NULL to event.cpp and made it extern in the header...
[wxWidgets.git] / include / wx / gtk1 / button.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: button.h
3// Purpose:
4// Author: Robert Roebling
dbf858b5 5// Id: $Id$
01111366 6// Copyright: (c) 1998 Robert Roebling
c801d85f
KB
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
c801d85f
KB
10#ifndef __GTKBUTTONH__
11#define __GTKBUTTONH__
12
13#ifdef __GNUG__
14#pragma interface
15#endif
16
17#include "wx/defs.h"
18#include "wx/object.h"
19#include "wx/list.h"
20#include "wx/control.h"
21
22//-----------------------------------------------------------------------------
23// classes
24//-----------------------------------------------------------------------------
25
26class wxButton;
27
28//-----------------------------------------------------------------------------
29// global data
30//-----------------------------------------------------------------------------
31
c980c992 32extern const wxChar *wxButtonNameStr;
c801d85f
KB
33
34//-----------------------------------------------------------------------------
35// wxButton
36//-----------------------------------------------------------------------------
37
38class wxButton: public wxControl
39{
738f9e5a 40public:
fd0eed64 41 wxButton();
6de97a3b
RR
42 inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
43 const wxPoint& pos = wxDefaultPosition,
44 const wxSize& size = wxDefaultSize, long style = 0,
45 const wxValidator& validator = wxDefaultValidator,
46 const wxString& name = wxButtonNameStr)
47 {
48 Create(parent, id, label, pos, size, style, validator, name);
49 }
fd0eed64 50 ~wxButton();
6de97a3b
RR
51 bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
52 const wxPoint& pos = wxDefaultPosition,
53 const wxSize& size = wxDefaultSize, long style = 0,
54 const wxValidator& validator = wxDefaultValidator,
55 const wxString& name = wxButtonNameStr);
42b4e99e 56 virtual void SetDefault();
c801d85f 57 void SetLabel( const wxString &label );
f03fc89f 58 bool Enable( bool enable );
8dbf4589
RR
59
60 static wxSize GetDefaultSize();
fd0eed64 61
20e05ffb
RR
62 // implementation
63 // --------------
58614078
RR
64
65 void ApplyWidgetStyle();
738f9e5a 66
db434467
RR
67protected:
68 virtual wxSize DoGetBestSize() const;
69
738f9e5a
RR
70private:
71 DECLARE_DYNAMIC_CLASS(wxButton)
c801d85f
KB
72};
73
74#endif // __GTKBUTTONH__