1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/bmpbutton.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __BMPBUTTONH__
12 #define __BMPBUTTONH__
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
18 class WXDLLIMPEXP_CORE wxBitmapButton
: public wxBitmapButtonBase
21 wxBitmapButton() { Init(); }
23 wxBitmapButton(wxWindow
*parent
,
25 const wxBitmap
& bitmap
,
26 const wxPoint
& pos
= wxDefaultPosition
,
27 const wxSize
& size
= wxDefaultSize
,
28 long style
= wxBU_AUTODRAW
,
29 const wxValidator
& validator
= wxDefaultValidator
,
30 const wxString
& name
= wxButtonNameStr
)
34 Create(parent
, id
, bitmap
, pos
, size
, style
, validator
, name
);
37 bool Create(wxWindow
*parent
,
39 const wxBitmap
& bitmap
,
40 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxSize
& size
= wxDefaultSize
,
42 long style
= wxBU_AUTODRAW
,
43 const wxValidator
& validator
= wxDefaultValidator
,
44 const wxString
& name
= wxButtonNameStr
);
46 void SetLabel( const wxString
&label
);
47 wxString
GetLabel() const;
48 virtual void SetLabel( const wxBitmap
& bitmap
) { SetBitmapLabel(bitmap
); }
50 virtual void SetDefault();
51 virtual bool Enable(bool enable
= TRUE
);
60 void DoApplyWidgetStyle(GtkRcStyle
*style
);
66 virtual void OnSetBitmap();
67 virtual wxSize
DoGetBestSize() const;
72 DECLARE_DYNAMIC_CLASS(wxBitmapButton
)
75 #endif // __BMPBUTTONH__