]> git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/button.h
Convert image tags to text using their alt attribute in wxHTML.
[wxWidgets.git] / include / wx / motif / button.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/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 // Pushbutton
16 class WXDLLIMPEXP_CORE wxButton: public wxButtonBase
17 {
18 public:
19 wxButton() { }
20 wxButton(wxWindow *parent,
21 wxWindowID id,
22 const wxString& label = wxEmptyString,
23 const wxPoint& pos = wxDefaultPosition,
24 const wxSize& size = wxDefaultSize, long style = 0,
25 const wxValidator& validator = wxDefaultValidator,
26 const wxString& name = wxButtonNameStr)
27 {
28 Create(parent, id, label, pos, size, style, validator, name);
29 }
30
31 bool Create(wxWindow *parent, wxWindowID id,
32 const wxString& label = wxEmptyString,
33 const wxPoint& pos = wxDefaultPosition,
34 const wxSize& size = wxDefaultSize, long style = 0,
35 const wxValidator& validator = wxDefaultValidator,
36 const wxString& name = wxButtonNameStr);
37
38 virtual wxWindow *SetDefault();
39 virtual void Command(wxCommandEvent& event);
40
41 static wxSize GetDefaultSize();
42
43 // Implementation
44 virtual wxSize GetMinSize() const;
45
46 protected:
47 virtual wxSize DoGetBestSize() const;
48
49 private:
50 wxSize OldGetBestSize() const;
51 wxSize OldGetMinSize() const;
52 void SetDefaultShadowThicknessAndResize();
53
54 DECLARE_DYNAMIC_CLASS(wxButton)
55 };
56
57 #endif // _WX_BUTTON_H_