Function freya::launch::launch_with_title
source · pub fn launch_with_title(app: Component<()>, title: &'static str)
Expand description
Launch a new Window with a custom title and the default config.
- Width:
400
- Height:
300
- Decorations enabled
- Transparency disabled
- Window background: white
Example
launch_with_title(app, "Whoah!");
fn app(cx: Scope) -> Element {
render!(
rect {
width: "100%",
height: "100%",
label {
"Hello World!"
}
}
)
}