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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
18 // ----------------------------------------------------------------------------
20 // ----------------------------------------------------------------------------
22 class wxBitmapButton
: public wxBitmapButtonBase
25 wxBitmapButton() { Init(); }
27 wxBitmapButton(wxWindow
*parent
,
29 const wxBitmap
& bitmap
,
30 const wxPoint
& pos
= wxDefaultPosition
,
31 const wxSize
& size
= wxDefaultSize
,
32 long style
= wxBU_AUTODRAW
,
33 const wxValidator
& validator
= wxDefaultValidator
,
34 const wxString
& name
= wxButtonNameStr
)
38 Create(parent
, id
, bitmap
, pos
, size
, style
, validator
, name
);
41 bool Create(wxWindow
*parent
,
43 const wxBitmap
& bitmap
,
44 const wxPoint
& pos
= wxDefaultPosition
,
45 const wxSize
& size
= wxDefaultSize
,
46 long style
= wxBU_AUTODRAW
,
47 const wxValidator
& validator
= wxDefaultValidator
,
48 const wxString
& name
= wxButtonNameStr
);
50 void SetLabel( const wxString
&label
);
51 wxString
GetLabel() const;
52 virtual void SetLabel( const wxBitmap
& bitmap
) { SetBitmapLabel(bitmap
); }
54 virtual void SetDefault();
55 virtual bool Enable(bool enable
= TRUE
);
64 void DoApplyWidgetStyle(GtkRcStyle
*style
);
70 virtual void OnSetBitmap();
71 virtual wxSize
DoGetBestSize() const;
76 DECLARE_DYNAMIC_CLASS(wxBitmapButton
)
79 #endif // __BMPBUTTONH__