class
Platform
Provides access to various operating system functions, including the main message pump.
Public
Constructors
Platform
Methods
~Platform
staticGetCursorPosition
Retrieves the cursor position in screen coordinates.
staticSetCursorPosition
Moves the cursor to the specified screen position.
staticCaptureMouse
Capture mouse to this window so that we get mouse input even if the mouse leaves the window area.
staticReleaseMouseCapture
Releases the mouse capture set by captureMouse().
staticIsPointOverWindow
Checks if provided over screen position is over the specified window.
staticClipCursorToWindow
Limit cursor movement to the specified window.
staticClipCursorToRect
Clip cursor to specific area on the screen.
staticClipCursorDisable
Disables cursor clipping.
staticHideCursor
Hides the cursor.
staticShowCursor
Shows the cursor.
staticIsCursorHidden
Query if the cursor is hidden.
staticSetCursor
Sets a cursor using a custom image.
- pixelData
- Cursor image data.
- hotSpot
- Offset on the cursor image to where the actual input happens (for example tip of the Arrow cursor).
staticSetIcon
Sets an icon for the main application window.
- pixelData
- Icon image data. This will be resized to the required icon size, depending on platform implementation.
staticSetCaptionNonClientAreas
Sets custom caption non client areas for the specified window.
Using custom client areas will override window move/drag operation and trigger when user interacts with the custom area.
staticSetResizeNonClientAreas
Sets custom non client areas for the specified window.
Using custom client areas will override window resize operation and trigger when user interacts with the custom area.
staticResetNonClientAreas
Resets the non client areas for the specified windows and allows the platform to use the default values.
staticSleep
Causes the current thread to pause execution for the specified amount of time.
- duration
- Duration in milliseconds. Providing zero will give up the current time-slice.
staticOpenFolder
Opens the provided folder using the default application, as specified by the operating system.
- path
- Absolute path to the folder to open.
staticCopyToClipboard
Adds a string to the clipboard.
staticCopyFromClipboard
Reads a string from the clipboard and returns it.
If there is no string in the clipboard it returns an empty string.
staticKeyCodeToUnicode
Converts a keyboard key-code to a Unicode character.
Internal
Methods
staticMessagePump
Message pump.
Processes OS messages and returns when it's free.
staticStartUp
Called during application start up from the main thread.
Must be called before any other operations are done.
staticUpdate
Called once per frame from the main thread.
staticShutDown
Called during application shut down from the main thread.