screen
Get information about screen size, display, cursor position, etc.
Methods
getCursorScreenPoint()
Absolute position x, y of the current mouse cursor.
Returns
Promise<point: Object>pointObjectpoint.xpoint.y
let point = await eagle.screen.getCursorScreenPoint();getPrimaryDisplay()
Returns primary display information.
Returns
Promise<display: Display>displayDisplay Object - Current display information.
let display = await eagle.screen.getPrimaryDisplay();getAllDisplays()
Returns an array Display[], representing currently available screens.
Returns
Promise<displays: Display[]>displaysDisplay[]
let displays = await eagle.screen.getAllDisplays();getDisplayNearestPoint(point)
Gets the plugin window coordinates x and y.
pointObjectpoint.xInteger typepoint.yInteger type
Returns
Promise<display: Display>displayDisplay Object - Current display information.
let display = await eagle.screen.getDisplayNearestPoint({ x: 100, y: 100 });Last updated