]>
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 | |
65571936 | 7 | // Licence: wxWindows licence |
c801d85f KB |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
14f355c2 VS |
10 | // For compilers that support precompilation, includes "wx.h". |
11 | #include "wx/wxprec.h" | |
12 | ||
c801d85f KB |
13 | #include "wx/icon.h" |
14 | ||
15 | //----------------------------------------------------------------------------- | |
16 | // wxIcon | |
17 | //----------------------------------------------------------------------------- | |
18 | ||
19 | IMPLEMENT_DYNAMIC_CLASS(wxIcon,wxBitmap) | |
20 | ||
8bbe427f VZ |
21 | wxIcon::wxIcon( const char **bits, int WXUNUSED(width), int WXUNUSED(height) ) : |
22 | wxBitmap( bits ) | |
e52f60e6 RR |
23 | { |
24 | } | |
8bbe427f VZ |
25 | |
26 | wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) : | |
27 | wxBitmap( bits ) | |
219f895a | 28 | { |
ff7b1510 | 29 | } |
52cbfcf0 | 30 | |
8bbe427f VZ |
31 | wxIcon::wxIcon() : wxBitmap() |
32 | { | |
52cbfcf0 RR |
33 | } |
34 | ||
8bbe427f VZ |
35 | wxIcon::wxIcon( const wxIcon& icon ) : wxBitmap() |
36 | { | |
37 | Ref(icon); | |
52cbfcf0 RR |
38 | } |
39 | ||
e52f60e6 | 40 | wxIcon& wxIcon::operator = ( const wxIcon& icon ) |
8bbe427f VZ |
41 | { |
42 | if (*this == icon) return (*this); | |
43 | Ref(icon); | |
44 | return *this; | |
52cbfcf0 RR |
45 | } |
46 | ||
019faef4 VS |
47 | void wxIcon::CopyFromBitmap(const wxBitmap& bmp) |
48 | { | |
49 | wxIcon *icon = (wxIcon*)(&bmp); | |
50 | *this = *icon; | |
51 | } |