pub struct Screen<'a> { /* private fields */ }
Expand description
Notice these docs are heavy WIP and not very relevent yet
Implementations
sourceimpl<'a> Screen<'a>
impl<'a> Screen<'a>
pub fn name(&self) -> String
pub fn manufacturer(&self) -> String
pub fn model(&self) -> String
pub fn serial_number(&self) -> String
pub fn depth(&self) -> i32
pub fn physical_dots_per_inch_x(&self) -> f32
pub fn physical_dots_per_inch_y(&self) -> f32
pub fn physical_dots_per_inch(&self) -> f32
pub fn logical_dots_per_inch_x(&self) -> f32
pub fn logical_dots_per_inch_y(&self) -> f32
pub fn logical_dots_per_inch(&self) -> f32
pub fn device_pixel_ratio(&self) -> f32
pub fn available_size(&self) -> Size<'_>
pub fn virtual_size(&self) -> Size<'_>
pub fn available_virtual_size(&self) -> Size<'_>
pub fn primary_orientation(&self) -> ScreenOrientation
pub fn angle_between(&self, a: ScreenOrientation, b: ScreenOrientation) -> i32
pub fn is_landscape(&self, orientation: ScreenOrientation) -> bool
pub fn refresh_rate(&self) -> f32
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Screen<'a>
impl<'a> !Send for Screen<'a>
impl<'a> !Sync for Screen<'a>
impl<'a> Unpin for Screen<'a>
impl<'a> !UnwindSafe for Screen<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more