]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/icon.h
5eebb3f38e0d1286879112f291d23817ca60c85d
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxIcon base header
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_ICON_H_BASE_
13 #define _WX_ICON_H_BASE_
15 #include "wx/iconloc.h"
18 // a more readable way to tell
19 #define wxICON_SCREEN_DEPTH (-1)
22 // the wxICON_DEFAULT_TYPE (the wxIcon equivalent of wxBITMAP_DEFAULT_TYPE)
23 // constant defines the default argument value for wxIcon ctor and wxIcon::LoadFile()
26 #if defined(__WXMSW__)
27 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
28 #include "wx/msw/icon.h"
29 #elif defined(__WXMOTIF__)
30 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
31 #include "wx/motif/icon.h"
32 #elif defined(__WXGTK20__)
34 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
36 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
38 #include "wx/generic/icon.h"
39 #elif defined(__WXGTK__)
40 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
41 #include "wx/generic/icon.h"
42 #elif defined(__WXX11__)
43 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
44 #include "wx/generic/icon.h"
45 #elif defined(__WXDFB__)
46 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
47 #include "wx/generic/icon.h"
48 #elif defined(__WXMAC__)
49 #if wxOSX_USE_COCOA_OR_CARBON
50 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICON_RESOURCE
51 #include "wx/osx/icon.h"
53 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_PNG_RESOURCE
54 #include "wx/generic/icon.h"
56 #elif defined(__WXCOCOA__)
57 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICON_RESOURCE
58 #include "wx/cocoa/icon.h"
59 #elif defined(__WXPM__)
60 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
61 #include "wx/os2/icon.h"
64 //-----------------------------------------------------------------------------
66 //-----------------------------------------------------------------------------
69 #include "wx/variant.h"
70 DECLARE_VARIANT_OBJECT_EXPORTED(wxIcon
,WXDLLIMPEXP_CORE
)