Struct screenshots::DisplayInfo
source · pub struct DisplayInfo {
pub id: u32,
pub x: i32,
pub y: i32,
pub width: u32,
pub height: u32,
pub rotation: f32,
pub scale_factor: f32,
pub is_primary: bool,
}Fields§
§id: u32§x: i32§y: i32§width: u32§height: u32§rotation: f32§scale_factor: f32§is_primary: boolImplementations§
source§impl DisplayInfo
impl DisplayInfo
pub fn all() -> Result<Vec<DisplayInfo, Global>, Error>
pub fn from_point(x: i32, y: i32) -> Result<DisplayInfo, Error>
Trait Implementations§
source§impl Clone for DisplayInfo
impl Clone for DisplayInfo
source§fn clone(&self) -> DisplayInfo
fn clone(&self) -> DisplayInfo
Returns a copy 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 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