PhysicalSize

external class PhysicalSize(source)

A size represented in physical pixels.

Physical pixels represent actual screen pixels, and are DPI-independent. For high-DPI windows, this means that any point in the window on the screen will have a different position in logical pixels {@linkcode LogicalSize}.

For physical-pixel-based position, see {@linkcode PhysicalPosition}.

Since

2.0.0

Constructors

Link copied to clipboard
constructor(width: Double, height: Double)
constructor(object: PhysicalSizeObjectTemp)
constructor(object: PhysicalSizeObject)

Properties

Link copied to clipboard
Link copied to clipboard
val type: Any?
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun toLogical(scaleFactor: Double): LogicalSize

Converts the physical size to a logical one.