]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/statbmp.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/statbmp.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKSTATICBITMAPH__
12 #define __GTKSTATICBITMAPH__
14 #if defined(__GNUG__) && !defined(__APPLE__)
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
24 class wxStaticBitmap
: public wxStaticBitmapBase
28 wxStaticBitmap( wxWindow
*parent
,
30 const wxBitmap
& label
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& size
= wxDefaultSize
,
34 const wxString
& name
= wxStaticBitmapNameStr
);
35 bool Create( wxWindow
*parent
,
37 const wxBitmap
& label
,
38 const wxPoint
& pos
= wxDefaultPosition
,
39 const wxSize
& size
= wxDefaultSize
,
41 const wxString
& name
= wxStaticBitmapNameStr
);
43 virtual void SetIcon(const wxIcon
& icon
) { SetBitmap( icon
); }
44 virtual void SetBitmap( const wxBitmap
& bitmap
);
45 virtual wxBitmap
GetBitmap() const { return m_bitmap
; }
47 // for compatibility with wxMSW
48 wxIcon
GetIcon() const
50 // don't use wxDynamicCast, icons and bitmaps are really the same thing
52 return (const wxIcon
&)m_bitmap
;
56 // creates the new pixmap widget
57 void CreatePixmapWidget();
61 DECLARE_DYNAMIC_CLASS(wxStaticBitmap
)
64 #endif // __GTKSTATICBITMAPH__