]> git.saurik.com Git - wxWidgets.git/blame - src/generic/icon.cpp
move Freeze() and Thaw() to wxWindowBase to ensure that they behave consistently...
[wxWidgets.git] / src / generic / icon.cpp
CommitLineData
83df96d6 1/////////////////////////////////////////////////////////////////////////////
71451a6d
VS
2// Name: src/generic/icon.cpp
3// Purpose: wxIcon implementation for ports where it's same as wxBitmap
83df96d6
JS
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
cdccdfab 9// Licence: wxWindows licence
83df96d6
JS
10/////////////////////////////////////////////////////////////////////////////
11
cdccdfab
WS
12// for compilers that support precompilation, includes "wx.h".
13#include "wx/wxprec.h"
14
71451a6d
VS
15#ifdef __BORLANDC__
16 #pragma hdrstop
cdccdfab 17#endif
83df96d6 18
71451a6d 19#include "wx/icon.h"
83df96d6 20
a11672a4
RR
21//-----------------------------------------------------------------------------
22// wxIcon
23//-----------------------------------------------------------------------------
83df96d6 24
71451a6d 25IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap)
83df96d6 26
a11672a4
RR
27wxIcon::wxIcon( const char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
28 wxBitmap( bits )
83df96d6 29{
83df96d6
JS
30}
31
a11672a4
RR
32wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
33 wxBitmap( bits )
83df96d6 34{
83df96d6
JS
35}
36
a11672a4 37wxIcon::wxIcon() : wxBitmap()
83df96d6 38{
83df96d6
JS
39}
40
a11672a4 41void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
7266b672 42{
a11672a4 43 wxIcon *icon = (wxIcon*)(&bmp);
b6ed4565 44 *this = *icon;
7266b672 45}