]>
Commit | Line | Data |
---|---|---|
83df96d6 | 1 | ///////////////////////////////////////////////////////////////////////////// |
71451a6d VS |
2 | // Name: src/generic/icon.cpp |
3 | // Purpose: wxIcon implementation for ports where it's same as wxBitmap | |
83df96d6 JS |
4 | // Author: Julian Smart |
5 | // Modified by: | |
6 | // Created: 17/09/98 | |
83df96d6 | 7 | // Copyright: (c) Julian Smart |
cdccdfab | 8 | // Licence: wxWindows licence |
83df96d6 JS |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
cdccdfab WS |
11 | // for compilers that support precompilation, includes "wx.h". |
12 | #include "wx/wxprec.h" | |
13 | ||
71451a6d VS |
14 | #ifdef __BORLANDC__ |
15 | #pragma hdrstop | |
cdccdfab | 16 | #endif |
83df96d6 | 17 | |
71451a6d | 18 | #include "wx/icon.h" |
83df96d6 | 19 | |
a11672a4 RR |
20 | //----------------------------------------------------------------------------- |
21 | // wxIcon | |
22 | //----------------------------------------------------------------------------- | |
83df96d6 | 23 | |
71451a6d | 24 | IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap) |
83df96d6 | 25 | |
e45080c1 | 26 | wxIcon::wxIcon(const char* const* bits) : |
a11672a4 | 27 | wxBitmap( bits ) |
83df96d6 | 28 | { |
83df96d6 JS |
29 | } |
30 | ||
e45080c1 PC |
31 | #ifdef wxNEEDS_CHARPP |
32 | wxIcon::wxIcon(char **bits) : | |
a11672a4 | 33 | wxBitmap( bits ) |
83df96d6 | 34 | { |
83df96d6 | 35 | } |
e45080c1 | 36 | #endif |
83df96d6 | 37 | |
a11672a4 | 38 | wxIcon::wxIcon() : wxBitmap() |
83df96d6 | 39 | { |
83df96d6 JS |
40 | } |
41 | ||
a11672a4 | 42 | void wxIcon::CopyFromBitmap(const wxBitmap& bmp) |
7266b672 | 43 | { |
a11672a4 | 44 | wxIcon *icon = (wxIcon*)(&bmp); |
b6ed4565 | 45 | *this = *icon; |
7266b672 | 46 | } |