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 number of pixels currently displayed on the monitor.

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

Returns the ratio between the monitor's physical pixels and logical pixels.

Platform-specific

On X11 the DPI factor can be overridden using the WINIT_HIDPI_FACTOR environment variable.

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