]>
git.saurik.com Git - wxWidgets.git/blob - src/x11/icon.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/x11/icon.cpp
3 // Purpose: wxIcon class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // for compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
18 #include "wx/window.h"
21 #include "wx/x11/private.h"
23 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
27 IMPLEMENT_DYNAMIC_CLASS(wxIcon
,wxBitmap
)
29 wxIcon::wxIcon( const char **bits
, int WXUNUSED(width
), int WXUNUSED(height
) ) :
34 wxIcon::wxIcon( char **bits
, int WXUNUSED(width
), int WXUNUSED(height
) ) :
39 wxIcon::wxIcon() : wxBitmap()
43 void wxIcon::CopyFromBitmap(const wxBitmap
& bmp
)
45 wxIcon
*icon
= (wxIcon
*)(&bmp
);