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