]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/bmpbuttn.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __BMPBUTTONH__
13 #define __BMPBUTTONH__
20 #include "wx/object.h"
22 #include "wx/control.h"
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
30 //-----------------------------------------------------------------------------
32 //-----------------------------------------------------------------------------
34 extern const char *wxButtonNameStr
;
36 //-----------------------------------------------------------------------------
38 //-----------------------------------------------------------------------------
40 class wxBitmapButton
: public wxControl
42 DECLARE_DYNAMIC_CLASS(wxBitmapButton
)
47 inline wxBitmapButton(wxWindow
*parent
, wxWindowID id
, const wxBitmap
& bitmap
,
48 const wxPoint
& pos
= wxDefaultPosition
,
49 const wxSize
& size
= wxDefaultSize
, long style
= wxBU_AUTODRAW
,
50 const wxValidator
& validator
= wxDefaultValidator
,
51 const wxString
& name
= wxButtonNameStr
)
53 Create(parent
, id
, bitmap
, pos
, size
, style
, validator
, name
);
55 bool Create(wxWindow
*parent
, wxWindowID id
, const wxBitmap
& bitmap
,
56 const wxPoint
& pos
= wxDefaultPosition
,
57 const wxSize
& size
= wxDefaultSize
, long style
= wxBU_AUTODRAW
,
58 const wxValidator
& validator
= wxDefaultValidator
,
59 const wxString
& name
= wxButtonNameStr
);
60 void SetDefault(void);
61 void SetLabel( const wxString
&label
);
62 wxString
GetLabel(void) const;
69 #endif // __BMPBUTTONH__