1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/statbmp.h
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef __GTKSTATICBITMAPH__
10 #define __GTKSTATICBITMAPH__
14 //-----------------------------------------------------------------------------
16 //-----------------------------------------------------------------------------
18 class WXDLLIMPEXP_CORE wxStaticBitmap
: public wxStaticBitmapBase
22 wxStaticBitmap( wxWindow
*parent
,
24 const wxBitmap
& label
,
25 const wxPoint
& pos
= wxDefaultPosition
,
26 const wxSize
& size
= wxDefaultSize
,
28 const wxString
& name
= wxStaticBitmapNameStr
);
29 bool Create( wxWindow
*parent
,
31 const wxBitmap
& label
,
32 const wxPoint
& pos
= wxDefaultPosition
,
33 const wxSize
& size
= wxDefaultSize
,
35 const wxString
& name
= wxStaticBitmapNameStr
);
37 virtual void SetIcon(const wxIcon
& icon
) { SetBitmap( icon
); }
38 virtual void SetBitmap( const wxBitmap
& bitmap
);
39 virtual wxBitmap
GetBitmap() const { return m_bitmap
; }
41 // for compatibility with wxMSW
42 wxIcon
GetIcon() const
44 // don't use wxDynamicCast, icons and bitmaps are really the same thing
46 return (const wxIcon
&)m_bitmap
;
49 static wxVisualAttributes
50 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
55 DECLARE_DYNAMIC_CLASS(wxStaticBitmap
)
58 #endif // __GTKSTATICBITMAPH__