]> git.saurik.com Git - wxWidgets.git/blob - src/generic/icon.cpp
Fix install_name_tool calls in OS X "make install".
[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 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 // for compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
13
14 #ifdef __BORLANDC__
15 #pragma hdrstop
16 #endif
17
18 #include "wx/icon.h"
19
20 //-----------------------------------------------------------------------------
21 // wxIcon
22 //-----------------------------------------------------------------------------
23
24 IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap)
25
26 wxIcon::wxIcon(const char* const* bits) :
27 wxBitmap( bits )
28 {
29 }
30
31 #ifdef wxNEEDS_CHARPP
32 wxIcon::wxIcon(char **bits) :
33 wxBitmap( bits )
34 {
35 }
36 #endif
37
38 wxIcon::wxIcon() : wxBitmap()
39 {
40 }
41
42 void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
43 {
44 wxIcon *icon = (wxIcon*)(&bmp);
45 *this = *icon;
46 }