]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: icon.h | |
3 | // Purpose: | |
4 | // Author: Robert Roebling | |
5 | // Created: 01/02/97 | |
6 | // Id: | |
7 | // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem | |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | ||
12 | #ifndef __GTKICONH__ | |
13 | #define __GTKICONH__ | |
14 | ||
15 | #ifdef __GNUG__ | |
16 | #pragma interface | |
17 | #endif | |
18 | ||
19 | #include "wx/defs.h" | |
20 | #include "wx/object.h" | |
21 | #include "wx/bitmap.h" | |
22 | ||
23 | //----------------------------------------------------------------------------- | |
24 | // classes | |
25 | //----------------------------------------------------------------------------- | |
26 | ||
27 | class wxIcon; | |
28 | ||
29 | //----------------------------------------------------------------------------- | |
30 | // wxIcon | |
31 | //----------------------------------------------------------------------------- | |
32 | ||
33 | class wxIcon: public wxBitmap | |
34 | { | |
35 | DECLARE_DYNAMIC_CLASS(wxIcon) | |
36 | ||
37 | public: | |
38 | ||
39 | wxIcon(void) {}; | |
40 | ||
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 ); | |
44 | ||
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; } | |
48 | }; | |
49 | ||
50 | ||
51 | #endif // __GTKICONH__ |