]> git.saurik.com Git - wxWidgets.git/blob - src/generic/icon.cpp
Initial implementation of wxWebProtocolHandler and wxWebFileProtocolHandler for the...
[wxWidgets.git] / 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
5 // Modified by:
6 // Created: 17/09/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // for compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
14
15 #ifdef __BORLANDC__
16 #pragma hdrstop
17 #endif
18
19 #include "wx/icon.h"
20
21 //-----------------------------------------------------------------------------
22 // wxIcon
23 //-----------------------------------------------------------------------------
24
25 IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap)
26
27 wxIcon::wxIcon(const char* const* bits) :
28 wxBitmap( bits )
29 {
30 }
31
32 #ifdef wxNEEDS_CHARPP
33 wxIcon::wxIcon(char **bits) :
34 wxBitmap( bits )
35 {
36 }
37 #endif
38
39 wxIcon::wxIcon() : wxBitmap()
40 {
41 }
42
43 void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
44 {
45 wxIcon *icon = (wxIcon*)(&bmp);
46 *this = *icon;
47 }