]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/statbmp.h | |
3 | // Purpose: wxStaticBitmap class interface | |
4 | // Author: Vadim Zeitlin | |
5 | // Modified by: | |
6 | // Created: 25.08.00 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) 2000 Vadim Zeitlin | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_STATBMP_H_BASE_ | |
13 | #define _WX_STATBMP_H_BASE_ | |
14 | ||
15 | #ifdef __GNUG__ | |
16 | #pragma interface "statbmpbase.h" | |
17 | #endif | |
18 | ||
19 | #if wxUSE_STATBMP | |
20 | ||
21 | #include "wx/control.h" | |
22 | #include "wx/bitmap.h" | |
23 | ||
24 | class WXDLLEXPORT wxIcon; | |
25 | class WXDLLEXPORT wxBitmap; | |
26 | ||
27 | WXDLLEXPORT_DATA(extern const wxChar*) wxStaticBitmapNameStr; | |
28 | ||
29 | // a control showing an icon or a bitmap | |
30 | class WXDLLEXPORT wxStaticBitmapBase : public wxControl | |
31 | { | |
32 | public: | |
33 | // our interface | |
34 | virtual void SetIcon(const wxIcon& icon) = 0; | |
35 | virtual void SetBitmap(const wxBitmap& bitmap) = 0; | |
36 | virtual wxBitmap GetBitmap() const = 0; | |
37 | ||
38 | // overriden base class virtuals | |
39 | virtual bool AcceptsFocus() const { return FALSE; } | |
40 | ||
41 | protected: | |
42 | virtual wxSize DoGetBestClientSize() const; | |
43 | }; | |
44 | ||
45 | #if defined(__WXUNIVERSAL__) | |
46 | #include "wx/univ/statbmp.h" | |
47 | #elif defined(__WXMSW__) | |
48 | #include "wx/msw/statbmp.h" | |
49 | #elif defined(__WXMOTIF__) | |
50 | #include "wx/motif/statbmp.h" | |
51 | #elif defined(__WXGTK__) | |
52 | #include "wx/gtk/statbmp.h" | |
53 | #elif defined(__WXQT__) | |
54 | #include "wx/qt/statbmp.h" | |
55 | #elif defined(__WXMAC__) | |
56 | #include "wx/mac/statbmp.h" | |
57 | #elif defined(__WXPM__) | |
58 | #include "wx/os2/statbmp.h" | |
59 | #elif defined(__WXSTUBS__) | |
60 | #include "wx/stubs/statbmp.h" | |
61 | #endif | |
62 | ||
63 | #endif // wxUSE_STATBMP | |
64 | ||
65 | #endif | |
66 | // _WX_STATBMP_H_BASE_ |