2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: platinfo.h
|
2008-03-10 11:24:38 -04:00
|
|
|
// Purpose: interface of wxPlatformInfo
|
2008-03-08 08:52:38 -05:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2008-04-06 12:19:04 -04:00
|
|
|
/**
|
2008-04-06 08:52:58 -04:00
|
|
|
The following are the operating systems which are recognized by wxWidgets and
|
|
|
|
whose version can be detected at run-time.
|
2008-04-06 12:19:04 -04:00
|
|
|
|
2008-04-06 08:52:58 -04:00
|
|
|
The values of the constants are chosen so that they can be combined as flags;
|
2008-04-06 12:19:04 -04:00
|
|
|
this allows to check for operating system families like e.g. wxOS_MAC and wxOS_UNIX.
|
|
|
|
*/
|
|
|
|
enum wxOperatingSystemId
|
|
|
|
{
|
|
|
|
wxOS_UNKNOWN = 0, //!< returned on error
|
|
|
|
|
|
|
|
wxOS_MAC_OS = 1 << 0, //!< Apple Mac OS 8/9/X with Mac paths
|
|
|
|
wxOS_MAC_OSX_DARWIN = 1 << 1, //!< Apple Mac OS X with Unix paths
|
|
|
|
wxOS_MAC = wxOS_MAC_OS|wxOS_MAC_OSX_DARWIN,
|
|
|
|
|
|
|
|
wxOS_WINDOWS_9X = 1 << 2, //!< Windows 9x family (95/98/ME)
|
|
|
|
wxOS_WINDOWS_NT = 1 << 3, //!< Windows NT family (NT/2000/XP)
|
|
|
|
wxOS_WINDOWS_MICRO = 1 << 4, //!< MicroWindows
|
|
|
|
wxOS_WINDOWS_CE = 1 << 5, //!< Windows CE (Window Mobile)
|
|
|
|
wxOS_WINDOWS = wxOS_WINDOWS_9X |
|
|
|
|
wxOS_WINDOWS_NT |
|
|
|
|
wxOS_WINDOWS_MICRO |
|
|
|
|
wxOS_WINDOWS_CE,
|
|
|
|
|
|
|
|
wxOS_UNIX_LINUX = 1 << 6, //!< Linux
|
|
|
|
wxOS_UNIX_FREEBSD = 1 << 7, //!< FreeBSD
|
|
|
|
wxOS_UNIX_OPENBSD = 1 << 8, //!< OpenBSD
|
|
|
|
wxOS_UNIX_NETBSD = 1 << 9, //!< NetBSD
|
|
|
|
wxOS_UNIX_SOLARIS = 1 << 10, //!< SunOS
|
|
|
|
wxOS_UNIX_AIX = 1 << 11, //!< AIX
|
|
|
|
wxOS_UNIX_HPUX = 1 << 12, //!< HP/UX
|
|
|
|
wxOS_UNIX = wxOS_UNIX_LINUX |
|
|
|
|
wxOS_UNIX_FREEBSD |
|
|
|
|
wxOS_UNIX_OPENBSD |
|
|
|
|
wxOS_UNIX_NETBSD |
|
|
|
|
wxOS_UNIX_SOLARIS |
|
|
|
|
wxOS_UNIX_AIX |
|
|
|
|
wxOS_UNIX_HPUX,
|
|
|
|
|
|
|
|
wxOS_DOS = 1 << 15, //!< Microsoft DOS
|
|
|
|
wxOS_OS2 = 1 << 16 //!< OS/2
|
|
|
|
};
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2008-04-06 12:19:04 -04:00
|
|
|
/**
|
2008-04-06 08:52:58 -04:00
|
|
|
The list of wxWidgets ports.
|
2008-04-06 12:19:04 -04:00
|
|
|
|
2008-04-06 08:52:58 -04:00
|
|
|
Some of them can be used with more than a single (native) toolkit;
|
|
|
|
e.g. wxWinCE port sources can be used with smartphones, pocket PCs
|
|
|
|
and handheld devices SDKs.
|
2008-04-06 12:19:04 -04:00
|
|
|
*/
|
|
|
|
enum wxPortId
|
|
|
|
{
|
|
|
|
wxPORT_UNKNOWN = 0, //!< returned on error
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2008-04-06 12:19:04 -04:00
|
|
|
wxPORT_BASE = 1 << 0, //!< wxBase, no native toolkit used
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2008-04-06 12:19:04 -04:00
|
|
|
wxPORT_MSW = 1 << 1, //!< wxMSW, native toolkit is Windows API
|
|
|
|
wxPORT_MOTIF = 1 << 2, //!< wxMotif, using [Open]Motif or Lesstif
|
|
|
|
wxPORT_GTK = 1 << 3, //!< wxGTK, using GTK+ 1.x, 2.x, GPE or Maemo
|
|
|
|
wxPORT_MGL = 1 << 4, //!< wxMGL, using wxUniversal
|
|
|
|
wxPORT_X11 = 1 << 5, //!< wxX11, using wxUniversal
|
|
|
|
wxPORT_OS2 = 1 << 6, //!< wxOS2, using OS/2 Presentation Manager
|
|
|
|
wxPORT_MAC = 1 << 7, //!< wxMac, using Carbon or Classic Mac API
|
|
|
|
wxPORT_COCOA = 1 << 8, //!< wxCocoa, using Cocoa NextStep/Mac API
|
|
|
|
wxPORT_WINCE = 1 << 9, //!< wxWinCE, toolkit is WinCE SDK API
|
|
|
|
wxPORT_PALMOS = 1 << 10, //!< wxPalmOS, toolkit is PalmOS API
|
|
|
|
wxPORT_DFB = 1 << 11 //!< wxDFB, using wxUniversal
|
|
|
|
};
|
2008-04-06 08:52:58 -04:00
|
|
|
|
|
|
|
|
2008-04-06 12:19:04 -04:00
|
|
|
/**
|
2008-04-06 08:52:58 -04:00
|
|
|
The architecture of the operating system
|
2008-04-10 17:16:38 -04:00
|
|
|
(regardless of the build environment of wxWidgets library - see ::wxIsPlatform64bit()
|
|
|
|
documentation for more info).
|
2008-04-06 12:19:04 -04:00
|
|
|
*/
|
|
|
|
enum wxArchitecture
|
|
|
|
{
|
|
|
|
wxARCH_INVALID = -1, //!< returned on error
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2008-04-06 12:19:04 -04:00
|
|
|
wxARCH_32, //!< 32 bit
|
2009-05-31 12:34:13 -04:00
|
|
|
wxARCH_64, //!< 64 bit
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2008-04-06 12:19:04 -04:00
|
|
|
wxARCH_MAX
|
2008-04-19 04:12:58 -04:00
|
|
|
};
|
2008-04-06 08:52:58 -04:00
|
|
|
|
|
|
|
|
2008-04-06 12:19:04 -04:00
|
|
|
/**
|
2008-04-06 08:52:58 -04:00
|
|
|
The endian-ness of the machine.
|
2008-04-06 12:19:04 -04:00
|
|
|
*/
|
|
|
|
enum wxEndianness
|
|
|
|
{
|
|
|
|
wxENDIAN_INVALID = -1, //!< returned on error
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2008-04-06 12:19:04 -04:00
|
|
|
wxENDIAN_BIG, //!< 4321
|
|
|
|
wxENDIAN_LITTLE, //!< 1234
|
|
|
|
wxENDIAN_PDP, //!< 3412
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2008-04-06 12:19:04 -04:00
|
|
|
wxENDIAN_MAX
|
2008-04-19 04:12:58 -04:00
|
|
|
};
|
2008-04-06 08:52:58 -04:00
|
|
|
|
|
|
|
|
2008-04-06 12:19:04 -04:00
|
|
|
/**
|
|
|
|
@class wxPlatformInfo
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2009-05-31 12:34:13 -04:00
|
|
|
This class holds informations about the operating system, the toolkit and the
|
|
|
|
basic architecture of the machine where the application is currently running.
|
|
|
|
|
|
|
|
This class does not only have @e getters for the informations above, it also has
|
|
|
|
@e setters. This allows you to e.g. save the current platform informations in a
|
|
|
|
data file (maybe in string form) so that when you later load it, you can easily
|
|
|
|
retrieve (see the static getters for string->enum conversion functions) the
|
|
|
|
signature of the system which generated it.
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2008-04-06 12:19:04 -04:00
|
|
|
@library{wxbase}
|
2009-02-20 06:34:52 -05:00
|
|
|
@category{cfg}
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2008-04-06 12:19:04 -04:00
|
|
|
@see ::wxGetOsVersion(), wxIsPlatformLittleEndian(), wxIsPlatform64Bit(),
|
2009-05-31 12:34:13 -04:00
|
|
|
wxAppTraits, @ref group_funcmacro_networkuseros
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
class wxPlatformInfo : public wxObject
|
|
|
|
{
|
|
|
|
public:
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
2008-04-06 08:52:58 -04:00
|
|
|
Initializes the instance with the values corresponding to the currently
|
|
|
|
running platform.
|
|
|
|
|
|
|
|
This is a fast operation because it only requires to copy the values
|
|
|
|
internally cached for the currently running platform.
|
|
|
|
|
|
|
|
@see Get()
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
wxPlatformInfo();
|
2008-04-06 08:52:58 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
Initializes the object using given values.
|
|
|
|
*/
|
2008-03-08 09:43:31 -05:00
|
|
|
wxPlatformInfo(wxPortId pid = wxPORT_UNKNOWN,
|
|
|
|
int tkMajor = -1,
|
|
|
|
int tkMinor = -1,
|
|
|
|
wxOperatingSystemId id = wxOS_UNKNOWN,
|
|
|
|
int osMajor = -1,
|
|
|
|
int osMinor = -1,
|
|
|
|
wxArchitecture arch = wxARCH_INVALID,
|
|
|
|
wxEndianness endian = wxENDIAN_INVALID);
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns @true if the OS version is at least @c major.minor.
|
2008-03-20 09:45:17 -04:00
|
|
|
|
2008-03-09 08:33:59 -04:00
|
|
|
@see GetOSMajorVersion(), GetOSMinorVersion(),
|
|
|
|
CheckToolkitVersion()
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-03-09 12:24:26 -04:00
|
|
|
bool CheckOSVersion(int major, int minor) const;
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns @true if the toolkit version is at least @c major.minor.
|
2008-03-20 09:45:17 -04:00
|
|
|
|
2008-03-09 08:33:59 -04:00
|
|
|
@see GetToolkitMajorVersion(),
|
|
|
|
GetToolkitMinorVersion(), CheckOSVersion()
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-03-09 12:24:26 -04:00
|
|
|
bool CheckToolkitVersion(int major, int minor) const;
|
2009-05-31 12:34:13 -04:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Returns @true if this instance is fully initialized with valid values.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
bool IsOk() const;
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Returns @true if this wxPlatformInfo describes wxUniversal build.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
bool IsUsingUniversalWidgets() const;
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Inequality operator. Tests all class' internal variables.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
bool operator!=(const wxPlatformInfo& t) const;
|
2008-04-06 08:52:58 -04:00
|
|
|
|
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Equality operator. Tests all class' internal variables.
|
2008-04-06 08:52:58 -04:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
bool operator==(const wxPlatformInfo& t) const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the global wxPlatformInfo object, initialized with the values
|
|
|
|
for the currently running platform.
|
|
|
|
*/
|
|
|
|
static const wxPlatformInfo& Get();
|
|
|
|
|
|
|
|
/**
|
|
|
|
@name Static enum getters
|
|
|
|
|
|
|
|
These getters allow for easy string-to-enumeration-value conversion.
|
|
|
|
*/
|
|
|
|
//@{
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Converts the given string to a wxArchitecture enum value or to
|
|
|
|
@c wxARCH_INVALID if the given string is not a valid architecture string
|
|
|
|
(i.e. does not contain nor @c 32 nor @c 64 strings).
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
static wxArchitecture GetArch(const wxString& arch);
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
2008-04-06 08:52:58 -04:00
|
|
|
Converts the given string to a wxEndianness enum value or to
|
|
|
|
@c wxENDIAN_INVALID if the given string is not a valid endianness
|
|
|
|
string (i.e. does not contain nor little nor big strings).
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2009-01-10 17:10:54 -05:00
|
|
|
static wxEndianness GetEndianness(const wxString& end);
|
2008-04-06 08:52:58 -04:00
|
|
|
|
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Converts the given string to a wxOperatingSystemId enum value or to @c
|
|
|
|
wxOS_UNKNOWN if the given string is not a valid operating system name.
|
2008-04-06 08:52:58 -04:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
static wxOperatingSystemId GetOperatingSystemId(const wxString& name);
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Converts the given string to a wxWidgets port ID value or to @c wxPORT_UNKNOWN
|
|
|
|
if the given string does not match any of the wxWidgets canonical name ports
|
|
|
|
("wxGTK", "wxMSW", etc) nor any of the short wxWidgets name ports ("gtk", "msw", etc).
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
static wxPortId GetPortId(const wxString& portname);
|
|
|
|
|
|
|
|
//@}
|
|
|
|
|
|
|
|
|
2008-04-06 08:52:58 -04:00
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
@name Static string-form getters
|
|
|
|
|
|
|
|
These getters allow for easy enumeration-value-to-string conversion.
|
2008-04-06 08:52:58 -04:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
//@{
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Returns the name for the given wxArchitecture enumeration value.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
static wxString GetArchName(wxArchitecture arch);
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Returns name for the given wxEndianness enumeration value.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
static wxString GetEndiannessName(wxEndianness end);
|
|
|
|
|
2008-04-06 08:52:58 -04:00
|
|
|
/**
|
|
|
|
Returns the operating system family name for the given wxOperatingSystemId
|
|
|
|
enumeration value: @c Unix for @c wxOS_UNIX, @c Macintosh for @c wxOS_MAC,
|
|
|
|
@c Windows for @c wxOS_WINDOWS, @c DOS for @c wxOS_DOS, @c OS/2 for @c wxOS_OS2.
|
|
|
|
*/
|
2009-01-10 17:10:54 -05:00
|
|
|
static wxString GetOperatingSystemFamilyName(wxOperatingSystemId os);
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Returns the name for the given operating system ID value.
|
2008-03-08 08:52:38 -05:00
|
|
|
|
2009-05-31 12:34:13 -04:00
|
|
|
This can be a long name (e.g. <tt>Microsoft Windows NT</tt>);
|
|
|
|
use GetOperatingSystemFamilyName() to retrieve a short, generic name.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
static wxString GetOperatingSystemIdName(wxOperatingSystemId os);
|
2008-04-06 08:52:58 -04:00
|
|
|
|
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Returns the name of the given wxWidgets port ID value.
|
|
|
|
The @a usingUniversal argument specifies whether the port is in its native
|
|
|
|
or wxUniversal variant.
|
|
|
|
|
|
|
|
The returned string always starts with the "wx" prefix and is a mixed-case string.
|
2008-04-06 08:52:58 -04:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
static wxString GetPortIdName(wxPortId port, bool usingUniversal);
|
2008-03-08 08:52:38 -05:00
|
|
|
|
2008-04-06 08:52:58 -04:00
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Returns the short name of the given wxWidgets port ID value.
|
|
|
|
The @a usingUniversal argument specifies whether the port is in its native
|
|
|
|
or wxUniversal variant.
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2009-05-31 12:34:13 -04:00
|
|
|
The returned string does not start with the "wx" prefix and is always lower case.
|
2008-04-06 08:52:58 -04:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
static wxString GetPortIdShortName(wxPortId port,
|
|
|
|
bool usingUniversal);
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2009-05-31 12:34:13 -04:00
|
|
|
//@}
|
|
|
|
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
@name Getters
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
//@{
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Returns the architecture ID of this wxPlatformInfo instance.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
wxArchitecture GetArchitecture() const;
|
2008-04-06 08:52:58 -04:00
|
|
|
|
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Returns the endianness ID of this wxPlatformInfo instance.
|
2008-04-06 08:52:58 -04:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
wxEndianness GetEndianness() const;
|
2008-03-08 08:52:38 -05:00
|
|
|
|
2008-04-06 08:52:58 -04:00
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Returns the run-time major version of the OS associated with this
|
|
|
|
wxPlatformInfo instance.
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2009-05-31 12:34:13 -04:00
|
|
|
@see ::wxGetOsVersion(), CheckOSVersion()
|
2008-04-06 08:52:58 -04:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
int GetOSMajorVersion() const;
|
2008-04-06 08:52:58 -04:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Returns the run-time minor version of the OS associated with this
|
|
|
|
wxPlatformInfo instance.
|
|
|
|
|
|
|
|
@see ::wxGetOsVersion(), CheckOSVersion()
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
int GetOSMinorVersion() const;
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Returns the operating system ID of this wxPlatformInfo instance.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
wxOperatingSystemId GetOperatingSystemId() const;
|
2008-04-06 08:52:58 -04:00
|
|
|
|
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Returns the wxWidgets port ID associated with this wxPlatformInfo instance.
|
2008-04-06 08:52:58 -04:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
wxPortId GetPortId() const;
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the run-time major version of the toolkit associated with this
|
|
|
|
wxPlatformInfo instance.
|
2008-04-06 08:52:58 -04:00
|
|
|
|
|
|
|
Note that if GetPortId() returns @c wxPORT_BASE, then this value is zero
|
|
|
|
(unless externally modified with SetToolkitVersion()); that is, no native
|
|
|
|
toolkit is in use.
|
|
|
|
See wxAppTraits::GetToolkitVersion() for more info.
|
2008-03-20 09:45:17 -04:00
|
|
|
|
2008-03-09 08:33:59 -04:00
|
|
|
@see CheckToolkitVersion()
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-03-09 12:24:26 -04:00
|
|
|
int GetToolkitMajorVersion() const;
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the run-time minor version of the toolkit associated with this
|
|
|
|
wxPlatformInfo instance.
|
2008-04-06 08:52:58 -04:00
|
|
|
|
|
|
|
Note that if GetPortId() returns @c wxPORT_BASE, then this value is zero
|
|
|
|
(unless externally modified with SetToolkitVersion()); that is, no native
|
|
|
|
toolkit is in use.
|
|
|
|
See wxAppTraits::GetToolkitVersion() for more info.
|
2008-03-20 09:45:17 -04:00
|
|
|
|
2008-03-09 08:33:59 -04:00
|
|
|
@see CheckToolkitVersion()
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-03-09 12:24:26 -04:00
|
|
|
int GetToolkitMinorVersion() const;
|
2009-05-31 12:34:13 -04:00
|
|
|
|
|
|
|
//@}
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
@name String-form getters
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
//@{
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
2009-05-31 12:34:13 -04:00
|
|
|
Returns the name for the architecture of this wxPlatformInfo instance.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2009-05-31 12:34:13 -04:00
|
|
|
wxString GetArchName() const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the name for the endianness of this wxPlatformInfo instance.
|
|
|
|
*/
|
|
|
|
wxString GetEndiannessName() const;
|
2008-03-08 08:52:38 -05:00
|
|
|
|
2009-05-31 12:34:13 -04:00
|
|
|
/**
|
|
|
|
Returns the operating system family name of the OS associated with this
|
|
|
|
wxPlatformInfo instance.
|
|
|
|
*/
|
|
|
|
wxString GetOperatingSystemFamilyName() const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the operating system name of the OS associated with this wxPlatformInfo
|
|
|
|
instance.
|
|
|
|
*/
|
|
|
|
wxString GetOperatingSystemIdName() const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the name of the wxWidgets port ID associated with this wxPlatformInfo
|
|
|
|
instance.
|
|
|
|
*/
|
|
|
|
wxString GetPortIdName() const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the short name of the wxWidgets port ID associated with this
|
|
|
|
wxPlatformInfo instance.
|
|
|
|
*/
|
|
|
|
wxString GetPortIdShortName() const;
|
|
|
|
|
|
|
|
//@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@name Setters
|
|
|
|
*/
|
|
|
|
//@{
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
|
|
|
Sets the architecture enum value associated with this wxPlatformInfo instance.
|
|
|
|
*/
|
|
|
|
void SetArchitecture(wxArchitecture n);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the endianness enum value associated with this wxPlatformInfo instance.
|
|
|
|
*/
|
|
|
|
void SetEndianness(wxEndianness n);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the version of the operating system associated with this wxPlatformInfo
|
|
|
|
instance.
|
|
|
|
*/
|
|
|
|
void SetOSVersion(int major, int minor);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the operating system associated with this wxPlatformInfo instance.
|
|
|
|
*/
|
|
|
|
void SetOperatingSystemId(wxOperatingSystemId n);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the wxWidgets port ID associated with this wxPlatformInfo instance.
|
|
|
|
*/
|
|
|
|
void SetPortId(wxPortId n);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the version of the toolkit associated with this wxPlatformInfo instance.
|
|
|
|
*/
|
|
|
|
void SetToolkitVersion(int major, int minor);
|
2009-05-31 12:34:13 -04:00
|
|
|
|
|
|
|
//@}
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
};
|
2008-03-10 11:24:38 -04:00
|
|
|
|