1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxStaticBitmap class interface
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2000 Vadim Zeitlin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_STATBMP_H_BASE_
12 #define _WX_STATBMP_H_BASE_
18 #include "wx/control.h"
19 #include "wx/bitmap.h"
22 extern WXDLLIMPEXP_DATA_CORE(const char) wxStaticBitmapNameStr
[];
24 // a control showing an icon or a bitmap
25 class WXDLLIMPEXP_CORE wxStaticBitmapBase
: public wxControl
28 wxStaticBitmapBase() { }
29 virtual ~wxStaticBitmapBase();
32 virtual void SetIcon(const wxIcon
& icon
) = 0;
33 virtual void SetBitmap(const wxBitmap
& bitmap
) = 0;
34 virtual wxBitmap
GetBitmap() const = 0;
35 virtual wxIcon
GetIcon() const /* = 0 -- should be pure virtual */
37 // stub it out here for now as not all ports implement it (but they
42 // overridden base class virtuals
43 virtual bool AcceptsFocus() const { return false; }
44 virtual bool HasTransparentBackground() { return true; }
47 // choose the default border for this window
48 virtual wxBorder
GetDefaultBorder() const { return wxBORDER_NONE
; }
50 virtual wxSize
DoGetBestSize() const;
52 wxDECLARE_NO_COPY_CLASS(wxStaticBitmapBase
);
55 #if defined(__WXUNIVERSAL__)
56 #include "wx/univ/statbmp.h"
57 #elif defined(__WXMSW__)
58 #include "wx/msw/statbmp.h"
59 #elif defined(__WXMOTIF__)
60 #include "wx/motif/statbmp.h"
61 #elif defined(__WXGTK20__)
62 #include "wx/gtk/statbmp.h"
63 #elif defined(__WXGTK__)
64 #include "wx/gtk1/statbmp.h"
65 #elif defined(__WXMAC__)
66 #include "wx/osx/statbmp.h"
67 #elif defined(__WXCOCOA__)
68 #include "wx/cocoa/statbmp.h"
69 #elif defined(__WXPM__)
70 #include "wx/os2/statbmp.h"
73 #endif // wxUSE_STATBMP
76 // _WX_STATBMP_H_BASE_