pub fn launch(app: Component<()>)
Expand description
Launch a new Window with the default config.
- Width:
600.0
- Height:
600.0
- Decorations enabled
- Transparency disabled
- Window title:
Freya
- Window background: white
Example
launch(app);
fn app(cx: Scope) -> Element {
render!(
rect {
width: "100%",
height: "100%",
label {
"Hello World!"
}
}
)
}