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"
23 extern WXDLLIMPEXP_DATA_CORE(const char) wxStaticBitmapNameStr
[];
25 // a control showing an icon or a bitmap
26 class WXDLLIMPEXP_CORE wxStaticBitmapBase
: public wxControl
29 wxStaticBitmapBase() { }
30 virtual ~wxStaticBitmapBase();
33 virtual void SetIcon(const wxIcon
& icon
) = 0;
34 virtual void SetBitmap(const wxBitmap
& bitmap
) = 0;
35 virtual wxBitmap
GetBitmap() const = 0;
36 virtual wxIcon
GetIcon() const /* = 0 -- should be pure virtual */
38 // stub it out here for now as not all ports implement it (but they
43 // overriden base class virtuals
44 virtual bool AcceptsFocus() const { return false; }
45 virtual bool HasTransparentBackground() { return true; }
48 // choose the default border for this window
49 virtual wxBorder
GetDefaultBorder() const { return wxBORDER_NONE
; }
51 virtual wxSize
DoGetBestSize() const;
53 wxDECLARE_NO_COPY_CLASS(wxStaticBitmapBase
);
56 #if defined(__WXUNIVERSAL__)
57 #include "wx/univ/statbmp.h"
58 #elif defined(__WXMSW__)
59 #include "wx/msw/statbmp.h"
60 #elif defined(__WXMOTIF__)
61 #include "wx/motif/statbmp.h"
62 #elif defined(__WXGTK20__)
63 #include "wx/gtk/statbmp.h"
64 #elif defined(__WXGTK__)
65 #include "wx/gtk1/statbmp.h"
66 #elif defined(__WXMAC__)
67 #include "wx/osx/statbmp.h"
68 #elif defined(__WXCOCOA__)
69 #include "wx/cocoa/statbmp.h"
70 #elif defined(__WXPM__)
71 #include "wx/os2/statbmp.h"
74 #endif // wxUSE_STATBMP
77 // _WX_STATBMP_H_BASE_