]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/icon.h
converted to 16 colors
[wxWidgets.git] / include / wx / gtk1 / icon.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: icon.h
3// Purpose:
4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
8bbe427f 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __GTKICONH__
12#define __GTKICONH__
13
14#ifdef __GNUG__
15#pragma interface
16#endif
17
18#include "wx/defs.h"
19#include "wx/object.h"
20#include "wx/bitmap.h"
21
22//-----------------------------------------------------------------------------
23// classes
24//-----------------------------------------------------------------------------
25
26class wxIcon;
27
28//-----------------------------------------------------------------------------
29// wxIcon
30//-----------------------------------------------------------------------------
31
32class wxIcon: public wxBitmap
33{
34 DECLARE_DYNAMIC_CLASS(wxIcon)
35
36public:
37
8bbe427f 38 wxIcon();
e52f60e6 39 wxIcon( const wxIcon& icon);
e52f60e6 40 wxIcon( const char **bits, int width=-1, int height=-1 );
793f619f
JS
41
42 // For compatibility with wxMSW where desired size is sometimes required to
43 // distinguish between multiple icons in a resource.
44 wxIcon( const wxString& filename, int type = wxBITMAP_TYPE_XPM, int WXUNUSED(desiredWidth)=-1, int WXUNUSED(desiredHeight)=-1 ):
45 wxBitmap(filename, type)
46 {
47 }
219f895a 48 wxIcon( char **bits, int width=-1, int height=-1 );
f9d855de
RD
49
50 wxIcon& operator = (const wxIcon& icon);
c801d85f
KB
51 inline bool operator == (const wxIcon& icon) { return m_refData == icon.m_refData; }
52 inline bool operator != (const wxIcon& icon) { return m_refData != icon.m_refData; }
53};
54
55
56#endif // __GTKICONH__