]>
Commit | Line | Data |
---|---|---|
0dbd6262 SC |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: bmpbuttn.h | |
3 | // Purpose: wxBitmapButton class | |
4 | // Author: AUTHOR | |
5 | // Modified by: | |
6 | // Created: ??/??/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) AUTHOR | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_BMPBUTTN_H_ | |
13 | #define _WX_BMPBUTTN_H_ | |
14 | ||
af49c4b8 | 15 | #if defined(__GNUG__) && !defined(__APPLE__) |
0dbd6262 SC |
16 | #pragma interface "bmpbuttn.h" |
17 | #endif | |
18 | ||
19 | #include "wx/button.h" | |
20 | ||
21 | WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr; | |
22 | ||
23 | #define wxDEFAULT_BUTTON_MARGIN 4 | |
24 | ||
d460ed40 | 25 | class WXDLLEXPORT wxBitmapButton: public wxBitmapButtonBase |
0dbd6262 | 26 | { |
d460ed40 GD |
27 | DECLARE_DYNAMIC_CLASS(wxBitmapButton) |
28 | ||
29 | public: | |
30 | wxBitmapButton() | |
31 | { | |
32 | SetMargins(wxDEFAULT_BUTTON_MARGIN, wxDEFAULT_BUTTON_MARGIN); | |
33 | } | |
34 | ||
35 | wxBitmapButton(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap, | |
36 | const wxPoint& pos = wxDefaultPosition, | |
37 | const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW, | |
38 | const wxValidator& validator = wxDefaultValidator, | |
39 | const wxString& name = wxButtonNameStr) | |
40 | { | |
41 | Create(parent, id, bitmap, pos, size, style, validator, name); | |
42 | } | |
43 | ||
44 | bool Create(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap, | |
45 | const wxPoint& pos = wxDefaultPosition, | |
46 | const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW, | |
47 | const wxValidator& validator = wxDefaultValidator, | |
48 | const wxString& name = wxButtonNameStr); | |
49 | ||
50 | virtual void SetBitmapLabel(const wxBitmap& bitmap); | |
0dbd6262 SC |
51 | |
52 | /* | |
53 | // TODO: Implementation | |
54 | virtual bool MSWOnDraw(WXDRAWITEMSTRUCT *item); | |
55 | virtual void DrawFace( WXHDC dc, int left, int top, int right, int bottom, bool sel ); | |
56 | virtual void DrawButtonFocus( WXHDC dc, int left, int top, int right, int bottom, bool sel ); | |
57 | virtual void DrawButtonDisable( WXHDC dc, int left, int top, int right, int bottom, bool with_marg ); | |
58 | */ | |
0dbd6262 SC |
59 | }; |
60 | ||
61 | #endif | |
62 | // _WX_BMPBUTTN_H_ |