]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/bmpbuttn.h
92eda41c8c466f7b4a0ad722885ac115350ba2be
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__
18 // ----------------------------------------------------------------------------
20 // ----------------------------------------------------------------------------
22 class wxBitmapButton
: public wxBitmapButtonBase
26 wxBitmapButton(wxWindow
*parent
,
28 const wxBitmap
& bitmap
,
29 const wxPoint
& pos
= wxDefaultPosition
,
30 const wxSize
& size
= wxDefaultSize
,
31 long style
= wxBU_AUTODRAW
,
32 const wxValidator
& validator
= wxDefaultValidator
,
33 const wxString
& name
= wxButtonNameStr
)
35 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 virtual void SetDefault();
47 virtual bool Enable(bool enable
= TRUE
);
49 void SetLabel( const wxString
&label
);
50 wxString
GetLabel() const;
51 virtual void SetLabel( const wxBitmap
& bitmap
) { SetBitmapLabel(bitmap
); }
60 void ApplyWidgetStyle();
66 virtual void OnSetBitmap();
69 DECLARE_DYNAMIC_CLASS(wxBitmapButton
)
72 #endif // __BMPBUTTONH__