]> git.saurik.com Git - wxWidgets.git/blame - src/gtk/icon.cpp
avoid hidden GetImageList
[wxWidgets.git] / src / gtk / icon.cpp
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: icon.cpp
3// Purpose:
4// Author: Robert Roebling
a81258be
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
14f355c2
VS
10// For compilers that support precompilation, includes "wx.h".
11#include "wx/wxprec.h"
12
c801d85f
KB
13#include "wx/icon.h"
14
15//-----------------------------------------------------------------------------
16// wxIcon
17//-----------------------------------------------------------------------------
18
19IMPLEMENT_DYNAMIC_CLASS(wxIcon,wxBitmap)
20
8bbe427f
VZ
21wxIcon::wxIcon( const char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
22 wxBitmap( bits )
e52f60e6
RR
23{
24}
8bbe427f
VZ
25
26wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
27 wxBitmap( bits )
219f895a 28{
ff7b1510 29}
52cbfcf0 30
8bbe427f
VZ
31wxIcon::wxIcon() : wxBitmap()
32{
52cbfcf0
RR
33}
34
8bbe427f
VZ
35wxIcon::wxIcon( const wxIcon& icon ) : wxBitmap()
36{
37 Ref(icon);
52cbfcf0
RR
38}
39
e52f60e6 40wxIcon& wxIcon::operator = ( const wxIcon& icon )
8bbe427f
VZ
41{
42 if (*this == icon) return (*this);
43 Ref(icon);
44 return *this;
52cbfcf0
RR
45}
46
019faef4
VS
47void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
48{
49 wxIcon *icon = (wxIcon*)(&bmp);
50 *this = *icon;
51}