IWindow

Giving commands to a window.

Members

Functions

getTimeMs
uint getTimeMs()

Profile-purpose: get time in milliseconds. Use the results of this function for deltas only.

requestResize
bool requestResize(int widthLogicalPixels, int heightLogicalPixels, bool alsoResizeParentWindow)

Request a resize from the native window. If successful, onResized` should be called after with _some_ width and height. Note: DPI unaware. This doesn't check size constraints. Do not call this with a size that isn't compatible with your desired user pixel size, after GUIGraphics _userArea adjustments.

systemHandle
void* systemHandle()

Gets the window's OS handle.

terminated
bool terminated()

If exit was requested. This call should only be used if the window was created with WindowUsage.host. In the case of a plug-in, the plugin client will request termination of the window through its destructor.

waitEventAndDispatch
void waitEventAndDispatch()

To put in your message loop. This call should only be used if the window was created with WindowUsage.host. Else, event pumping is managed by the host or internally (X11).

Meta