introduced wxICON_DEFAULT_TYPE and wxBITMAP_DEFAULT_TYPE; documented these default...
[wxWidgets.git] / include / wx / icon.h
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
8 // RCS-ID: $Id$
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_ICON_H_BASE_
13 #define _WX_ICON_H_BASE_
14
15 #include "wx/iconloc.h"
16
17
18 // the wxICON_DEFAULT_TYPE (the wxIcon equivalent of wxBITMAP_DEFAULT_TYPE)
19 // constant defines the default argument value for wxIcon ctor and wxIcon::LoadFile()
20 // functions.
21 #if defined(__WXMSW__)
22 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
23 #elif defined(__WXMGL__)
24 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
25 #elif defined(__WXMAC__) && wxOSX_USE_COCOA_OR_CARBON
26 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICON_RESOURCE
27 #else
28 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
29 #endif
30
31 // a more readable way to tell
32 #define wxICON_SCREEN_DEPTH (-1)
33
34 #if defined(__WXPALMOS__)
35 #include "wx/generic/icon.h"
36 #elif defined(__WXMSW__)
37 #include "wx/msw/icon.h"
38 #elif defined(__WXMOTIF__)
39 #include "wx/motif/icon.h"
40 #elif defined(__WXGTK20__)
41 #include "wx/generic/icon.h"
42 #elif defined(__WXGTK__)
43 #include "wx/generic/icon.h"
44 #elif defined(__WXX11__)
45 #include "wx/generic/icon.h"
46 #elif defined(__WXMGL__)
47 #include "wx/generic/icon.h"
48 #elif defined(__WXDFB__)
49 #include "wx/generic/icon.h"
50 #elif defined(__WXMAC__)
51 #if wxOSX_USE_COCOA_OR_CARBON
52 #include "wx/osx/icon.h"
53 #else
54 #include "wx/generic/icon.h"
55 #endif
56 #elif defined(__WXCOCOA__)
57 #include "wx/cocoa/icon.h"
58 #elif defined(__WXPM__)
59 #include "wx/os2/icon.h"
60 #endif
61
62 //-----------------------------------------------------------------------------
63 // wxVariant support
64 //-----------------------------------------------------------------------------
65
66 #if wxUSE_VARIANT
67 #include "wx/variant.h"
68 DECLARE_VARIANT_OBJECT_EXPORTED(wxIcon,WXDLLIMPEXP_CORE)
69 #endif
70
71
72 #endif
73 // _WX_ICON_H_BASE_