]>
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 **bits
, int WXUNUSED(width
), int WXUNUSED(height
) ) :
32 wxIcon::wxIcon( char **bits
, int WXUNUSED(width
), int WXUNUSED(height
) ) :
37 wxIcon::wxIcon() : wxBitmap()
41 void wxIcon::CopyFromBitmap(const wxBitmap
& bmp
)
43 wxIcon
*icon
= (wxIcon
*)(&bmp
);