From 12528c6739c28f5900bb388f6b494b0bc161a22f Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Thu, 15 May 2025 17:16:29 -0500 Subject: [PATCH] docs: add note on DIP and DPI (#47120) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Erick Zhao --- docs/api/screen.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/api/screen.md b/docs/api/screen.md index ab51ff2786..1710bee406 100644 --- a/docs/api/screen.md +++ b/docs/api/screen.md @@ -58,6 +58,14 @@ app.whenReady().then(() => { }) ``` +> [!NOTE] +> Screen coordinates used by this module are [`Point`](structures/point.md) structures. +> There are two kinds of coordinates available to the process: +> +> * **Physical screen points** are raw hardware pixels on a display. +> * **Device-independent pixel (DIP) points** are virtualized screen points scaled based on the DPI +> (dots per inch) of the display. + ## Events The `screen` module emits the following events: