import { type Platform } from "https://deno.land/x/dwm@0.2.0/src/core/platform.ts";
Properties
Platform's window class
Methods
Gets list of monitors.
Gets primary monitor.
Gets the address of the given process
Starts the main loop. Never returns. Program's lifecycle is then managed by this. Once the function has to return (i.e. the UI event loop has stopped), it will exit the process.
It handles polling events by itself. If you want to make manual program loop,
use pollEvents
instead.
Loop parameter specifies whether the loop should be blocking or not. Blocking loop is fast, but it will block any async operations happening outside the given callback function. It is recommended to use loop: true (which is default) because it is faster and suitable for most use cases.
Wait option specifies whether the loop should wait for a new event before returning control to the callback function. It is recommended to use wait: false (default) for applications like games which render continuously. However wait: true is suitable for interactive UI applications which don't need to render continuously. It also reduces CPU usage.
Gets the address of the given instance function.