]> git.saurik.com Git - wxWidgets.git/blame - src/x11/icon.cpp
distinguish between main keyboard and numeric enter keys (fixes 902095)
[wxWidgets.git] / src / x11 / icon.cpp
CommitLineData
83df96d6
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: 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
14f355c2 12#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
83df96d6
JS
13#pragma implementation "icon.h"
14#endif
15
16#include "wx/icon.h"
17#include "wx/window.h"
18
bc797f4c 19#include "wx/x11/private.h"
83df96d6 20
a11672a4
RR
21//-----------------------------------------------------------------------------
22// wxIcon
23//-----------------------------------------------------------------------------
83df96d6 24
a11672a4 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 41wxIcon::wxIcon( const wxIcon& icon ) : wxBitmap()
83df96d6 42{
a11672a4 43 Ref(icon);
83df96d6
JS
44}
45
a11672a4 46wxIcon& wxIcon::operator = ( const wxIcon& icon )
83df96d6 47{
a11672a4
RR
48 if (*this == icon) return (*this);
49 Ref(icon);
50 return *this;
83df96d6
JS
51}
52
a11672a4 53void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
7266b672 54{
a11672a4 55 wxIcon *icon = (wxIcon*)(&bmp);
b6ed4565 56 *this = *icon;
7266b672 57}