]> git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/button.h
winundef.h serves for other compilators too with STL turned on.
[wxWidgets.git] / include / wx / motif / button.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: button.h
3 // Purpose: wxButton class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 17/09/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_BUTTON_H_
13 #define _WX_BUTTON_H_
14
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "button.h"
17 #endif
18
19 // Pushbutton
20 class WXDLLEXPORT wxButton: public wxButtonBase
21 {
22 DECLARE_DYNAMIC_CLASS(wxButton)
23
24 public:
25 wxButton() { }
26 wxButton(wxWindow *parent,
27 wxWindowID id,
28 const wxString& label = wxEmptyString,
29 const wxPoint& pos = wxDefaultPosition,
30 const wxSize& size = wxDefaultSize, long style = 0,
31 const wxValidator& validator = wxDefaultValidator,
32 const wxString& name = wxButtonNameStr)
33 {
34 Create(parent, id, label, pos, size, style, validator, name);
35 }
36
37 bool Create(wxWindow *parent, wxWindowID id,
38 const wxString& label = wxEmptyString,
39 const wxPoint& pos = wxDefaultPosition,
40 const wxSize& size = wxDefaultSize, long style = 0,
41 const wxValidator& validator = wxDefaultValidator,
42 const wxString& name = wxButtonNameStr);
43
44 virtual void SetDefault();
45 virtual void Command(wxCommandEvent& event);
46
47 static wxSize GetDefaultSize();
48
49 // Implementation
50 private:
51 virtual wxSize DoGetBestSize() const;
52 wxSize OldGetBestSize() const;
53 void SetDefaultShadowThicknessAndResize();
54 };
55
56 #endif
57 // _WX_BUTTON_H_