1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/bmpbutton.h
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __BMPBUTTONH__
11 #define __BMPBUTTONH__
13 // ----------------------------------------------------------------------------
15 // ----------------------------------------------------------------------------
17 class WXDLLIMPEXP_CORE wxBitmapButton
: public wxBitmapButtonBase
20 wxBitmapButton() { Init(); }
22 wxBitmapButton(wxWindow
*parent
,
24 const wxBitmap
& bitmap
,
25 const wxPoint
& pos
= wxDefaultPosition
,
26 const wxSize
& size
= wxDefaultSize
,
27 long style
= wxBU_AUTODRAW
,
28 const wxValidator
& validator
= wxDefaultValidator
,
29 const wxString
& name
= wxButtonNameStr
)
33 Create(parent
, id
, bitmap
, pos
, size
, style
, validator
, name
);
36 bool Create(wxWindow
*parent
,
38 const wxBitmap
& bitmap
,
39 const wxPoint
& pos
= wxDefaultPosition
,
40 const wxSize
& size
= wxDefaultSize
,
41 long style
= wxBU_AUTODRAW
,
42 const wxValidator
& validator
= wxDefaultValidator
,
43 const wxString
& name
= wxButtonNameStr
);
45 void SetLabel( const wxString
&label
);
46 virtual void SetLabel( const wxBitmap
& bitmap
) { SetBitmapLabel(bitmap
); }
48 virtual bool Enable(bool enable
= TRUE
);
53 void GTKSetHasFocus();
54 void GTKSetNotFocus();
57 void DoApplyWidgetStyle(GtkRcStyle
*style
);
63 virtual void OnSetBitmap();
64 virtual wxSize
DoGetBestSize() const;
69 DECLARE_DYNAMIC_CLASS(wxBitmapButton
)
72 #endif // __BMPBUTTONH__