1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxBitmapButton class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_OSX_BMPBUTTN_H_
13 #define _WX_OSX_BMPBUTTN_H_
15 #include "wx/button.h"
17 #define wxDEFAULT_BUTTON_MARGIN 4
19 class WXDLLIMPEXP_CORE wxBitmapButton
: public wxBitmapButtonBase
24 SetMargins(wxDEFAULT_BUTTON_MARGIN
, wxDEFAULT_BUTTON_MARGIN
);
27 wxBitmapButton(wxWindow
*parent
, wxWindowID id
, const wxBitmap
& bitmap
,
28 const wxPoint
& pos
= wxDefaultPosition
,
29 const wxSize
& size
= wxDefaultSize
, long style
= wxBU_AUTODRAW
,
30 const wxValidator
& validator
= wxDefaultValidator
,
31 const wxString
& name
= wxButtonNameStr
)
33 Create(parent
, id
, bitmap
, pos
, size
, style
, validator
, name
);
36 bool Create(wxWindow
*parent
, wxWindowID id
, const wxBitmap
& bitmap
,
37 const wxPoint
& pos
= wxDefaultPosition
,
38 const wxSize
& size
= wxDefaultSize
, long style
= wxBU_AUTODRAW
,
39 const wxValidator
& validator
= wxDefaultValidator
,
40 const wxString
& name
= wxButtonNameStr
);
43 virtual wxSize
DoGetBestSize() const;
45 virtual void DoSetBitmap(const wxBitmap
& bitmap
, State which
);
47 DECLARE_DYNAMIC_CLASS(wxBitmapButton
)
50 #endif // _WX_OSX_BMPBUTTN_H_