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_
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "statbmpbase.h"
23 #include "wx/control.h"
24 #include "wx/bitmap.h"
26 class WXDLLEXPORT wxIcon
;
27 class WXDLLEXPORT wxBitmap
;
29 WXDLLEXPORT_DATA(extern const wxChar
*) wxStaticBitmapNameStr
;
31 // a control showing an icon or a bitmap
32 class WXDLLEXPORT wxStaticBitmapBase
: public wxControl
35 wxStaticBitmapBase() { }
36 virtual ~wxStaticBitmapBase();
39 virtual void SetIcon(const wxIcon
& icon
) = 0;
40 virtual void SetBitmap(const wxBitmap
& bitmap
) = 0;
41 virtual wxBitmap
GetBitmap() const = 0;
43 // overriden base class virtuals
44 virtual bool AcceptsFocus() const { return false; }
47 virtual wxSize
DoGetBestSize() const;
49 DECLARE_NO_COPY_CLASS(wxStaticBitmapBase
)
52 #if defined(__WXUNIVERSAL__)
53 #include "wx/univ/statbmp.h"
54 #elif defined(__WXMSW__)
55 #include "wx/msw/statbmp.h"
56 #elif defined(__WXMOTIF__)
57 #include "wx/motif/statbmp.h"
58 #elif defined(__WXGTK__)
59 #include "wx/gtk/statbmp.h"
60 #elif defined(__WXMAC__)
61 #include "wx/mac/statbmp.h"
62 #elif defined(__WXCOCOA__)
63 #include "wx/cocoa/statbmp.h"
64 #elif defined(__WXPM__)
65 #include "wx/os2/statbmp.h"
68 #endif // wxUSE_STATBMP
71 // _WX_STATBMP_H_BASE_