Skip to main content

resize_and_center

Function resize_and_center 

Source
pub fn resize_and_center(
    window: &WebviewWindow,
    width: f64,
    height: f64,
    shadow: bool,
) -> CommandResult<()>
Expand description

Resize window to (width, height) logical pixels, toggle its native shadow, and re-center it. A maximized window ignores set_size on Windows, so maximize is dropped first.