]> git.saurik.com Git - wxWidgets.git/blob - include/wx/icon.h
Set missing Language: headers in PO files.
[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 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_ICON_H_BASE_
12 #define _WX_ICON_H_BASE_
13
14 #include "wx/iconloc.h"
15
16
17 // a more readable way to tell
18 #define wxICON_SCREEN_DEPTH (-1)
19
20
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.
24
25 #if defined(__WXMSW__)
26 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
27 #include "wx/msw/icon.h"
28 #elif defined(__WXMOTIF__)
29 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
30 #include "wx/motif/icon.h"
31 #elif defined(__WXGTK20__)
32 #ifdef __WINDOWS__
33 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
34 #else
35 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
36 #endif
37 #include "wx/generic/icon.h"
38 #elif defined(__WXGTK__)
39 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
40 #include "wx/generic/icon.h"
41 #elif defined(__WXX11__)
42 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
43 #include "wx/generic/icon.h"
44 #elif defined(__WXDFB__)
45 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
46 #include "wx/generic/icon.h"
47 #elif defined(__WXMAC__)
48 #if wxOSX_USE_COCOA_OR_CARBON
49 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICON_RESOURCE
50 #include "wx/osx/icon.h"
51 #else
52 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_PNG_RESOURCE
53 #include "wx/generic/icon.h"
54 #endif
55 #elif defined(__WXCOCOA__)
56 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICON_RESOURCE
57 #include "wx/cocoa/icon.h"
58 #elif defined(__WXPM__)
59 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
60 #include "wx/os2/icon.h"
61 #endif
62
63 //-----------------------------------------------------------------------------
64 // wxVariant support
65 //-----------------------------------------------------------------------------
66
67 #if wxUSE_VARIANT
68 #include "wx/variant.h"
69 DECLARE_VARIANT_OBJECT_EXPORTED(wxIcon,WXDLLIMPEXP_CORE)
70 #endif
71
72
73 #endif
74 // _WX_ICON_H_BASE_