]> git.saurik.com Git - wxWidgets.git/blob - src/gtk/icon.cpp
[ 1487463 ] XRC handler for wxOwnerDrawnComboBox.
[wxWidgets.git] / src / gtk / 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 }