pub struct Monitor {
pub driver_id: String,
pub id: String,
}
Fields§
§driver_id: String
§id: String
Implementations§
Source§impl Monitor
impl Monitor
Sourcepub fn all() -> Result<Vec<Self>, MonitorError>
pub fn all() -> Result<Vec<Self>, MonitorError>
List all monitor-looking things we can find. Expect this to return spurious and duplicate results.
Sourcepub fn intersecting(window: HWND) -> Result<Vec<Self>, MonitorError>
pub fn intersecting(window: HWND) -> Result<Vec<Self>, MonitorError>
List all monitors a window is on.
If your window is on exactly one monitor, this should return exactly
one result. Unlike Self::all
, your should not get spurious or
duplicate results.
Sourcepub fn edid(&self) -> Result<Vec<u8>, MonitorError>
pub fn edid(&self) -> Result<Vec<u8>, MonitorError>
Get the Extended Device Identification Data of a monitor.
You can feed this to an EDID parser to get information about the display such as the model name or colorspace.
Trait Implementations§
impl Eq for Monitor
impl StructuralPartialEq for Monitor
Auto Trait Implementations§
impl Freeze for Monitor
impl RefUnwindSafe for Monitor
impl Send for Monitor
impl Sync for Monitor
impl Unpin for Monitor
impl UnwindSafe for Monitor
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