fn screen_bounds(w: &WindowHandle) -> Rect {
    let monitors = Screen::get_monitors();
    let scale = w.get_scale().unwrap_or_default();
    let window_origin = w.get_position();
    for m in monitors {
        if m.virtual_rect().to_dp(scale).contains(window_origin) {
            return m.virtual_work_rect().to_dp(scale);
        }
    }
    Rect::from_origin_size(Point::ZERO, Size::new(f64::INFINITY, f64::INFINITY))
}
/// Returns the bounds (in virtual screen coordinates) of a monitor containing the origin of `w`.
///
/// (We don't guarantee any particular behavior if there is more than one such monitor).
Returns the bounds (in virtual screen coordinates) of a monitor containing the origin of `w`.
(We don't guarantee any particular behavior if there is more than one such monitor).
Returns the bounds ( in virtual screen coordinates ) of a monitor containing the origin of ` w ` . ( We don ' t guarantee any particular behavior if there is more than one such monitor ) .
fn screen_bounds(w: &WindowHandle) -> Rect {
    let monitors = Screen::get_monitors();
    let scale = w.get_scale().unwrap_or_default();
    let window_origin = w.get_position();
    for m in monitors {
        if m.virtual_rect().to_dp(scale).contains(window_origin) {
            return m.virtual_work_rect().to_dp(scale);
        }
    }
    Rect::from_origin_size(Point::ZERO, Size::new(f64::INFINITY, f64::INFINITY))
}
fn screen_bounds ( w : & WindowHandle ) -> Rect { let monitors = Screen :: get_monitors ( ) ; let scale = w . get_scale ( ) . unwrap_or_default ( ) ; let window_origin = w . get_position ( ) ; for m in monitors { if m . virtual_rect ( ) . to_dp ( scale ) . contains ( window_origin ) { return m . virtual_work_rect ( ) . to_dp ( scale ) ; } } Rect :: from_origin_size ( Point :: ZERO , Size :: new ( f64 :: INFINITY , f64 :: INFINITY ) ) }
Returns the bounds (in virtual screen coordinates) of a monitor containing the origin of `w`.
Returns the bounds ( in virtual screen coordinates ) of a monitor containing the origin of ` w ` .
w
&WindowHandle