]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/x11/icon.cpp
Tinderbox warning fix.
[wxWidgets.git] / src / x11 / icon.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/x11/icon.cpp
3// Purpose: wxIcon class
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12// for compilers that support precompilation, includes "wx.h".
13#include "wx/wxprec.h"
14
15#include "wx/icon.h"
16
17#ifndef WX_PRECOMP
18 #include "wx/window.h"
19#endif
20
21#include "wx/x11/private.h"
22
23//-----------------------------------------------------------------------------
24// wxIcon
25//-----------------------------------------------------------------------------
26
27IMPLEMENT_DYNAMIC_CLASS(wxIcon,wxBitmap)
28
29wxIcon::wxIcon( const char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
30 wxBitmap( bits )
31{
32}
33
34wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
35 wxBitmap( bits )
36{
37}
38
39wxIcon::wxIcon() : wxBitmap()
40{
41}
42
43void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
44{
45 wxIcon *icon = (wxIcon*)(&bmp);
46 *this = *icon;
47}