1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/generic/icon.cpp
3 // Purpose: wxIcon implementation for ports where it's same as wxBitmap
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // for compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
24 IMPLEMENT_DYNAMIC_CLASS(wxIcon
, wxBitmap
)
26 wxIcon
::wxIcon(const char* const* bits
) :
32 wxIcon
::wxIcon(char **bits
) :
38 wxIcon
::wxIcon() : wxBitmap()
42 void wxIcon
::CopyFromBitmap(const wxBitmap
& bmp
)
44 wxIcon
*icon
= (wxIcon
*)(&bmp
);