]>
git.saurik.com Git - wxWidgets.git/blob - src/x11/icon.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxIcon class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "icon.h"
17 #include "wx/window.h"
19 #include "wx/x11/private.h"
21 //-----------------------------------------------------------------------------
23 //-----------------------------------------------------------------------------
25 IMPLEMENT_DYNAMIC_CLASS(wxIcon
,wxBitmap
)
27 wxIcon::wxIcon( const char **bits
, int WXUNUSED(width
), int WXUNUSED(height
) ) :
32 wxIcon::wxIcon( char **bits
, int WXUNUSED(width
), int WXUNUSED(height
) ) :
37 wxIcon::wxIcon() : wxBitmap()
41 wxIcon::wxIcon( const wxIcon
& icon
) : wxBitmap()
46 wxIcon
& wxIcon::operator = ( const wxIcon
& icon
)
48 if (*this == icon
) return (*this);
53 void wxIcon::CopyFromBitmap(const wxBitmap
& bmp
)
55 wxIcon
*icon
= (wxIcon
*)(&bmp
);