]> git.saurik.com Git - wxWidgets.git/blob - src/generic/icon.cpp
fix compilation both for Robert's cross-compiler and for all normal compilers by...
[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 **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
28 wxBitmap( bits )
29 {
30 }
31
32 wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
33 wxBitmap( bits )
34 {
35 }
36
37 wxIcon::wxIcon() : wxBitmap()
38 {
39 }
40
41 void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
42 {
43 wxIcon *icon = (wxIcon*)(&bmp);
44 *this = *icon;
45 }