]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | ///////////////////////////////////////////////////////////////////////////// |
29149a64 | 2 | // Name: wx/gtk/bmpbutton.h |
c801d85f KB |
3 | // Purpose: |
4 | // Author: Robert Roebling | |
dbf858b5 | 5 | // Id: $Id$ |
01111366 | 6 | // Copyright: (c) 1998 Robert Roebling |
65571936 | 7 | // Licence: wxWindows licence |
c801d85f KB |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
6fba6c78 VS |
10 | #ifndef _WX_GTK_BMPBUTTON_H_ |
11 | #define _WX_GTK_BMPBUTTON_H_ | |
c801d85f | 12 | |
1e6feb95 | 13 | // ---------------------------------------------------------------------------- |
c801d85f | 14 | // wxBitmapButton |
1e6feb95 | 15 | // ---------------------------------------------------------------------------- |
c801d85f | 16 | |
c37dd6da | 17 | class WXDLLIMPEXP_CORE wxBitmapButton : public wxBitmapButtonBase |
151ccd11 | 18 | { |
43a18898 | 19 | public: |
c37dd6da | 20 | wxBitmapButton() { } |
c3dfaa10 | 21 | |
1e6feb95 VZ |
22 | wxBitmapButton(wxWindow *parent, |
23 | wxWindowID id, | |
24 | const wxBitmap& bitmap, | |
25 | const wxPoint& pos = wxDefaultPosition, | |
26 | const wxSize& size = wxDefaultSize, | |
c37dd6da | 27 | long style = 0, |
1e6feb95 VZ |
28 | const wxValidator& validator = wxDefaultValidator, |
29 | const wxString& name = wxButtonNameStr) | |
738f9e5a RR |
30 | { |
31 | Create(parent, id, bitmap, pos, size, style, validator, name); | |
32 | } | |
c3dfaa10 | 33 | |
1e6feb95 VZ |
34 | bool Create(wxWindow *parent, |
35 | wxWindowID id, | |
36 | const wxBitmap& bitmap, | |
37 | const wxPoint& pos = wxDefaultPosition, | |
38 | const wxSize& size = wxDefaultSize, | |
c37dd6da | 39 | long style = 0, |
1e6feb95 | 40 | const wxValidator& validator = wxDefaultValidator, |
c37dd6da VZ |
41 | const wxString& name = wxButtonNameStr) |
42 | { | |
43 | if ( !wxBitmapButtonBase::Create(parent, id, "", | |
a2117591 VZ |
44 | pos, size, |
45 | style | wxBU_NOTEXT, | |
c37dd6da VZ |
46 | validator, name) ) |
47 | return false; | |
c3dfaa10 | 48 | |
c37dd6da | 49 | SetBitmapLabel(bitmap); |
6fba6c78 | 50 | |
c37dd6da VZ |
51 | return true; |
52 | } | |
6fba6c78 | 53 | |
738f9e5a | 54 | DECLARE_DYNAMIC_CLASS(wxBitmapButton) |
151ccd11 | 55 | }; |
43a18898 | 56 | |
6fba6c78 | 57 | #endif // _WX_GTK_BMPBUTTON_H_ |