]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/bmpbuttn.h
Destroy the wxDialog::ShowWindowModalThenDo() functor a.s.a.p.
[wxWidgets.git] / include / wx / osx / bmpbuttn.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/bmpbuttn.h
3 // Purpose: wxBitmapButton class
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 1998-01-01
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_OSX_BMPBUTTN_H_
12 #define _WX_OSX_BMPBUTTN_H_
13
14 #include "wx/button.h"
15
16 #define wxDEFAULT_BUTTON_MARGIN 4
17
18 class WXDLLIMPEXP_CORE wxBitmapButton : public wxBitmapButtonBase
19 {
20 public:
21 wxBitmapButton()
22 {
23 SetMargins(wxDEFAULT_BUTTON_MARGIN, wxDEFAULT_BUTTON_MARGIN);
24 }
25
26 wxBitmapButton(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
27 const wxPoint& pos = wxDefaultPosition,
28 const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
29 const wxValidator& validator = wxDefaultValidator,
30 const wxString& name = wxButtonNameStr)
31 {
32 Create(parent, id, bitmap, pos, size, style, validator, name);
33 }
34
35 bool Create(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
36 const wxPoint& pos = wxDefaultPosition,
37 const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
38 const wxValidator& validator = wxDefaultValidator,
39 const wxString& name = wxButtonNameStr);
40
41 protected:
42
43 virtual wxSize DoGetBestSize() const;
44
45 DECLARE_DYNAMIC_CLASS(wxBitmapButton)
46 };
47
48 #endif // _WX_OSX_BMPBUTTN_H_