Monitor

open class Monitor(pointer: <Error class: unknown class><<Error class: unknown class>>)

GdkMonitor objects represent the individual outputs that are associated with a GdkDisplay.

GdkDisplay keeps a GListModel to enumerate and monitor monitors with method@Gdk.Display.get_monitors. You can use method@Gdk.Display.get_monitor_at_surface to find a particular monitor.

Skipped during bindings generation

  • method geometry: Property has no getter nor setter

  • method valid: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val connector: String?

The connector name.

Link copied to clipboard
open val description: String?

A short description of the monitor, meant for display to the user.

Link copied to clipboard
open val display: Display

The GdkDisplay of the monitor.

Link copied to clipboard
val gdkMonitorPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val heightMm: <Error class: unknown class>

The height of the monitor, in millimeters.

Link copied to clipboard
open val manufacturer: String?

The manufacturer name.

Link copied to clipboard
open val model: String?

The model name.

Link copied to clipboard
open val refreshRate: <Error class: unknown class>

The refresh rate, in milli-Hertz.

Link copied to clipboard
open val scale: <Error class: unknown class>

The scale of the monitor.

Link copied to clipboard
open val scaleFactor: <Error class: unknown class>

The scale factor.

Link copied to clipboard

The subpixel layout.

Link copied to clipboard
open val widthMm: <Error class: unknown class>

The width of the monitor, in millimeters.

Functions

Link copied to clipboard
fun connectInvalidate(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when the output represented by @monitor gets disconnected.

Link copied to clipboard
open fun getGeometry(geometry: Rectangle)

Retrieves the size and position of the monitor within the display coordinate space.

Link copied to clipboard
open fun isValid(): Boolean

Returns true if the @monitor object corresponds to a physical monitor.