1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/statbmp.h
3 // Purpose: wxStaticBitmap class
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_STATBMP_H_
12 #define _WX_STATBMP_H_
14 #include "wx/motif/bmpmotif.h"
17 class WXDLLIMPEXP_CORE wxStaticBitmap
: public wxStaticBitmapBase
19 DECLARE_DYNAMIC_CLASS(wxStaticBitmap
)
23 virtual ~wxStaticBitmap();
25 wxStaticBitmap(wxWindow
*parent
, wxWindowID id
,
26 const wxBitmap
& label
,
27 const wxPoint
& pos
= wxDefaultPosition
,
28 const wxSize
& size
= wxDefaultSize
,
30 const wxString
& name
= wxStaticBitmapNameStr
)
32 Create(parent
, id
, label
, pos
, size
, style
, name
);
35 bool Create(wxWindow
*parent
, wxWindowID id
,
36 const wxBitmap
& label
,
37 const wxPoint
& pos
= wxDefaultPosition
,
38 const wxSize
& size
= wxDefaultSize
,
40 const wxString
& name
= wxStaticBitmapNameStr
);
42 virtual void SetBitmap(const wxBitmap
& bitmap
);
44 virtual bool ProcessCommand(wxCommandEvent
& WXUNUSED(event
))
49 wxBitmap
GetBitmap() const { return m_messageBitmap
; }
51 // for compatibility with wxMSW
52 wxIcon
GetIcon() const
54 // don't use wxDynamicCast, icons and bitmaps are really the same thing
55 return *(wxIcon
*)&m_messageBitmap
;
58 // for compatibility with wxMSW
59 void SetIcon(const wxIcon
& icon
)
65 virtual void ChangeBackgroundColour();
66 virtual void ChangeForegroundColour();
72 wxBitmap m_messageBitmap
;
73 wxBitmap m_messageBitmapOriginal
;
74 wxBitmapCache m_bitmapCache
;