]>
git.saurik.com Git - wxWidgets.git/blob - src/generic/icon.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/generic/icon.cpp
3 // Purpose: wxIcon implementation for ports where it's same as wxBitmap
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // for compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
21 //-----------------------------------------------------------------------------
23 //-----------------------------------------------------------------------------
25 IMPLEMENT_DYNAMIC_CLASS(wxIcon
, wxBitmap
)
27 wxIcon::wxIcon(const char* const* bits
) :
33 wxIcon::wxIcon(char **bits
) :
39 wxIcon::wxIcon() : wxBitmap()
43 void wxIcon::CopyFromBitmap(const wxBitmap
& bmp
)
45 wxIcon
*icon
= (wxIcon
*)(&bmp
);