1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxStaticBitmap class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_STATBMP_H_
13 #define _WX_STATBMP_H_
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "statbmp.h"
19 #include "wx/motif/bmpmotif.h"
22 class WXDLLEXPORT wxStaticBitmap
: public wxStaticBitmapBase
24 DECLARE_DYNAMIC_CLASS(wxStaticBitmap
)
30 wxStaticBitmap(wxWindow
*parent
, wxWindowID id
,
31 const wxBitmap
& label
,
32 const wxPoint
& pos
= wxDefaultPosition
,
33 const wxSize
& size
= wxDefaultSize
,
35 const wxString
& name
= wxStaticBitmapNameStr
)
37 Create(parent
, id
, label
, pos
, size
, style
, name
);
40 bool Create(wxWindow
*parent
, wxWindowID id
,
41 const wxBitmap
& label
,
42 const wxPoint
& pos
= wxDefaultPosition
,
43 const wxSize
& size
= wxDefaultSize
,
45 const wxString
& name
= wxStaticBitmapNameStr
);
47 virtual void SetBitmap(const wxBitmap
& bitmap
);
49 virtual bool ProcessCommand(wxCommandEvent
& WXUNUSED(event
))
54 wxBitmap
GetBitmap() const { return m_messageBitmap
; }
56 // for compatibility with wxMSW
57 wxIcon
GetIcon() const
59 // don't use wxDynamicCast, icons and bitmaps are really the same thing
60 return *(wxIcon
*)&m_messageBitmap
;
63 // for compatibility with wxMSW
64 void SetIcon(const wxIcon
& icon
)
70 virtual void ChangeBackgroundColour();
71 virtual void ChangeForegroundColour();
77 wxBitmap m_messageBitmap
;
78 wxBitmap m_messageBitmapOriginal
;
79 wxBitmapCache m_bitmapCache
;