]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/gtk1/icon.cpp
Simplify wxWinCE #ifdefs.
[wxWidgets.git] / src / gtk1 / icon.cpp
... / ...
CommitLineData
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
19IMPLEMENT_DYNAMIC_CLASS(wxIcon,wxBitmap)
20
21wxIcon::wxIcon( const char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
22 wxBitmap( bits )
23{
24}
25
26wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
27 wxBitmap( bits )
28{
29}
30
31wxIcon::wxIcon() : wxBitmap()
32{
33}
34
35void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
36{
37 wxIcon *icon = (wxIcon*)(&bmp);
38 *this = *icon;
39}