]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/icon.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
20 #include "wx/object.h"
21 #include "wx/bitmap.h"
23 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
33 class wxIcon
: public wxBitmap
35 DECLARE_DYNAMIC_CLASS(wxIcon
)
41 inline wxIcon(const wxIcon
& icon
) { Ref(icon
); }
42 inline wxIcon(const wxIcon
* icon
) { if (icon
) Ref(*icon
); }
44 wxIcon( char **bits
, int WXUNUSED(width
), int WXUNUSED(height
) ) :
47 inline wxIcon
& operator = (const wxIcon
& icon
) { if (*this == icon
) return (*this); Ref(icon
); return *this; }
48 inline bool operator == (const wxIcon
& icon
) { return m_refData
== icon
.m_refData
; }
49 inline bool operator != (const wxIcon
& icon
) { return m_refData
!= icon
.m_refData
; }
53 #endif // __GTKICONH__