This class holds informations about the operating system and the toolkit that the application is running under and some basic architecture info of the machine where it's running.
The following are the operating systems which are recognized by wxWidgets and whose version can be detected at run-time. The values of the constants are chosen so that they can be combined as flags; this allows to check for operating system families like e.g. wxOS_MAC and wxOS_UNIX.
returned on error
| | Apple Mac OS 8/9/X with Mac paths
| | Apple Mac OS X with Unix paths
| | wxOS_MAC_OS | wxOS_MAC_OSX_DARWIN,
| | Windows 9x family (95/98/ME)
| | Windows NT family (NT/2000/XP)
| | MicroWindows
| | Windows CE (Window Mobile)
| | wxOS_WINDOWS_9X | wxOS_WINDOWS_NT | wxOS_WINDOWS_MICRO | wxOS_WINDOWS_CE
| | Linux
| | FreeBSD
| | OpenBSD
| | NetBSD
| | SunOS
| | AIX
| | HP/UX
| | wxOS_UNIX_LINUX | wxOS_UNIX_FREEBSD | wxOS_UNIX_OPENBSD | wxOS_UNIX_NETBSD
| wxOS_UNIX_SOLARIS | wxOS_UNIX_AIX | wxOS_UNIX_HPUX
| | Microsoft DOS
| | OS/2
| |
The list of wxWidgets ports. 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.
returned on error
| | wxBase, no native toolkit used
| | wxMSW, native toolkit is Windows API
| | wxMotif, using [Open]Motif or Lesstif
| | wxGTK, using GTK+ 1.x, 2.x, GPE or Maemo
| | wxMGL, using wxUniversal
| | wxX11, using wxUniversal
| | wxOS2, using OS/2 Presentation Manager
| | wxMac, using Carbon or Classic Mac API
| | wxCocoa, using Cocoa NextStep/Mac API
| | wxWinCE, toolkit is WinCE SDK API
| | wxPalmOS, toolkit is PalmOS API
| | wxDFB, using wxUniversal
| |
The architecture of the operating system (regardless of the build environment of wxWidgets library - see is_platform_64bit documentation for more info).
returned on error
| | 32 bit
| | 64 bit
| |
| |
The endian-ness of the machine.
returned on error
| | 4321
| | 1234
| | 3412
| |
| |
Returns true if the OS version is at least major.minor.
Returns true if the toolkit version is at least major.minor.
Converts the given string to a wxArchitecture enum value or to wxARCH_INVALID if the given string is not a valid architecture string (i.e. does not contain nor 32 nor 64 strings).
Converts the given string to a wxArchitecture enum value or to wxARCH_INVALID if the given string is not a valid architecture string (i.e. does not contain nor 32 nor 64 strings).
Returns the name for the architecture of this wxPlatformInfo instance.
Returns the name for the given wxArchitecture enumeration value.
Returns the endianness ID of this wxPlatformInfo instance.
Converts the given string to a wxEndianness enum value or to wxENDIAN_INVALID if the given string is not a valid endianness string (i.e. does not contain nor little nor big strings).
Returns the name for the endianness of this wxPlatformInfo instance.
Returns name for the given wxEndianness enumeration value.
Returns the operating system family name of the OS associated with this wxPlatformInfo instance.
Returns the operating system family name for the given wxOperatingSystemId enumeration value: Unix for wxOS_UNIX, Macintosh for wxOS_MAC, Windows for wxOS_WINDOWS, DOS for wxOS_DOS, OS/2 for wxOS_OS2.
Returns the operating system ID of this wxPlatformInfo instance.
Converts the given string to a wxOperatingSystemId enum value or to wxOS_UNKNOWN if the given string is not a valid operating system name.
Returns the operating system name of the OS associated with this wxPlatformInfo instance.
Returns the name for the given operating system ID value. This can be a long name (e.g. Microsoft Windows NT); use get_os_family_name to retrieve a short, generic name.
Returns the run-time major version of the OS associated with this wxPlatformInfo instance.
Returns the run-time minor version of the OS associated with this wxPlatformInfo instance.
Returns the wxWidgets port ID associated with this wxPlatformInfo instance.
Converts the given string to a wxWidgets port ID value or to 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).
Returns the name of the wxWidgets port ID associated with this wxPlatformInfo instance.
Returns the name of the given wxWidgets port ID value. The using_universal 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.
Returns the short name of the wxWidgets port ID associated with this wxPlatformInfo instance.
Returns the short name of the given wxWidgets port ID value. The using_universal argument specifies whether the port is in its native or wxUniversal variant.
The returned string does not start with the "wx" prefix and is always lower case.
Returns the run-time major version of the toolkit associated with this wxPlatformInfo instance. Note that if GetPortId returns wxPORT_BASE, then this value is zero; that is, no native toolkit is in use.
Returns the run-time minor version of the toolkit associated with this wxPlatformInfo instance. Note that if GetPortId returns wxPORT_BASE, then this value is zero; that is, no native toolkit is in use.
Returns true if this instance is fully initialized with valid values.
Returns true if this wxPlatformInfo describes wxUniversal build.