]> git.saurik.com Git - wxWidgets.git/blob - src/gtk1/icon.cpp
Include wx/log.h according to precompiled headers of wx/wx.h (with other minor cleaning).
[wxWidgets.git] / src / gtk1 / icon.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: icon.cpp
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 // For compilers that support precompilation, includes "wx.h".
11 #include "wx/wxprec.h"
12
13 #include "wx/icon.h"
14
15 //-----------------------------------------------------------------------------
16 // wxIcon
17 //-----------------------------------------------------------------------------
18
19 IMPLEMENT_DYNAMIC_CLASS(wxIcon,wxBitmap)
20
21 wxIcon::wxIcon( const char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
22 wxBitmap( bits )
23 {
24 }
25
26 wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
27 wxBitmap( bits )
28 {
29 }
30
31 wxIcon::wxIcon() : wxBitmap()
32 {
33 }
34
35 void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
36 {
37 wxIcon *icon = (wxIcon*)(&bmp);
38 *this = *icon;
39 }