Function freya::launch::launch_with_props
source · pub fn launch_with_props(
app: fn() -> Element,
title: &'static str,
(width, height): (f64, f64),
)
Expand description
Launch a new window with a custom title, width and height and the default config.
- Decorations enabled
- Transparency disabled
- Window background: white
§Example
fn main() {
launch_with_props(app, "Whoa!", (400.0, 600.0));
}
fn app() -> Element {
rsx!(
rect {
width: "100%",
height: "100%",
label {
"Hello World!"
}
}
)
}