]>
git.saurik.com Git - wxWidgets.git/blob - src/gtk1/icon.cpp
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #pragma implementation "icon.h"
16 //-----------------------------------------------------------------------------
18 //-----------------------------------------------------------------------------
20 IMPLEMENT_DYNAMIC_CLASS(wxIcon
,wxBitmap
)
22 wxIcon::wxIcon( const char **bits
, int WXUNUSED(width
), int WXUNUSED(height
) ) :
27 wxIcon::wxIcon( char **bits
, int WXUNUSED(width
), int WXUNUSED(height
) ) :
32 wxIcon::wxIcon() : wxBitmap()
36 wxIcon::wxIcon( const wxIcon
& icon
) : wxBitmap()
41 wxIcon
& wxIcon::operator = ( const wxIcon
& icon
)
43 if (*this == icon
) return (*this);
48 void wxIcon::CopyFromBitmap(const wxBitmap
& bmp
)
50 wxIcon
*icon
= (wxIcon
*)(&bmp
);