Struct glutin::MonitorId [−][src]
pub struct MonitorId { /* fields omitted */ }Identifier for a monitor.
Methods
impl MonitorId[src]
impl MonitorIdpub fn get_name(&self) -> Option<String>[src]
pub fn get_name(&self) -> Option<String>Returns a human-readable name of the monitor.
Returns None if the monitor doesn't exist anymore.
pub fn get_dimensions(&self) -> PhysicalSize[src]
pub fn get_dimensions(&self) -> PhysicalSizeReturns the monitor's resolution.
pub fn get_position(&self) -> PhysicalPosition[src]
pub fn get_position(&self) -> PhysicalPositionReturns the top-left corner position of the monitor relative to the larger full screen area.
pub fn get_hidpi_factor(&self) -> f64[src]
pub fn get_hidpi_factor(&self) -> f64Returns 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_FACTORenvironment variable. - Android: Always returns 1.0.
Trait Implementations
impl Clone for MonitorId[src]
impl Clone for MonitorIdfn clone(&self) -> MonitorId[src]
fn clone(&self) -> MonitorIdReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for MonitorId[src]
impl Debug for MonitorIdfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl MonitorIdExt for MonitorId[src]
impl MonitorIdExt for MonitorId