pub struct WindowOptions {Show 18 fields
pub title: String,
pub width: u32,
pub height: u32,
pub min_width: Option<u32>,
pub min_height: Option<u32>,
pub max_width: Option<u32>,
pub max_height: Option<u32>,
pub resizable: bool,
pub maximized: bool,
pub fullscreen: bool,
pub always_on_top: bool,
pub center: bool,
pub background: Option<Rgba>,
pub titlebar: TitlebarStyle,
pub caption_button_size: CaptionButtonSize,
pub effect: WindowEffect,
pub remember_state: bool,
pub devtools: bool,
}Expand description
Cross-platform desktop window configuration stored in a bundle manifest.
Fields§
§title: StringWindow title.
width: u32Initial window width in physical-independent pixels.
height: u32Initial window height in physical-independent pixels.
min_width: Option<u32>Minimum width, when supported by the native backend.
min_height: Option<u32>Minimum height, when supported by the native backend.
max_width: Option<u32>Maximum width, when supported by the native backend.
max_height: Option<u32>Maximum height, when supported by the native backend.
resizable: boolWhether the user can resize the window.
maximized: boolWhether to start maximized.
fullscreen: boolWhether to start fullscreen.
always_on_top: boolWhether to keep the window above ordinary windows.
center: boolWhether the native backend should center the initial window.
background: Option<Rgba>Native pre-paint color and default document background.
titlebar: TitlebarStyleNative titlebar presentation.
Windows caption button size for overlay and hidden-inset titlebars. Defaults to 32 DIPs independently of the application bar height.
effect: WindowEffectRequested platform visual effect.
remember_state: boolWhether to persist validated window geometry between launches.
devtools: boolWhether to enable web inspector/devtools for development builds.