]> git.saurik.com Git - wxWidgets.git/blame - src/generic/icon.cpp
Rename delegates to try and stop name clashes, probably with wxWebKitCtrl.
[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
e45080c1 27wxIcon::wxIcon(const char* const* bits) :
a11672a4 28 wxBitmap( bits )
83df96d6 29{
83df96d6
JS
30}
31
e45080c1
PC
32#ifdef wxNEEDS_CHARPP
33wxIcon::wxIcon(char **bits) :
a11672a4 34 wxBitmap( bits )
83df96d6 35{
83df96d6 36}
e45080c1 37#endif
83df96d6 38
a11672a4 39wxIcon::wxIcon() : wxBitmap()
83df96d6 40{
83df96d6
JS
41}
42
a11672a4 43void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
7266b672 44{
a11672a4 45 wxIcon *icon = (wxIcon*)(&bmp);
b6ed4565 46 *this = *icon;
7266b672 47}