]> git.saurik.com Git - wxWidgets.git/blame - src/x11/icon.cpp
Unneeded semicolon.
[wxWidgets.git] / src / x11 / icon.cpp
CommitLineData
83df96d6 1/////////////////////////////////////////////////////////////////////////////
cdccdfab 2// Name: src/x11/icon.cpp
83df96d6
JS
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
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
83df96d6 15#include "wx/icon.h"
cdccdfab
WS
16
17#ifndef WX_PRECOMP
18 #include "wx/window.h"
19#endif
83df96d6 20
bc797f4c 21#include "wx/x11/private.h"
83df96d6 22
a11672a4
RR
23//-----------------------------------------------------------------------------
24// wxIcon
25//-----------------------------------------------------------------------------
83df96d6 26
a11672a4 27IMPLEMENT_DYNAMIC_CLASS(wxIcon,wxBitmap)
83df96d6 28
a11672a4
RR
29wxIcon::wxIcon( const char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
30 wxBitmap( bits )
83df96d6 31{
83df96d6
JS
32}
33
a11672a4
RR
34wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
35 wxBitmap( bits )
83df96d6 36{
83df96d6
JS
37}
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}