]> git.saurik.com Git - wxWidgets.git/blob - src/x11/icon.cpp
Remove my binary compatibility stuff from HEAD. Patch #1367014 used for reference.
[wxWidgets.git] / src / x11 / icon.cpp
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 #include "wx/icon.h"
13 #include "wx/window.h"
14
15 #include "wx/x11/private.h"
16
17 //-----------------------------------------------------------------------------
18 // wxIcon
19 //-----------------------------------------------------------------------------
20
21 IMPLEMENT_DYNAMIC_CLASS(wxIcon,wxBitmap)
22
23 wxIcon::wxIcon( const char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
24 wxBitmap( bits )
25 {
26 }
27
28 wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
29 wxBitmap( bits )
30 {
31 }
32
33 wxIcon::wxIcon() : wxBitmap()
34 {
35 }
36
37 wxIcon::wxIcon( const wxIcon& icon ) : wxBitmap()
38 {
39 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
49 void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
50 {
51 wxIcon *icon = (wxIcon*)(&bmp);
52 *this = *icon;
53 }