cursorPosition
이 콘텐츠는 아직 번역되지 않았습니다.
Module @netwiv/api/window · Kind Function
import { cursorPosition } from '@netwiv/api/window';Get the cursor position relative to the top-left hand corner of the desktop.
Note that the top-left hand corner of the desktop is not necessarily the same as the screen. If the user uses a desktop with multiple monitors, the top-left hand corner of the desktop is the top-left hand corner of the main monitor on Windows and macOS or the top-left of the leftmost monitor on X11.
The coordinates can be negative if the top-left hand corner of the window is outside of the visible screen region.
Signature
Section titled “Signature”function cursorPosition(): Promise<PhysicalPosition>Descriptions come from the pinned @tauri-apps/api@2.11.1 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.