1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxStaticBitmap class interface
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2000 Vadim Zeitlin
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_STATBMP_H_BASE_
13 #define _WX_STATBMP_H_BASE_
19 #include "wx/control.h"
20 #include "wx/bitmap.h"
22 class WXDLLEXPORT wxIcon
;
23 class WXDLLEXPORT wxBitmap
;
25 extern WXDLLEXPORT_DATA(const wxChar
*) wxStaticBitmapNameStr
;
27 // a control showing an icon or a bitmap
28 class WXDLLEXPORT wxStaticBitmapBase
: public wxControl
31 wxStaticBitmapBase() { }
32 virtual ~wxStaticBitmapBase();
35 virtual void SetIcon(const wxIcon
& icon
) = 0;
36 virtual void SetBitmap(const wxBitmap
& bitmap
) = 0;
37 virtual wxBitmap
GetBitmap() const = 0;
39 // overriden base class virtuals
40 virtual bool AcceptsFocus() const { return false; }
41 virtual bool HasTransparentBackground() { return true; }
44 virtual wxSize
DoGetBestSize() const;
46 DECLARE_NO_COPY_CLASS(wxStaticBitmapBase
)
49 #if defined(__WXUNIVERSAL__)
50 #include "wx/univ/statbmp.h"
51 #elif defined(__WXMSW__)
52 #include "wx/msw/statbmp.h"
53 #elif defined(__WXMOTIF__)
54 #include "wx/motif/statbmp.h"
55 #elif defined(__WXGTK__)
56 #include "wx/gtk/statbmp.h"
57 #elif defined(__WXMAC__)
58 #include "wx/mac/statbmp.h"
59 #elif defined(__WXCOCOA__)
60 #include "wx/cocoa/statbmp.h"
61 #elif defined(__WXPM__)
62 #include "wx/os2/statbmp.h"
65 #endif // wxUSE_STATBMP
68 // _WX_STATBMP_H_BASE_