]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/gtk/icon.cpp
Made wxStubs compile on Unix.
[wxWidgets.git] / src / gtk / icon.cpp
... / ...
CommitLineData
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
23wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
24 wxBitmap( bits )
25{
26}
27
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