1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/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 virtual void SetLabel( const wxBitmap
& bitmap
) { SetBitmapLabel(bitmap
); }
49 virtual bool Enable(bool enable
= TRUE
);
54 void GTKSetHasFocus();
55 void GTKSetNotFocus();
58 void DoApplyWidgetStyle(GtkRcStyle
*style
);
64 virtual void OnSetBitmap();
65 virtual wxSize
DoGetBestSize() const;
70 DECLARE_DYNAMIC_CLASS(wxBitmapButton
)
73 #endif // __BMPBUTTONH__