1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/bmpbuttn.h
3 // Purpose: wxBitmapButton class
4 // Author: Stefan Csomor
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_OSX_BMPBUTTN_H_
12 #define _WX_OSX_BMPBUTTN_H_
14 #include "wx/button.h"
16 #define wxDEFAULT_BUTTON_MARGIN 4
18 class WXDLLIMPEXP_CORE wxBitmapButton
: public wxBitmapButtonBase
23 SetMargins(wxDEFAULT_BUTTON_MARGIN
, wxDEFAULT_BUTTON_MARGIN
);
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
)
32 Create(parent
, id
, bitmap
, pos
, size
, style
, validator
, name
);
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
);
43 virtual wxSize
DoGetBestSize() const;
45 DECLARE_DYNAMIC_CLASS(wxBitmapButton
)
48 #endif // _WX_OSX_BMPBUTTN_H_