]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/msw/bmpbuttn.h | |
3 | // Purpose: wxBitmapButton class | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
7 | // Copyright: (c) Julian Smart | |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_BMPBUTTN_H_ | |
12 | #define _WX_BMPBUTTN_H_ | |
13 | ||
14 | #include "wx/button.h" | |
15 | #include "wx/bitmap.h" | |
16 | #include "wx/brush.h" | |
17 | ||
18 | class WXDLLIMPEXP_CORE wxBitmapButton : public wxBitmapButtonBase | |
19 | { | |
20 | public: | |
21 | wxBitmapButton() {} | |
22 | ||
23 | wxBitmapButton(wxWindow *parent, | |
24 | wxWindowID id, | |
25 | const wxBitmap& bitmap, | |
26 | const wxPoint& pos = wxDefaultPosition, | |
27 | const wxSize& size = wxDefaultSize, | |
28 | long style = wxBU_AUTODRAW, | |
29 | const wxValidator& validator = wxDefaultValidator, | |
30 | const wxString& name = wxButtonNameStr) | |
31 | { | |
32 | Create(parent, id, bitmap, pos, size, style, validator, name); | |
33 | } | |
34 | ||
35 | bool Create(wxWindow *parent, | |
36 | wxWindowID id, | |
37 | const wxBitmap& bitmap, | |
38 | const wxPoint& pos = wxDefaultPosition, | |
39 | const wxSize& size = wxDefaultSize, | |
40 | long style = wxBU_AUTODRAW, | |
41 | const wxValidator& validator = wxDefaultValidator, | |
42 | const wxString& name = wxButtonNameStr); | |
43 | ||
44 | protected: | |
45 | DECLARE_EVENT_TABLE() | |
46 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxBitmapButton) | |
47 | }; | |
48 | ||
49 | #endif // _WX_BMPBUTTN_H_ |