This is a very basic example showing a window with one button.
The window is created programatically, and so is the button control. The button click event is handled with a closure, where the title of the window changes.
To compile and run:
cargo run
To generate the final executable:
cargo build --release