Plugin API
English
English
  • Getting Started
    • Introduction
    • Your First Plugin
    • File Structure Overview
    • Plugin Types
      • Window
      • Background Service
      • Format Extension
      • Inspector
    • Debug Plugin
  • Distribution
    • Prepare Plugin
    • Package Plugin
    • Publish Plugin
    • Update Plugin
    • Developer Policies
    • Plugin Icon Template
  • Developer Guide
    • manifest.json Configuration
    • Retrieve Data
    • Modify Data
    • Access Local Files
    • Issue Network Requests
    • Using Node.js Native API
    • Using Third-Party Modules
    • Multilingual (i18n)
    • Frameless Window
  • API Reference
    • event
    • item
    • folder
    • tag
    • tagGroup
    • library
    • window
    • app
    • os
    • screen
    • notification
    • contextMenu
    • dialog
    • clipboard
    • drag
    • shell
    • log
  • Extra Moudle
    • FFmpeg
Powered by GitBook
On this page
  • Methods
  • getCursorScreenPoint()
  • getPrimaryDisplay()
  • getAllDisplays()
  • getDisplayNearestPoint(point)
  1. API Reference

screen

Get information about screen size, display, cursor position, etc.

PreviousosNextnotification

Last updated 10 months ago

Methods

getCursorScreenPoint()

Absolute position x, y of the current mouse cursor.

  • Returns Promise<point: Object>

    • point Object

      • point.x

      • point.y

let point = await eagle.screen.getCursorScreenPoint();

getPrimaryDisplay()

Returns primary display information.

  • Returns Promise<display: Display>

    • display Object - Current display information.

let display = await eagle.screen.getPrimaryDisplay();

getAllDisplays()

Returns an array Display[], representing currently available screens.

  • Returns Promise<displays: Display[]>

let displays = await eagle.screen.getAllDisplays();

getDisplayNearestPoint(point)

Gets the plugin window coordinates x and y.

  • point Object

    • point.x Integer type

    • point.y Integer type

  • Returns Promise<display: Display>

let display = await eagle.screen.getDisplayNearestPoint({ x: 100, y: 100 });

displays []

display Object - Current display information.

Display
Display
Display