Display

abstract class Display(source)

Any coordinates or positions are provided as screen coordinates, which may or may not be equivalent to pixel coordinates, depending on your setup.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract override fun toString(): String

Properties

Link copied to clipboard
abstract val contentScale: Double?

The ratio between the current DPI and the platform's default DPI. More specifically, this is the horizontal scale factor, but on most displays that will match the vertical scale factor.

Link copied to clipboard
Link copied to clipboard
abstract val height: Int?
Link copied to clipboard
abstract val name: String?

The name of this display as reported by the current graphics backend.

Link copied to clipboard

The position of the top-left corner of this Display.

Link copied to clipboard
abstract val width: Int?
Link copied to clipboard
abstract val x: Int?

The horizontal position of the top-left corner of this Display.

Link copied to clipboard
abstract val y: Int?

The vertical position of the top-left corner of this Display.