pub struct DisplayInfo { /* private fields */ }Expand description
Physical monitor or mobile screen metadata.
Implementations§
Source§impl DisplayInfo
impl DisplayInfo
pub fn get_physical_width(&self) -> u32
pub fn get_mut_physical_width(&mut self) -> &mut u32
pub fn set_physical_width(&mut self, val: u32) -> &mut Self
pub fn get_physical_height(&self) -> u32
pub fn get_mut_physical_height(&mut self) -> &mut u32
pub fn set_physical_height(&mut self, val: u32) -> &mut Self
pub fn get_scale_factor(&self) -> f32
pub fn get_mut_scale_factor(&mut self) -> &mut f32
pub fn set_scale_factor(&mut self, val: f32) -> &mut Self
pub fn get_refresh_rate_hz(&self) -> u32
pub fn get_mut_refresh_rate_hz(&mut self) -> &mut u32
pub fn set_refresh_rate_hz(&mut self, val: u32) -> &mut Self
pub fn get_color_space(&self) -> ColorSpace
pub fn get_mut_color_space(&mut self) -> &mut ColorSpace
pub fn set_color_space(&mut self, val: ColorSpace) -> &mut Self
Source§impl DisplayInfo
impl DisplayInfo
Trait Implementations§
Source§impl Clone for DisplayInfo
impl Clone for DisplayInfo
impl Copy for DisplayInfo
Source§impl Debug for DisplayInfo
impl Debug for DisplayInfo
Source§impl Default for DisplayInfo
Default display info (1280x800, 1.0x scale, 60Hz, sRGB).
impl Default for DisplayInfo
Default display info (1280x800, 1.0x scale, 60Hz, sRGB).
Source§impl PartialEq for DisplayInfo
impl PartialEq for DisplayInfo
impl StructuralPartialEq for DisplayInfo
Auto Trait Implementations§
impl Forget for DisplayInfo
impl Freeze for DisplayInfo
impl Move for DisplayInfo
impl RefUnwindSafe for DisplayInfo
impl Send for DisplayInfo
impl Sync for DisplayInfo
impl Unpin for DisplayInfo
impl UnsafeUnpin for DisplayInfo
impl UnwindSafe for DisplayInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more