Struct winit::MonitorId [−][src]
pub struct MonitorId { /* fields omitted */ }
Identifier for a monitor.
Methods
impl MonitorId
[src]
impl MonitorId
pub 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) -> (u32, u32)
[src]
pub fn get_dimensions(&self) -> (u32, u32)
Returns the number of pixels currently displayed on the monitor.
pub fn get_position(&self) -> (i32, i32)
[src]
pub fn get_position(&self) -> (i32, i32)
Returns the top-left corner position of the monitor relative to the larger full screen area.
pub fn get_hidpi_factor(&self) -> f32
[src]
pub fn get_hidpi_factor(&self) -> f32
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]
impl Debug for MonitorId
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for MonitorId
[src]
impl Clone for MonitorId
fn clone(&self) -> MonitorId
[src]
fn clone(&self) -> MonitorId
Returns 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 MonitorIdExt for MonitorId
[src]
impl MonitorIdExt for MonitorId