]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/x11/icon.cpp
fixed compilation problem with old gcc releases
[wxWidgets.git] / src / x11 / icon.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: icon.cpp
3// Purpose: wxIcon class
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "icon.h"
14#endif
15
16#include "wx/icon.h"
17#include "wx/window.h"
18
19#include "wx/x11/private.h"
20
21//-----------------------------------------------------------------------------
22// wxIcon
23//-----------------------------------------------------------------------------
24
25IMPLEMENT_DYNAMIC_CLASS(wxIcon,wxBitmap)
26
27wxIcon::wxIcon( const char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
28 wxBitmap( bits )
29{
30}
31
32wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
33 wxBitmap( bits )
34{
35}
36
37wxIcon::wxIcon() : wxBitmap()
38{
39}
40
41wxIcon::wxIcon( const wxIcon& icon ) : wxBitmap()
42{
43 Ref(icon);
44}
45
46wxIcon& wxIcon::operator = ( const wxIcon& icon )
47{
48 if (*this == icon) return (*this);
49 Ref(icon);
50 return *this;
51}
52
53void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
54{
55 wxIcon *icon = (wxIcon*)(&bmp);
56 *this = *icon;
57}