monitorFromPoint
Module @netwiv/api/window · Kind Function
import { monitorFromPoint } from '@netwiv/api/window';Returns the monitor that contains the given point. Returns null if can’t find any.
Signature
Section titled “Signature”function monitorFromPoint(x: number, y: number): Promise<Monitor | null>Example
Section titled “Example”import { monitorFromPoint } from '@netwiv/api/window';const monitor = await monitorFromPoint(100.0, 200.0);Upstream since 1.0.0
Descriptions come from the pinned @tauri-apps/api@2.11.1 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.