]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/statbmp.h
[ 1541434 ] wxListView::IsSelected should be const
[wxWidgets.git] / include / wx / gtk1 / statbmp.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
8ef94bfc 2// Name: wx/gtk1/statbmp.h
c801d85f
KB
3// Purpose:
4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
c801d85f
KB
10#ifndef __GTKSTATICBITMAPH__
11#define __GTKSTATICBITMAPH__
12
2df7be7f 13#include "wx/icon.h"
c801d85f 14
c801d85f
KB
15//-----------------------------------------------------------------------------
16// wxStaticBitmap
17//-----------------------------------------------------------------------------
18
20123d49 19class WXDLLIMPEXP_CORE wxStaticBitmap : public wxStaticBitmapBase
1a56f55c 20{
7f24bd19
VZ
21public:
22 wxStaticBitmap();
23 wxStaticBitmap( wxWindow *parent,
24 wxWindowID id,
25 const wxBitmap& label,
26 const wxPoint& pos = wxDefaultPosition,
27 const wxSize& size = wxDefaultSize,
28 long style = 0,
29 const wxString& name = wxStaticBitmapNameStr );
30 bool Create( wxWindow *parent,
31 wxWindowID id,
32 const wxBitmap& label,
33 const wxPoint& pos = wxDefaultPosition,
34 const wxSize& size = wxDefaultSize,
35 long style = 0,
36 const wxString& name = wxStaticBitmapNameStr);
37
1e6feb95 38 virtual void SetIcon(const wxIcon& icon) { SetBitmap( icon ); }
1a56f55c 39 virtual void SetBitmap( const wxBitmap& bitmap );
1e6feb95 40 virtual wxBitmap GetBitmap() const { return m_bitmap; }
7f24bd19
VZ
41
42 // for compatibility with wxMSW
1e6feb95 43 wxIcon GetIcon() const
c35414db
VZ
44 {
45 // don't use wxDynamicCast, icons and bitmaps are really the same thing
46 // in wxGTK
47 return (const wxIcon &)m_bitmap;
48 }
7f24bd19 49
9d522606
RD
50 static wxVisualAttributes
51 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
8ef94bfc 52
7f24bd19
VZ
53private:
54 wxBitmap m_bitmap;
1a56f55c 55
1e6feb95
VZ
56 DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
57};
dcf924a3 58
c801d85f 59#endif // __GTKSTATICBITMAPH__