Skip to content

ElectronDisplay

Unofficial

Describes a display connected to the system.

Import:

import type { ElectronDisplay } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface ElectronDisplay

Properties

PropertyTypeDescription
accelerometerSupport'available' | 'unavailable' | 'unknown'Whether the display supports accelerometer input. Can be available, unavailable or unknown.
boundsElectronRectangleThe bounds of the display in DIP points.
colorDepthnumberThe number of bits per pixel.
colorSpacestringRepresents a color space (three-dimensional object which contains all realizable color combinations) for the purpose of color conversions.
depthPerComponentnumberThe number of bits per color component.
displayFrequencynumberThe display refresh rate.
idnumberUnique identifier associated with the display.
internalbooleantrue for an internal display and false for an external display.
monochromebooleanWhether or not the display is a monochrome display.
rotationnumberScreen rotation in clock-wise degrees. Can be 0, 90, 180 or 270.
scaleFactornumberOutput device's pixel scale factor.
sizeElectronSizeThe size of the display.
touchSupport'available' | 'unavailable' | 'unknown'Whether the display supports touch input. Can be available, unavailable or unknown.
workAreaElectronRectangleThe work area of the display in DIP points.
workAreaSizeElectronSizeThe size of the work area of the display.

Links to this page: