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