1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/statbmp.h
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 #include "wx/motif/bmpmotif.h"
18 class WXDLLEXPORT wxStaticBitmap
: public wxStaticBitmapBase
20 DECLARE_DYNAMIC_CLASS(wxStaticBitmap
)
26 wxStaticBitmap(wxWindow
*parent
, wxWindowID id
,
27 const wxBitmap
& label
,
28 const wxPoint
& pos
= wxDefaultPosition
,
29 const wxSize
& size
= wxDefaultSize
,
31 const wxString
& name
= wxStaticBitmapNameStr
)
33 Create(parent
, id
, label
, pos
, size
, style
, name
);
36 bool Create(wxWindow
*parent
, wxWindowID id
,
37 const wxBitmap
& label
,
38 const wxPoint
& pos
= wxDefaultPosition
,
39 const wxSize
& size
= wxDefaultSize
,
41 const wxString
& name
= wxStaticBitmapNameStr
);
43 virtual void SetBitmap(const wxBitmap
& bitmap
);
45 virtual bool ProcessCommand(wxCommandEvent
& WXUNUSED(event
))
50 wxBitmap
GetBitmap() const { return m_messageBitmap
; }
52 // for compatibility with wxMSW
53 wxIcon
GetIcon() const
55 // don't use wxDynamicCast, icons and bitmaps are really the same thing
56 return *(wxIcon
*)&m_messageBitmap
;
59 // for compatibility with wxMSW
60 void SetIcon(const wxIcon
& icon
)
66 virtual void ChangeBackgroundColour();
67 virtual void ChangeForegroundColour();
73 wxBitmap m_messageBitmap
;
74 wxBitmap m_messageBitmapOriginal
;
75 wxBitmapCache m_bitmapCache
;