]> git.saurik.com Git - wxWidgets.git/blame - src/gtk1/icon.cpp
1. wxNotebook::GetPageCount() returns only the number of pages actually added
[wxWidgets.git] / src / gtk1 / icon.cpp
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: icon.cpp
3// Purpose:
4// Author: Robert Roebling
a81258be
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
c801d85f
KB
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifdef __GNUG__
11#pragma implementation "icon.h"
12#endif
13
14#include "wx/icon.h"
15
16//-----------------------------------------------------------------------------
17// wxIcon
18//-----------------------------------------------------------------------------
19
20IMPLEMENT_DYNAMIC_CLASS(wxIcon,wxBitmap)
21
e52f60e6
RR
22wxIcon::wxIcon( const char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
23 wxBitmap( bits )
24{
25}
26
52cbfcf0 27wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
e52f60e6 28 wxBitmap( bits )
219f895a 29{
ff7b1510 30}
219f895a 31
52cbfcf0
RR
32wxIcon::wxIcon() : wxBitmap()
33{
34}
35
e52f60e6 36wxIcon::wxIcon( const wxIcon& icon ) : wxBitmap()
52cbfcf0 37{
e52f60e6 38 Ref(icon);
52cbfcf0
RR
39}
40
e52f60e6 41wxIcon::wxIcon( const wxIcon* icon ) : wxBitmap()
52cbfcf0 42{
e52f60e6 43 if (icon) Ref(*icon);
52cbfcf0
RR
44}
45
e52f60e6 46wxIcon& wxIcon::operator = ( const wxIcon& icon )
52cbfcf0 47{
e52f60e6
RR
48 if (*this == icon) return (*this);
49 Ref(icon);
50 return *this;
52cbfcf0
RR
51}
52