1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/statbmp.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKSTATICBITMAPH__
11 #define __GTKSTATICBITMAPH__
15 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxStaticBitmap
: public wxStaticBitmapBase
23 wxStaticBitmap( wxWindow
*parent
,
25 const wxBitmap
& label
,
26 const wxPoint
& pos
= wxDefaultPosition
,
27 const wxSize
& size
= wxDefaultSize
,
29 const wxString
& name
= wxStaticBitmapNameStr
);
30 bool Create( wxWindow
*parent
,
32 const wxBitmap
& label
,
33 const wxPoint
& pos
= wxDefaultPosition
,
34 const wxSize
& size
= wxDefaultSize
,
36 const wxString
& name
= wxStaticBitmapNameStr
);
38 virtual void SetIcon(const wxIcon
& icon
) { SetBitmap( icon
); }
39 virtual void SetBitmap( const wxBitmap
& bitmap
);
40 virtual wxBitmap
GetBitmap() const { return m_bitmap
; }
42 // for compatibility with wxMSW
43 wxIcon
GetIcon() const
45 // don't use wxDynamicCast, icons and bitmaps are really the same thing
47 return (const wxIcon
&)m_bitmap
;
50 static wxVisualAttributes
51 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
56 DECLARE_DYNAMIC_CLASS(wxStaticBitmap
)
59 #endif // __GTKSTATICBITMAPH__