Class: Wx::OperatingSystemId

Inherits:
Enum
  • Object
show all
Defined in:
lib/wx/doc/gen/platform_info.rb

Overview

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 checking for operating system families like e.g. OS_MAC and OS_UNIX. Note that you can obtain more detailed information about the current OS version in use by checking the major, minor, and micro version numbers returned by get_os_version or by PlatformInfo#get_os_major_version, PlatformInfo#get_os_minor_version, and PlatformInfo#get_os_micro_version.

Constant Summary collapse

OS_UNKNOWN =

Returned on error.

Wx::OperatingSystemId.new(0)
OS_MAC_OS =

Apple Mac OS 8/9/X with Mac paths.

Wx::OperatingSystemId.new(1)
OS_MAC_OSX_DARWIN =

Apple macOS with Unix paths.

Wx::OperatingSystemId.new(2)
OS_MAC =

A combination of all wxOS_MAC_* values previously listed.

Wx::OperatingSystemId.new(3)
OS_WINDOWS_NT =

Windows NT family (XP/Vista/7/8/10/11)

Wx::OperatingSystemId.new(8)
OS_WINDOWS =

Any Windows system, currently can be only OS_WINDOWS_NT.

Wx::OperatingSystemId.new(60)
OS_UNIX_LINUX =

Linux.

Wx::OperatingSystemId.new(64)
OS_UNIX_FREEBSD =

FreeBSD.

Wx::OperatingSystemId.new(128)
OS_UNIX_OPENBSD =

OpenBSD.

Wx::OperatingSystemId.new(256)
OS_UNIX_NETBSD =

NetBSD.

Wx::OperatingSystemId.new(512)
OS_UNIX_SOLARIS =

SunOS.

Wx::OperatingSystemId.new(1024)
OS_UNIX_AIX =

AIX.

Wx::OperatingSystemId.new(2048)
OS_UNIX_HPUX =

HP/UX.

Wx::OperatingSystemId.new(4096)
OS_UNIX =

A combination of all wxOS_UNIX_* values previously listed.

Wx::OperatingSystemId.new(8128)

Method Summary

Methods inherited from Enum

#!, #&, #<=>, [], #allbits?, #anybits?, #coerce, enumerators, #eql?, #initialize, #inspect, #integer?, #method_missing, #nobits?, non_distinct, #real?, set_non_distinct, #succ, #to_int, #to_s, #|, #~

Constructor Details

This class inherits a constructor from Wx::Enum

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Wx::Enum