]>
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
); }
43 wxIcon( char **bits
, int width
=-1, int height
=-1 );
45 inline wxIcon
& operator = (const wxIcon
& icon
) { if (*this == icon
) return (*this); Ref(icon
); return *this; }
46 inline bool operator == (const wxIcon
& icon
) { return m_refData
== icon
.m_refData
; }
47 inline bool operator != (const wxIcon
& icon
) { return m_refData
!= icon
.m_refData
; }
51 #endif // __GTKICONH__