]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: icon.cpp | |
3 | // Purpose: | |
4 | // Author: Robert Roebling | |
a81258be RR |
5 | // Id: $Id$ |
6 | // Copyright: (c) 1998 Robert Roebling | |
c801d85f KB |
7 | // Licence: wxWindows licence |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | #ifdef __GNUG__ | |
11 | #pragma implementation "icon.h" | |
12 | #endif | |
13 | ||
14 | #include "wx/icon.h" | |
15 | ||
16 | //----------------------------------------------------------------------------- | |
17 | // wxIcon | |
18 | //----------------------------------------------------------------------------- | |
19 | ||
20 | IMPLEMENT_DYNAMIC_CLASS(wxIcon,wxBitmap) | |
21 | ||
8bbe427f VZ |
22 | wxIcon::wxIcon( const char **bits, int WXUNUSED(width), int WXUNUSED(height) ) : |
23 | wxBitmap( bits ) | |
e52f60e6 RR |
24 | { |
25 | } | |
8bbe427f VZ |
26 | |
27 | wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) : | |
28 | wxBitmap( bits ) | |
219f895a | 29 | { |
ff7b1510 | 30 | } |
52cbfcf0 | 31 | |
8bbe427f VZ |
32 | wxIcon::wxIcon() : wxBitmap() |
33 | { | |
52cbfcf0 RR |
34 | } |
35 | ||
8bbe427f VZ |
36 | wxIcon::wxIcon( const wxIcon& icon ) : wxBitmap() |
37 | { | |
38 | Ref(icon); | |
52cbfcf0 RR |
39 | } |
40 | ||
e52f60e6 | 41 | wxIcon& wxIcon::operator = ( const wxIcon& icon ) |
8bbe427f VZ |
42 | { |
43 | if (*this == icon) return (*this); | |
44 | Ref(icon); | |
45 | return *this; | |
52cbfcf0 RR |
46 | } |
47 |