Struct nannou::ui::backend::glium::glium::backend::glutin::glutin::MonitorId[]

pub struct MonitorId { /* fields omitted */ }

Identifier for a monitor.

Methods

impl MonitorId

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 Clone for MonitorId

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for MonitorId

Formats the value using the given formatter. Read more

impl MonitorIdExt for MonitorId

Returns the inner identifier of the monitor.

Auto Trait Implementations

impl Send for MonitorId

impl Sync for MonitorId