]> git.saurik.com Git - wxWidgets.git/blame - src/gtk/icon.cpp
Additional makefiles; changes for compilation with BC++ and GnuWin32
[wxWidgets.git] / src / gtk / icon.cpp
CommitLineData
c801d85f
KB
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
21IMPLEMENT_DYNAMIC_CLASS(wxIcon,wxBitmap)
22
52cbfcf0
RR
23wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
24 wxBitmap( bits )
219f895a 25{
ff7b1510 26}
219f895a 27
52cbfcf0
RR
28wxIcon::wxIcon() : wxBitmap()
29{
30}
31
32wxIcon::wxIcon(const wxIcon& icon) : wxBitmap()
33{
34 Ref(icon);
35}
36
37wxIcon::wxIcon(const wxIcon* icon) : wxBitmap()
38{
39 if (icon) Ref(*icon);
40}
41
42wxIcon& wxIcon::operator = (const wxIcon& icon)
43{
44 if (*this == icon) return (*this);
45 Ref(icon);
46 return *this;
47}
48