pub struct MonitorInfo {}Expand description
Monitor information
Fields§
§id: u32Monitor ID
name: StringMonitor name
x: i32Physical position in virtual desktop (pixels)
y: i32§width: u32Monitor dimensions (pixels)
height: u32§dpi: f64DPI setting
scale_factor: f64Scale factor
stream_x: u32Stream position (for video encoding)
stream_y: u32§stream_width: u32Stream dimensions
stream_height: u32§is_primary: boolIs this the primary monitor
Implementations§
Source§impl MonitorInfo
impl MonitorInfo
Sourcepub fn contains_point(&self, x: f64, y: f64) -> bool
pub fn contains_point(&self, x: f64, y: f64) -> bool
Check if a point is within this monitor
Sourcepub fn contains_stream_point(&self, x: f64, y: f64) -> bool
pub fn contains_stream_point(&self, x: f64, y: f64) -> bool
Check if a stream coordinate is within this monitor’s stream region
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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)