]> git.saurik.com Git - wxWidgets.git/blame - include/wx/features.h
Add wxBitmap::GetNSImage() which creates an autoreleased NSImage either
[wxWidgets.git] / include / wx / features.h
CommitLineData
d65c269b
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/features.h
3// Purpose: test macros for the features which might be available in some
4// wxWindows ports but not others
5// Author: Vadim Zeitlin
6// Modified by:
7// Created: 18.03.02
8// RCS-ID: $Id$
9// Copyright: (c) 2002 Vadim Zeitlin <vadim@wxwindows.org>
10// Licence: wxWindows licence
11/////////////////////////////////////////////////////////////////////////////
12
13#ifndef _WX_FEATURES_H_
14#define _WX_FEATURES_H_
15
0472ece7
VZ
16// radio menu items are currently only implemented in wxGTK and wxMSW
17#if defined(__WXGTK__) || defined(__WXMSW__)
d65c269b
VZ
18 #define wxHAS_RADIO_MENU_ITEMS
19#else
20 #undef wxHAS_RADIO_MENU_ITEMS
21#endif
22
9c7df356
VZ
23// the raw keyboard codes are generated under wxGTK and wxMSW only
24#if defined(__WXGTK__) || defined(__WXMSW__)
25 #define wxHAS_RAW_KEY_CODES
26#else
27 #undef wxHAS_RAW_KEY_CODES
28#endif
29
12617ca5
JS
30// detect SmartPhone
31#ifdef WIN32_PLATFORM_WFSP
32 #ifdef wxUSE_SMARTPHONE
33 #undef wxUSE_SMARTPHONE
34 #endif
35 #define wxUSE_SMARTPHONE 1
36#endif
37
3191ff3b
VS
38// taskbar is only implemented in wxMSW and X11 ports
39#if defined(__WXMSW__) || \
9795182e 40 defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXX11__)
3191ff3b
VS
41 #define wxHAS_TASK_BAR_ICON
42#else
43 #undef wxHAS_TASK_BAR_ICON
44#endif
45
81e3be0e
VZ
46// wxIconLocation appeared in the middle of 2.5.0 so it's handy to have a
47// separate define for it
48#define wxHAS_ICON_LOCATION
49
50// same for wxCrashReport
51#ifdef __WXMSW__
52 #define wxHAS_CRASH_REPORT
53#else
54 #undef wxHAS_CRASH_REPORT
55#endif
56
d65c269b
VZ
57#endif // _WX_FEATURES_H_
58