]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/gtk/icon.cpp
GTK2: gtk_draw_* -> gtk_paint_*
[wxWidgets.git] / src / gtk / 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
35wxIcon::wxIcon( const wxIcon& icon ) : wxBitmap()
36{
37 Ref(icon);
38}
39
40wxIcon& wxIcon::operator = ( const wxIcon& icon )
41{
42 if (*this == icon) return (*this);
43 Ref(icon);
44 return *this;
45}
46
47void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
48{
49 wxIcon *icon = (wxIcon*)(&bmp);
50 *this = *icon;
51}