pub struct WindowSpec {Show 15 fields
pub label: String,
pub title: Option<String>,
pub path: Option<String>,
pub width: Option<f64>,
pub height: Option<f64>,
pub focused: Option<bool>,
pub always_on_top: Option<bool>,
pub min_width: Option<f64>,
pub min_height: Option<f64>,
pub decorations: Option<bool>,
pub center: Option<bool>,
pub fullscreen: Option<bool>,
pub skip_taskbar: Option<bool>,
pub x: Option<f64>,
pub y: Option<f64>,
}Fields§
§label: String§title: Option<String>§path: Option<String>App-relative path (e.g. mini.html); never an absolute or remote URL.
width: Option<f64>§height: Option<f64>§focused: Option<bool>§always_on_top: Option<bool>Always on top (mini windows, pills).
min_width: Option<f64>Minimum inner width in logical pixels. Default 320 (unchanged); a non-finite or non-positive value is ignored. The initial width is raised to at least this.
min_height: Option<f64>Minimum inner height in logical pixels. Default 240 (unchanged).
decorations: Option<bool>Override native decorations after the shell’s frameless policy (Some(false) for a
borderless pill or onboarding window on a framed shell, Some(true) for the reverse).
center: Option<bool>Centre on the primary/current monitor. Wins over x / y.
fullscreen: Option<bool>Open fullscreen.
skip_taskbar: Option<bool>Keep the window out of the taskbar / Dock-switcher where the platform supports it.
x: Option<f64>Initial outer position in logical pixels (needs both x and y). It is corrected to a
visible monitor when it would leave the window off-screen.
y: Option<f64>