Classes | |
class | wxWindowDisabler |
This class disables all top level windows of the application (maybe with the exception of one of them) in its constructor and enables them back in its destructor. More... | |
class | wxBusyCursor |
This class makes it easy to tell your user that the program is temporarily busy. More... | |
struct | wxExecuteEnv |
This structure can optionally be passed to wxExecute() to specify additional options to use for the child process. More... | |
Typedefs | |
using | wxEnvVariableHashMap = std::unordered_map< wxString, wxString > |
A map type containing environment variables names and values. More... | |
typedef int(* | wxSortCallback) (const void *pItem1, const void *pItem2, const void *user_data) |
Functions | |
void | wxBeginBusyCursor (const wxCursor *cursor=wxHOURGLASS_CURSOR) |
Changes the cursor to the given cursor for all windows in the application. More... | |
void | wxEndBusyCursor () |
Changes the cursor back to the original cursor, for all windows in the application. More... | |
bool | wxIsBusy () |
Returns true if between two wxBeginBusyCursor() and wxEndBusyCursor() calls. More... | |
void | wxBell () |
Ring the system bell. More... | |
void | wxInfoMessageBox (wxWindow *parent) |
Shows a message box with the information about the wxWidgets build used, including its version, most important build parameters and the version of the underlying GUI toolkit. More... | |
wxVersionInfo | wxGetLibraryVersionInfo () |
Get wxWidgets version information. More... | |
char * | wxGetenv (const char *s) |
Wrapper of the standard getenv() or its wide char version. More... | |
wchar_t * | wxGetenv (const wchar_t *ws) |
char * | wxGetenv (const wxString &s) |
bool | wxGetEnv (const wxString &var, wxString *value) |
Returns the current value of the environment variable var in value. More... | |
bool | wxSetEnv (const wxString &var, const wxString &value) |
Sets the value of the environment variable var (adding it if necessary) to value. More... | |
bool | wxUnsetEnv (const wxString &var) |
Removes the variable var from the environment. More... | |
bool | wxGetEnvMap (wxEnvVariableHashMap *map) |
Fill a map with the complete content of current environment. More... | |
void | wxSecureZeroMemory (void *p, size_t n) |
Fills the memory block with zeros in a way that is guaranteed not to be optimized away by the compiler. More... | |
wxBatteryState | wxGetBatteryState () |
Returns battery state as one of wxBATTERY_NORMAL_STATE , wxBATTERY_LOW_STATE , wxBATTERY_CRITICAL_STATE , wxBATTERY_SHUTDOWN_STATE or wxBATTERY_UNKNOWN_STATE . More... | |
wxPowerType | wxGetPowerType () |
Returns the type of power source as one of wxPOWER_SOCKET , wxPOWER_BATTERY or wxPOWER_UNKNOWN . More... | |
wxString | wxGetDisplayName () |
Under X only, returns the current display name. More... | |
bool | wxGetDiskSpace (const wxString &path, wxLongLong total=nullptr, wxLongLong free=nullptr) |
This function returns the total number of bytes and number of free bytes on the disk containing the directory path (it should exist). More... | |
bool | wxGetKeyState (wxKeyCode key) |
For normal keys, returns true if the specified key is currently down. More... | |
wxPoint | wxGetMousePosition () |
Returns the mouse position in screen coordinates. More... | |
wxMouseState | wxGetMouseState () |
Returns the current state of the mouse. More... | |
void | wxEnableTopLevelWindows (bool enable=true) |
This function enables or disables all top level windows. More... | |
wxWindow * | wxFindWindowAtPoint (const wxPoint &pt) |
Find the deepest window at the given mouse position in screen coordinates, returning the window if found, or nullptr if not. More... | |
wxWindow * | wxFindWindowByLabel (const wxString &label, wxWindow *parent=nullptr) |
wxWindow * | wxFindWindowByName (const wxString &name, wxWindow *parent=nullptr) |
int | wxFindMenuItemId (wxFrame *frame, const wxString &menuString, const wxString &itemString) |
Find a menu item identifier associated with the given frame's menu bar. More... | |
wxWindowID | wxNewId () |
void | wxRegisterId (wxWindowID id) |
Ensures that Ids subsequently generated by wxNewId() do not clash with the given id. More... | |
bool | wxLaunchDefaultApplication (const wxString &document, int flags=0) |
Opens the document in the application associated with the files of this type. More... | |
bool | wxLaunchDefaultBrowser (const wxString &url, int flags=0) |
Opens the url in user's default browser. More... | |
bool | wxLoadUserResource (const void **outData, size_t *outLen, const wxString &resourceName, const wxChar *resourceType="TEXT", WXHINSTANCE module=0) |
Loads an object from Windows resource file. More... | |
char * | wxLoadUserResource (const wxString &resourceName, const wxChar *resourceType="TEXT", int *pLen=nullptr, WXHINSTANCE module=0) |
Loads a user-defined Windows resource as a string. More... | |
void | wxQsort (void *pbase, size_t total_elems, size_t size, wxSortCallback cmp, const void *user_data) |
void | wxSetDisplayName (const wxString &displayName) |
Under X only, sets the current display name. More... | |
wxString | wxStripMenuCodes (const wxString &str, int flags=wxStrip_All) |
Strips any menu codes from str and returns the result. More... | |
wxString | wxGetEmailAddress () |
Copies the user's email address into the supplied buffer, by concatenating the values returned by wxGetFullHostName() and wxGetUserId(). More... | |
bool | wxGetEmailAddress (char *buf, int sz) |
wxMemorySize | wxGetFreeMemory () |
Returns the amount of free memory in bytes under environments which support it, and -1 if not supported or failed to perform measurement. More... | |
wxString | wxGetHomeDir () |
Return the (current) user's home directory. More... | |
wxString | wxGetHostName () |
Copies the current host machine's name into the supplied buffer. More... | |
bool | wxGetHostName (char *buf, int sz) |
wxString | wxGetFullHostName () |
Returns the FQDN (fully qualified domain host name) or an empty string on error. More... | |
wxString | wxGetUserHome (const wxString &user=wxEmptyString) |
Returns the home directory for the given user. More... | |
wxString | wxGetUserId () |
This function returns the "user id" also known as "login name" under Unix (i.e. More... | |
bool | wxGetUserId (char *buf, int sz) |
wxString | wxGetUserName () |
This function returns the full user name (something like "John Smith"). More... | |
bool | wxGetUserName (char *buf, int sz) |
wxString | wxGetOsDescription () |
Returns the string containing the description of the current platform in a user-readable form. More... | |
wxOperatingSystemId | wxGetOsVersion (int *major=nullptr, int *minor=nullptr, int *micro=nullptr) |
Gets the version and the operating system ID for currently running OS. More... | |
bool | wxCheckOsVersion (int majorVsn, int minorVsn=0, int microVsn=0) |
Returns true if the version of the operating system on which the program is running under is the same or later than the given version. More... | |
bool | wxIsPlatform64Bit () |
Returns true if the operating system the program is running under is 64 bit. More... | |
bool | wxIsPlatformLittleEndian () |
Returns true if the current platform is little endian (instead of big endian). More... | |
wxString | wxGetCpuArchitectureName () |
Returns the CPU architecture name. More... | |
wxString | wxGetNativeCpuArchitectureName () |
In some situations the current process and native CPU architecture may be different. More... | |
wxLinuxDistributionInfo | wxGetLinuxDistributionInfo () |
Returns a structure containing information about the currently running Linux distribution. More... | |
long | wxExecute (const wxString &command, int flags=wxEXEC_ASYNC, wxProcess *callback=nullptr, const wxExecuteEnv *env=nullptr) |
Executes another program in Unix or Windows. More... | |
long | wxExecute (const char *const *argv, int flags=wxEXEC_ASYNC, wxProcess *callback=nullptr, const wxExecuteEnv *env=nullptr) |
This is an overloaded version of wxExecute(const wxString&,int,wxProcess*), please see its documentation for general information. More... | |
long | wxExecute (const wchar_t *const *argv, int flags=wxEXEC_ASYNC, wxProcess *callback=nullptr, const wxExecuteEnv *env=nullptr) |
long | wxExecute (const wxString &command, wxArrayString &output, int flags=0, const wxExecuteEnv *env=nullptr) |
This is an overloaded version of wxExecute(const wxString&,int,wxProcess*), please see its documentation for general information. More... | |
long | wxExecute (const wxString &command, wxArrayString &output, wxArrayString &errors, int flags=0, const wxExecuteEnv *env=nullptr) |
This is an overloaded version of wxExecute(const wxString&,int,wxProcess*), please see its documentation for general information. More... | |
unsigned long | wxGetProcessId () |
Returns the number uniquely identifying the current process in the system. More... | |
int | wxKill (long pid, wxSignal sig=wxSIGTERM, wxKillError *rc=nullptr, int flags=wxKILL_NOCHILDREN) |
Equivalent to the Unix kill function: send the given signal sig to the process with PID pid. More... | |
bool | wxShell (const wxString &command=wxEmptyString) |
Executes a command in an interactive shell window. More... | |
bool | wxShutdown (int flags=wxSHUTDOWN_POWEROFF) |
This function shuts down or reboots the computer depending on the value of the flags. More... | |
void | wxMicroSleep (unsigned long microseconds) |
Sleeps for the specified number of microseconds. More... | |
void | wxMilliSleep (unsigned long milliseconds) |
Sleeps for the specified number of milliseconds. More... | |
wxString | wxNow () |
Returns a string representing the current date and time. More... | |
void | wxSleep (int secs) |
Sleeps for the specified number of seconds. More... | |
void | wxUsleep (unsigned long milliseconds) |
void | wxDecToHex (unsigned char dec, wxChar *buf) |
Convert decimal integer to 2-character hexadecimal string. More... | |
wxString | wxDecToHex (unsigned char dec) |
Convert decimal integer to 2-character hexadecimal string. More... | |
void | wxDecToHex (unsigned char dec, char *ch1, char *ch2) |
Returns 2 characters of hexadecimal representation of a given number. More... | |
int | wxHexToDec (const wxString &buf) |
Convert 2-character hexadecimal string to decimal integer. More... | |
int | wxHexToDec (const char *buf) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
bool | wxMSWIsOnSecureScreen () |
Check if the current desktop is the secure desktop. More... | |
enum wxKillError |
Return values for wxProcess::Kill.
Enumerator | |
---|---|
wxKILL_OK | no error |
wxKILL_BAD_SIGNAL | no such signal |
wxKILL_ACCESS_DENIED | permission denied |
wxKILL_NO_PROCESS | no such process |
wxKILL_ERROR | another, unspecified error |
enum wxKillFlags |
enum wxShutdownFlags |
enum wxSignal |
Signal constants used by wxProcess.
bool wxMSWIsOnSecureScreen | ( | ) |
Check if the current desktop is the secure desktop.
Secure desktop is the desktop that is used for UAC prompts and sign-in screens and runs at system level i.e. as administrator. Using this function can be helpful to ensure that privileged operations are not allowed when running on this desktop.
Include file:
#include <wx/utils.h>