Function freya::launch::launch_with_title
source · pub fn launch_with_title(app: fn() -> Element, 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() -> Element {
rsx!(
rect {
width: "100%",
height: "100%",
label {
"Hello World!"
}
}
)
}