📄 platinfo.tex
字号:
Returns the name for the endianness of this wxPlatformInfo instance.\membersection{wxPlatformInfo::GetOSMajorVersion}\label{wxplatforminfogetosmajorversion}\constfunc{int}{GetOSMajorVersion}{\void}Returns the run-time major version of the OS associated with this wxPlatformInfo instance.See \helpref{wxGetOsVersion}{wxgetosversion} for more info.\wxheading{See also}\helpref{CheckOSVersion}{wxplatforminfocheckosversion}\membersection{wxPlatformInfo::GetOSMinorVersion}\label{wxplatforminfogetosminorversion}\constfunc{int}{GetOSMinorVersion}{\void}Returns the run-time minor version of the OS associated with this wxPlatformInfo instance.See \helpref{wxGetOsVersion}{wxgetosversion} for more info.\wxheading{See also}\helpref{CheckOSVersion}{wxplatforminfocheckosversion}\membersection{wxPlatformInfo::GetOperatingSystemFamilyName}\label{wxplatforminfogetoperatingsystemfamilyname}\func{static wxString}{GetOperatingSystemFamilyName}{\param{wxOperatingSystemId }{os}}Returns the operating system family name for the given wxOperatingSystemId enumeration value:{\tt Unix} for wxOS\_UNIX, {\tt Macintosh} for wxOS\_MAC, {\tt Windows} for wxOS\_WINDOWS,{\tt DOS} for wxOS\_DOS, {\tt OS/2} for wxOS\_OS2.\constfunc{wxString}{GetOperatingSystemFamilyName}{\void}Returns the operating system family name of the OS associated with this wxPlatformInfo instance.\membersection{wxPlatformInfo::GetOperatingSystemId}\label{wxplatforminfogetoperatingsystemid}\func{static wxOperatingSystemId}{GetOperatingSystemId}{\param{const wxString\& }{name}}Converts the given string to a wxOperatingSystemId enum value or towxOS\_UNKNOWN if the given string is not a valid operating system name.\constfunc{wxOperatingSystemId}{GetOperatingSystemId}{\void}Returns the operating system ID of this wxPlatformInfo instance.\membersection{wxPlatformInfo::GetOperatingSystemIdName}\label{wxplatforminfogetoperatingsystemidname}\func{static wxString}{GetOperatingSystemIdName}{\param{wxOperatingSystemId }{os}}Returns the name for the given operating system ID value. This can be a long name(e.g. {\tt Microsoft Windows NT}); use \helpref{GetOperatingSystemFamilyName}{wxplatforminfogetoperatingsystemfamilyname} toretrieve a short, generic name.\constfunc{wxString}{GetOperatingSystemIdName}{\void}Returns the operating system name of the OS associated with this wxPlatformInfo instance.\membersection{wxPlatformInfo::GetPortId}\label{wxplatforminfogetportid}\func{static wxPortId}{GetPortId}{\param{const wxString\& }{portname}}Converts the given string to a wxWidgets port ID value or to wxPORT\_UNKNOWN ifthe 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).\constfunc{wxPortId}{GetPortId}{\void}Returns the wxWidgets port ID associated with this wxPlatformInfo instance.\membersection{wxPlatformInfo::GetPortIdName}\label{wxplatforminfogetportidname}\func{static wxString}{GetPortIdName}{\param{wxPortId }{port}, \param{bool }{usingUniversal}}Returns the name of the given wxWidgets port ID value. The \arg{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-casestring.\constfunc{wxString}{GetPortIdName}{\void}Returns the name of the wxWidgets port ID associated with this wxPlatformInfo instance.\membersection{wxPlatformInfo::GetPortIdShortName}\label{wxplatforminfogetportidshortname}\func{static wxString}{GetPortIdShortName}{\param{wxPortId }{port}, \param{bool }{usingUniversal}}Returns the short name of the given wxWidgets port ID value. The\arg{usingUniversal} argument specifies whether the port is in its native orwxUniversal variant.The returned string does not start with the "wx" prefix and is always lowercase.\constfunc{wxString}{GetPortIdShortName}{\void}Returns the short name of the wxWidgets port ID associated with this wxPlatformInfo instance.\membersection{wxPlatformInfo::GetToolkitMajorVersion}\label{wxplatforminfogettoolkitmajorversion}\constfunc{int}{GetToolkitMajorVersion}{\void}Returns the run-time major version of the toolkit associated with this wxPlatformInfo instance.Note that if \helpref{GetPortId}{wxplatforminfogetportid} returns wxPORT\_BASE, then this value is zero (unless externally modified with \helpref{SetToolkitVersion}{wxplatforminfosettoolkitversion}); that is, no native toolkit is in use.See \helpref{wxAppTraits::GetToolkitVersion}{wxapptraitsgettoolkitversion} for more info.\wxheading{See also}\helpref{CheckToolkitVersion}{wxplatforminfochecktoolkitversion}\membersection{wxPlatformInfo::GetToolkitMinorVersion}\label{wxplatforminfogettoolkitminorversion}\constfunc{int}{GetToolkitMinorVersion}{\void}Returns the run-time minor version of the toolkit associated with this wxPlatformInfo instance.Note that if \helpref{GetPortId}{wxplatforminfogetportid} returns wxPORT\_BASE, then this value is zero (unless externally modified with \helpref{SetToolkitVersion}{wxplatforminfosettoolkitversion}); that is, no native toolkit is in use.See \helpref{wxAppTraits::GetToolkitVersion}{wxapptraitsgettoolkitversion} for more info.\wxheading{See also}\helpref{CheckToolkitVersion}{wxplatforminfochecktoolkitversion}\membersection{wxPlatformInfo::IsOk}\label{wxplatforminfoisok}\constfunc{bool}{IsOk}{\void}Returns \true if this instance is fully initialized with valid values.\membersection{wxPlatformInfo::IsUsingUniversalWidgets}\label{wxplatforminfoisusinguniversalwidgets}\constfunc{bool}{IsUsingUniversalWidgets}{\void}Returns \true if this wxPlatformInfo describes wxUniversal build.\membersection{wxPlatformInfo::SetArchitecture}\label{wxplatforminfosetarchitecture}\func{void}{SetArchitecture}{\param{wxArchitecture }{n}}Sets the architecture enum value associated with this wxPlatformInfo instance.\membersection{wxPlatformInfo::SetEndianness}\label{wxplatforminfosetendianness}\func{void}{SetEndianness}{\param{wxEndianness }{n}}Sets the endianness enum value associated with this wxPlatformInfo instance.\membersection{wxPlatformInfo::SetOSVersion}\label{wxplatforminfosetosversion}\func{void}{SetOSVersion}{\param{int }{major}, \param{int }{minor}}Sets the version of the operating system associated with this wxPlatformInfo instance.\membersection{wxPlatformInfo::SetOperatingSystemId}\label{wxplatforminfosetoperatingsystemid}\func{void}{SetOperatingSystemId}{\param{wxOperatingSystemId }{n}}Sets the operating system associated with this wxPlatformInfo instance.\membersection{wxPlatformInfo::SetPortId}\label{wxplatforminfosetportid}\func{void}{SetPortId}{\param{wxPortId }{n}}Sets the wxWidgets port ID associated with this wxPlatformInfo instance.\membersection{wxPlatformInfo::SetToolkitVersion}\label{wxplatforminfosettoolkitversion}\func{void}{SetToolkitVersion}{\param{int }{major}, \param{int }{minor}}Sets the version of the toolkit associated with this wxPlatformInfo instance.\membersection{wxPlatformInfo::operator!=}\label{wxplatforminfooperatorunknown}\constfunc{bool}{operator!=}{\param{const wxPlatformInfo\& }{t}}Inequality operator. Tests all class' internal variables.\membersection{wxPlatformInfo::operator==}\label{wxplatforminfooperatorequal}\constfunc{bool}{operator==}{\param{const wxPlatformInfo\& }{t}}Equality operator. Tests all class' internal variables.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -