]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/icon.h
Added wxEVT_SCROLL[WIN]_THUMBRELEASE
[wxWidgets.git] / include / wx / gtk1 / icon.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: icon.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
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
26 class wxIcon;
27
28 //-----------------------------------------------------------------------------
29 // wxIcon
30 //-----------------------------------------------------------------------------
31
32 class wxIcon: public wxBitmap
33 {
34 public:
35 wxIcon();
36 wxIcon( const wxIcon& icon);
37 wxIcon( const char **bits, int width=-1, int height=-1 );
38
39 // For compatibility with wxMSW where desired size is sometimes required to
40 // distinguish between multiple icons in a resource.
41 wxIcon( const wxString& filename, int type = wxBITMAP_TYPE_XPM,
42 int WXUNUSED(desiredWidth)=-1, int WXUNUSED(desiredHeight)=-1 ) :
43 wxBitmap(filename, type)
44 {
45 }
46 wxIcon( char **bits, int width=-1, int height=-1 );
47
48 wxIcon& operator = (const wxIcon& icon);
49 inline bool operator == (const wxIcon& icon) { return m_refData == icon.m_refData; }
50 inline bool operator != (const wxIcon& icon) { return m_refData != icon.m_refData; }
51
52 private:
53 DECLARE_DYNAMIC_CLASS(wxIcon)
54 };
55
56
57 #endif // __GTKICONH__