]> git.saurik.com Git - wxWidgets.git/blob - src/x11/icon.cpp
OSX Info.plist
[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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
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
25 IMPLEMENT_DYNAMIC_CLASS(wxIcon,wxBitmap)
26
27 wxIcon::wxIcon( const char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
28 wxBitmap( bits )
29 {
30 }
31
32 wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
33 wxBitmap( bits )
34 {
35 }
36
37 wxIcon::wxIcon() : wxBitmap()
38 {
39 }
40
41 wxIcon::wxIcon( const wxIcon& icon ) : wxBitmap()
42 {
43 Ref(icon);
44 }
45
46 wxIcon& wxIcon::operator = ( const wxIcon& icon )
47 {
48 if (*this == icon) return (*this);
49 Ref(icon);
50 return *this;
51 }
52
53 void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
54 {
55 wxIcon *icon = (wxIcon*)(&bmp);
56 *this = *icon;
57 }