pub struct DisplayInfo {
pub id: u32,
pub raw_handle: Output,
pub x: i32,
pub y: i32,
pub width: u32,
pub height: u32,
pub rotation: f32,
pub scale_factor: f32,
pub frequency: f32,
pub is_primary: bool,
}Fields§
§id: u32Unique identifier associated with the display.
raw_handle: Output§x: i32The display x coordinate.
y: i32The display x coordinate.
width: u32The display pixel width.
height: u32The display pixel height.
rotation: f32Can be 0, 90, 180, 270, represents screen rotation in clock-wise degrees.
scale_factor: f32Output device’s pixel scale factor.
frequency: f32The display refresh rate.
is_primary: boolWhether the screen is the main screen
Implementations§
Source§impl DisplayInfo
impl DisplayInfo
pub fn all() -> Result<Vec<DisplayInfo>>
pub fn from_point(x: i32, y: i32) -> Result<DisplayInfo>
Trait Implementations§
Source§impl Clone for DisplayInfo
impl Clone for DisplayInfo
Source§fn clone(&self) -> DisplayInfo
fn clone(&self) -> DisplayInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DisplayInfo
impl Debug for DisplayInfo
impl Copy for DisplayInfo
Auto Trait Implementations§
impl Freeze for DisplayInfo
impl RefUnwindSafe for DisplayInfo
impl Send for DisplayInfo
impl Sync for DisplayInfo
impl Unpin 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