pub struct DisplayInfo {
pub index: usize,
pub name: String,
pub width: u32,
pub height: u32,
pub x: i32,
pub y: i32,
pub scale_factor: f32,
pub is_primary: bool,
pub refresh_rate: u32,
pub color_depth: u8,
}Expand description
Information about a display/monitor
Fields§
§index: usizeDisplay index (0-based)
name: StringDisplay name or identifier
width: u32Width in pixels
height: u32Height in pixels
x: i32X offset from primary display
y: i32Y offset from primary display
scale_factor: f32Scale factor (for HiDPI displays)
is_primary: boolWhether this is the primary display
refresh_rate: u32Refresh rate in Hz
color_depth: u8Color depth in bits
Implementations§
Source§impl DisplayInfo
impl 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
Source§impl Default for DisplayInfo
impl Default for DisplayInfo
Source§impl PartialEq for DisplayInfo
impl PartialEq for DisplayInfo
impl StructuralPartialEq 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