]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/generic/icon.cpp
If -1 is passed to InsertItem for the imageIndex then don't set wxLIST_MASK_IMAGE
[wxWidgets.git] / src / generic / icon.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/generic/icon.cpp
3// Purpose: wxIcon implementation for ports where it's same as wxBitmap
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#ifdef __BORLANDC__
16 #pragma hdrstop
17#endif
18
19#include "wx/icon.h"
20
21//-----------------------------------------------------------------------------
22// wxIcon
23//-----------------------------------------------------------------------------
24
25IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap)
26
27wxIcon::wxIcon(const char* const* bits) :
28 wxBitmap( bits )
29{
30}
31
32#ifdef wxNEEDS_CHARPP
33wxIcon::wxIcon(char **bits) :
34 wxBitmap( bits )
35{
36}
37#endif
38
39wxIcon::wxIcon() : wxBitmap()
40{
41}
42
43void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
44{
45 wxIcon *icon = (wxIcon*)(&bmp);
46 *this = *icon;
47}