Trait winsafe::prelude::user_Hmonitor

source ·
pub trait user_Hmonitor: Handle {
    // Provided methods
    fn GetMonitorInfo(&self, mi: &mut MONITORINFOEX) -> SysResult<()> { ... }
    fn MonitorFromPoint(pt: POINT, flags: MONITOR) -> HMONITOR { ... }
    fn MonitorFromRect(rc: RECT, flags: MONITOR) -> HMONITOR { ... }
}
Available on crate features kernel and user only.
Expand description

This trait is enabled with the user feature, and provides methods for HMONITOR.

Prefer importing this trait through the prelude:

use winsafe::prelude::*;

Provided Methods§

source

fn GetMonitorInfo(&self, mi: &mut MONITORINFOEX) -> SysResult<()>

GetMonitorInfo function.

§Examples
use winsafe::{self as w, prelude::*};

let hmon: w::HMONITOR; // initialized somewhere

let mut mi = w::MONITORINFOEX::default();
hmon.GetMonitorInfo(&mut mi)?;

println!("{}", mi.szDevice());
source

fn MonitorFromPoint(pt: POINT, flags: MONITOR) -> HMONITOR

MonitorFromPoint function.

source

fn MonitorFromRect(rc: RECT, flags: MONITOR) -> HMONITOR

MonitorFromRect function.

Object Safety§

This trait is not object safe.

Implementors§