]>
Commit | Line | Data |
---|---|---|
99d80019 JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/icon.h | |
3 | // Purpose: wxIcon base header | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: | |
7 | // Copyright: (c) Julian Smart | |
99d80019 JS |
8 | // Licence: wxWindows licence |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
34138703 JS |
11 | #ifndef _WX_ICON_H_BASE_ |
12 | #define _WX_ICON_H_BASE_ | |
c801d85f | 13 | |
aaf7ab43 | 14 | #include "wx/iconloc.h" |
03f38c58 | 15 | |
cbea3ec6 | 16 | |
c48d0d37 FM |
17 | // a more readable way to tell |
18 | #define wxICON_SCREEN_DEPTH (-1) | |
19 | ||
20 | ||
cbea3ec6 FM |
21 | // the wxICON_DEFAULT_TYPE (the wxIcon equivalent of wxBITMAP_DEFAULT_TYPE) |
22 | // constant defines the default argument value for wxIcon ctor and wxIcon::LoadFile() | |
23 | // functions. | |
cbea3ec6 | 24 | |
bd362275 | 25 | #if defined(__WXMSW__) |
c48d0d37 | 26 | #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE |
03f38c58 | 27 | #include "wx/msw/icon.h" |
2049ba38 | 28 | #elif defined(__WXMOTIF__) |
c48d0d37 | 29 | #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM |
03f38c58 | 30 | #include "wx/motif/icon.h" |
1be7a35c | 31 | #elif defined(__WXGTK20__) |
327972e7 VZ |
32 | #ifdef __WINDOWS__ |
33 | #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE | |
34 | #else | |
35 | #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM | |
36 | #endif | |
71451a6d | 37 | #include "wx/generic/icon.h" |
1be7a35c | 38 | #elif defined(__WXGTK__) |
c48d0d37 | 39 | #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM |
71451a6d | 40 | #include "wx/generic/icon.h" |
83df96d6 | 41 | #elif defined(__WXX11__) |
c48d0d37 | 42 | #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM |
71451a6d | 43 | #include "wx/generic/icon.h" |
b3c86150 | 44 | #elif defined(__WXDFB__) |
c48d0d37 | 45 | #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM |
b3c86150 | 46 | #include "wx/generic/icon.h" |
34138703 | 47 | #elif defined(__WXMAC__) |
973b546e | 48 | #if wxOSX_USE_COCOA_OR_CARBON |
c48d0d37 | 49 | #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICON_RESOURCE |
ef0e9220 | 50 | #include "wx/osx/icon.h" |
ac9e3f1f | 51 | #else |
7f37eded | 52 | #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_PNG_RESOURCE |
ac9e3f1f SC |
53 | #include "wx/generic/icon.h" |
54 | #endif | |
e64df9bc | 55 | #elif defined(__WXCOCOA__) |
c48d0d37 | 56 | #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICON_RESOURCE |
e64df9bc | 57 | #include "wx/cocoa/icon.h" |
1777b9bb | 58 | #elif defined(__WXPM__) |
c48d0d37 | 59 | #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE |
1777b9bb | 60 | #include "wx/os2/icon.h" |
c801d85f KB |
61 | #endif |
62 | ||
6f5d7825 RR |
63 | //----------------------------------------------------------------------------- |
64 | // wxVariant support | |
65 | //----------------------------------------------------------------------------- | |
66 | ||
67 | #if wxUSE_VARIANT | |
68 | #include "wx/variant.h" | |
53a2db12 | 69 | DECLARE_VARIANT_OBJECT_EXPORTED(wxIcon,WXDLLIMPEXP_CORE) |
6f5d7825 RR |
70 | #endif |
71 | ||
72 | ||
c801d85f | 73 | #endif |
34138703 | 74 | // _WX_ICON_H_BASE_ |