]> git.saurik.com Git - wxWidgets.git/blob - src/gtk1/icon.cpp
Listctrl updates
[wxWidgets.git] / src / gtk1 / icon.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: icon.cpp
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifdef __GNUG__
11 #pragma implementation "icon.h"
12 #endif
13
14 #include "wx/icon.h"
15
16 //-----------------------------------------------------------------------------
17 // wxIcon
18 //-----------------------------------------------------------------------------
19
20 IMPLEMENT_DYNAMIC_CLASS(wxIcon,wxBitmap)
21
22 wxIcon::wxIcon( const char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
23 wxBitmap( bits )
24 {
25 }
26
27 wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
28 wxBitmap( bits )
29 {
30 }
31
32 wxIcon::wxIcon() : wxBitmap()
33 {
34 }
35
36 wxIcon::wxIcon( const wxIcon& icon ) : wxBitmap()
37 {
38 Ref(icon);
39 }
40
41 wxIcon::wxIcon( const wxIcon* icon ) : wxBitmap()
42 {
43 if (icon) Ref(*icon);
44 }
45
46 wxIcon& wxIcon::operator = ( const wxIcon& icon )
47 {
48 if (*this == icon) return (*this);
49 Ref(icon);
50 return *this;
51 }
52