Skip to main content

set_mini_window

Function set_mini_window 

Source
pub fn set_mini_window(
    app: AppHandle,
    height: Option<f64>,
    runtime: State<'_, Runtime>,
    lifecycle: State<'_, Arc<LifecycleState>>,
) -> Result<(), String>
Expand description

Turns the main window into the mini window, height logical pixels tall, or restores it when height is None. The mini window is borderless, fixed in size, and always on top. Restoring brings back the previous position and size and the Always on top setting.