#include <wx/platinfo.h>
Defines a very broad platform categorization.
Usually you would use wxPlatformInfo to get all the platform details rather than this class which only distinguishes between MSW, Mac and Unix platforms.
This class is mostly useful if a short string describing the platform corresponds to the current platform, i.e. the platform under which the executable runs. The recognized strings are:
Static Private Member Functions | |
static wxString | GetCurrent () |
Returns the preferred current platform name. More... | |
static bool | MatchesCurrent (const wxString &s) |
Returns true if the given string matches the current platform. More... | |
|
staticprivate |
Returns the preferred current platform name.
Use MatchesCurrent() to check if the name is one of the possibly several names corresponding to the current platform.
Returns one of "msw", "mac" or "unix" or an empty string if the current platform is not recognized.
|
staticprivate |
Returns true if the given string matches the current platform.