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
fn main() {
launch(app);
}
fn app(cx: Scope) -> Element {
render!(
rect {
width: "100%",
height: "100%",
label {
"Hello World!"
}
}
)
}