]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/icon.h
Add some basic tests for wxDataViewCtrl selection handling.
[wxWidgets.git] / include / wx / icon.h
... / ...
CommitLineData
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// a more readable way to tell
19#define wxICON_SCREEN_DEPTH (-1)
20
21
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()
24// functions.
25
26#if defined(__WXPALMOS__)
27 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
28 #include "wx/generic/icon.h"
29#elif defined(__WXMSW__)
30 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
31 #include "wx/msw/icon.h"
32#elif defined(__WXMOTIF__)
33 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
34 #include "wx/motif/icon.h"
35#elif defined(__WXGTK20__)
36 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
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(__WXMGL__)
45 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
46 #include "wx/generic/icon.h"
47#elif defined(__WXDFB__)
48 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_XPM
49 #include "wx/generic/icon.h"
50#elif defined(__WXMAC__)
51#if wxOSX_USE_COCOA_OR_CARBON
52 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICON_RESOURCE
53 #include "wx/osx/icon.h"
54#else
55 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_PNG_RESOURCE
56 #include "wx/generic/icon.h"
57#endif
58#elif defined(__WXCOCOA__)
59 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICON_RESOURCE
60 #include "wx/cocoa/icon.h"
61#elif defined(__WXPM__)
62 #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICO_RESOURCE
63 #include "wx/os2/icon.h"
64#endif
65
66//-----------------------------------------------------------------------------
67// wxVariant support
68//-----------------------------------------------------------------------------
69
70#if wxUSE_VARIANT
71#include "wx/variant.h"
72DECLARE_VARIANT_OBJECT_EXPORTED(wxIcon,WXDLLIMPEXP_CORE)
73#endif
74
75
76#endif
77 // _WX_ICON_H_BASE_