]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/statbmp.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/statbmp.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWidgets licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKSTATICBITMAPH__
12 #define __GTKSTATICBITMAPH__
14 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
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
;
55 static wxVisualAttributes
56 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
59 // creates the new pixmap widget
60 void CreatePixmapWidget();
64 DECLARE_DYNAMIC_CLASS(wxStaticBitmap
)
67 #endif // __GTKSTATICBITMAPH__