Miscellaneous functions.
Returns the display size in pixels.
Note: Use of this function is not recommended in the new code as it only works for the primary display. Use
Either of output pointers can be NULL if the caller is not interested in the corresponding value.
See:
Globally sets the cursor; only has an effect on Windows, Mac and GTK+.
You should call this function with wxNullCursor to restore the system cursor.
See:
For normal keys, returns true if the specified key is currently down.
For togglable keys (Caps Lock, Num Lock and Scroll Lock), returns true if the key is toggled such that its LED indicator is lit. There is currently no way to test whether togglable keys are up or down.
Even though there are virtual key codes defined for mouse buttons, they cannot be used with this function currently.
In wxGTK, this function can be only used with modifier keys (
Returns the mouse position in screen coordinates.
Returns the current state of the mouse.
Returns a
Don't synthesize KeyUp events holding down a key and producing KeyDown events with autorepeat.
On by default and always on in wxMSW.
Ring the system bell.
Note: This function is categorized as a GUI one and so is not thread-safe.
Find a menu item identifier associated with the given frame's menu bar.
Find the deepest window at the given mouse position in screen coordinates, returning the window if found, or NULL if not.
This function takes child windows at the given position into account even if they are disabled. The hidden children are however skipped by it.
Changes the cursor to the given cursor for all windows in the application.
Use
See:
Changes the cursor back to the original cursor, for all windows in the application.
Use with
See:
Returns true if between two
See:
This function shuts down or reboots the computer depending on the value of the
Note: Note that performing the shutdown requires the corresponding access rights (superuser under Unix, SE_SHUTDOWN privilege under Windows) and that this function is only implemented under Unix and MSW.
Return: true on success, false if an error occurred.
Executes a command in an interactive shell window.
If no command is specified, then just the shell is spawned.
See:
Opens the
If the
And unless the
The parameter
Returns true if the application was successfully launched.
Note: For some configurations of the running user, the application which is launched to open the given URL may be URL-dependent (e.g. a browser may be used for local URLs while another one may be used for remote URLs).
See:
Copies the user's email address into the supplied buffer, by concatenating the values returned by
Return: true if successful, false otherwise.
This function returns the "user id" also known as "login name" under Unix (i.e.
something like "jsmith"). It uniquely identifies the current user (on this system). Under Windows or NT, this function first looks in the environment variables USER and LOGNAME; if neither of these is found, the entry
Return: The login name if successful or an empty string otherwise.
See:
Return the (current) user's home directory.
See:
Deprecated: Ids generated by it can conflict with the Ids defined by the user code, use
Generates an integer identifier unique to this run of the program.
Ensures that Ids subsequently generated by
Returns the current id.
Returns the string containing the description of the current platform in a user-readable form.
For example, this function may return strings like "Windows 10 (build 10240), 64-bit edition" or "Linux 4.1.4 i386".
See:
Returns true if the current platform is little endian (instead of big endian).
The check is performed at run-time.
Returns true if the operating system the program is running under is 64 bit.
The check is performed at run-time and may differ from the value available at compile-time (at compile-time you can just check if
Note: This function is not 100% reliable on some systems given the fact that there isn't always a standard way to do a reliable check on the OS architecture.