Skip to content

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.

function monitorFromPoint(x: number, y: number): Promise<Monitor | null>
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.