Struct nannou::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 MonitorIdExt for MonitorId

Returns the name of the monitor adapter specific to the Win32 API.

Returns the handle of the monitor - HMONITOR.

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

Auto Trait Implementations

impl Send for MonitorId

impl !Sync for MonitorId