]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/mgl/icon.cpp
don't require multimon.h any more now (patch 1446030); enable wxUSE_DISPLAY by default
[wxWidgets.git] / src / mgl / icon.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: icon.cpp
3// Author: Vaclav Slavik
4// Id: $Id$
5// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
6// Licence: wxWindows licence
7/////////////////////////////////////////////////////////////////////////////
8
9// For compilers that support precompilation, includes "wx.h".
10#include "wx/wxprec.h"
11
12#ifdef __BORLANDC__
13 #pragma hdrstop
14#endif
15
16#include "wx/icon.h"
17
18//-----------------------------------------------------------------------------
19// wxIcon
20//-----------------------------------------------------------------------------
21
22IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap)
23
24wxIcon::wxIcon(const char **bits, int WXUNUSED(width), int WXUNUSED(height)) :
25 wxBitmap(bits)
26{
27}
28
29wxIcon::wxIcon(char **bits, int WXUNUSED(width), int WXUNUSED(height)) :
30 wxBitmap(bits)
31{
32}
33
34void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
35{
36 wxIcon *icon = (wxIcon*)(&bmp);
37 *this = *icon;
38}
39