Struct winit::MonitorId[][src]

pub struct MonitorId { /* fields omitted */ }

Identifier for a monitor.

Methods

impl MonitorId
[src]

Returns a human-readable name of the monitor.

Returns None if the monitor doesn't exist anymore.

Returns the monitor's resolution.

Returns the top-left corner position of the monitor relative to the larger full screen area.

Returns the DPI factor that can be used to map logical pixels to physical pixels, and vice versa.

See the dpi module for more information.

Platform-specific

  • X11: Can be overridden using the WINIT_HIDPI_FACTOR environment variable.
  • Android: Always returns 1.0.

Trait Implementations

impl Debug for MonitorId
[src]

Formats the value using the given formatter. Read more

impl Clone for MonitorId
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl MonitorIdExt for MonitorId
[src]

Returns the inner identifier of the monitor.

Auto Trait Implementations

impl Send for MonitorId

impl Sync for MonitorId