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(__APPLE__)
16 #pragma interface "statbmpbase.h"
21 #include "wx/control.h"
22 #include "wx/bitmap.h"
24 class WXDLLEXPORT wxIcon
;
25 class WXDLLEXPORT wxBitmap
;
27 WXDLLEXPORT_DATA(extern const wxChar
*) wxStaticBitmapNameStr
;
29 // a control showing an icon or a bitmap
30 class WXDLLEXPORT wxStaticBitmapBase
: public wxControl
33 virtual ~wxStaticBitmapBase();
36 virtual void SetIcon(const wxIcon
& icon
) = 0;
37 virtual void SetBitmap(const wxBitmap
& bitmap
) = 0;
38 virtual wxBitmap
GetBitmap() const = 0;
40 // overriden base class virtuals
41 virtual bool AcceptsFocus() const { return FALSE
; }
44 virtual wxSize
DoGetBestClientSize() const;
47 #if defined(__WXUNIVERSAL__)
48 #include "wx/univ/statbmp.h"
49 #elif defined(__WXMSW__)
50 #include "wx/msw/statbmp.h"
51 #elif defined(__WXMOTIF__)
52 #include "wx/motif/statbmp.h"
53 #elif defined(__WXGTK__)
54 #include "wx/gtk/statbmp.h"
55 #elif defined(__WXMAC__)
56 #include "wx/mac/statbmp.h"
57 #elif defined(__WXCOCOA__)
58 #include "wx/cocoa/statbmp.h"
59 #elif defined(__WXPM__)
60 #include "wx/os2/statbmp.h"
63 #endif // wxUSE_STATBMP
66 // _WX_STATBMP_H_BASE_