pub struct MonitorInfo {
pub name: String,
pub is_primary: bool,
pub offset: (i32, i32),
pub size: (i32, i32),
pub scale_factor: f64,
}Expand description
Information about a connected physical monitor.
Fields§
§name: StringThe OS-assigned name or identifier of the monitor.
is_primary: boolIndicates whether this is the primary monitor of the system.
offset: (i32, i32)The starting coordinates (x, y) of the monitor in the global physical coordinate system.
size: (i32, i32)The physical resolution (width, height) of the monitor in pixels.
scale_factor: f64The UI scale factor (e.g., 1.0, 1.5, 2.0) for High-DPI support.
Implementations§
Trait Implementations§
Source§impl Clone for MonitorInfo
impl Clone for MonitorInfo
Source§fn clone(&self) -> MonitorInfo
fn clone(&self) -> MonitorInfo
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 MonitorInfo
impl Debug for MonitorInfo
Source§impl PartialEq for MonitorInfo
impl PartialEq for MonitorInfo
impl StructuralPartialEq for MonitorInfo
Auto Trait Implementations§
impl Freeze for MonitorInfo
impl RefUnwindSafe for MonitorInfo
impl Send for MonitorInfo
impl Sync for MonitorInfo
impl Unpin for MonitorInfo
impl UnwindSafe for MonitorInfo
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