]>
Commit | Line | Data |
---|---|---|
32b8ec41 VZ |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: icon.cpp | |
3 | // Author: Vaclav Slavik | |
4 | // Id: $Id$ | |
c41c20a5 | 5 | // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com) |
65571936 | 6 | // Licence: wxWindows licence |
32b8ec41 VZ |
7 | ///////////////////////////////////////////////////////////////////////////// |
8 | ||
32b8ec41 VZ |
9 | // For compilers that support precompilation, includes "wx.h". |
10 | #include "wx/wxprec.h" | |
11 | ||
12 | #ifdef __BORLANDC__ | |
13 | #pragma hdrstop | |
14 | #endif | |
15 | ||
16 | #include "wx/icon.h" | |
17 | ||
18 | //----------------------------------------------------------------------------- | |
19 | // wxIcon | |
20 | //----------------------------------------------------------------------------- | |
21 | ||
22 | IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap) | |
23 | ||
24 | wxIcon::wxIcon(const char **bits, int WXUNUSED(width), int WXUNUSED(height)) : | |
25 | wxBitmap(bits) | |
26 | { | |
27 | } | |
28 | ||
29 | wxIcon::wxIcon(char **bits, int WXUNUSED(width), int WXUNUSED(height)) : | |
30 | wxBitmap(bits) | |
31 | { | |
32 | } | |
33 | ||
32b8ec41 VZ |
34 | void wxIcon::CopyFromBitmap(const wxBitmap& bmp) |
35 | { | |
36 | wxIcon *icon = (wxIcon*)(&bmp); | |
37 | *this = *icon; | |
38 | } | |
39 |