]> git.saurik.com Git - wxWidgets.git/blob - src/gtk1/icon.cpp
cleanup - reformat
[wxWidgets.git] / src / gtk1 / icon.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: icon.cpp
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 // For compilers that support precompilation, includes "wx.h".
11 #include "wx/wxprec.h"
12
13 #include "wx/icon.h"
14
15 //-----------------------------------------------------------------------------
16 // wxIcon
17 //-----------------------------------------------------------------------------
18
19 IMPLEMENT_DYNAMIC_CLASS(wxIcon,wxBitmap)
20
21 wxIcon::wxIcon( const char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
22 wxBitmap( bits )
23 {
24 }
25
26 wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
27 wxBitmap( bits )
28 {
29 }
30
31 wxIcon::wxIcon() : wxBitmap()
32 {
33 }
34
35 wxIcon::wxIcon( const wxIcon& icon ) : wxBitmap()
36 {
37 Ref(icon);
38 }
39
40 wxIcon& wxIcon::operator = ( const wxIcon& icon )
41 {
42 if (*this == icon) return (*this);
43 Ref(icon);
44 return *this;
45 }
46
47 void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
48 {
49 wxIcon *icon = (wxIcon*)(&bmp);
50 *this = *icon;
51 }