Rust Widget Toolkit
Wtk is a simple widget toolkit.
use wtk::prelude::*;
fn main() {
let mut app = App::<SDLBackend>::new("WTK button example");
let button = Button::new("clickme", |b| {
b.set_text("clicked");
});
app.add_widget(button.shared());
app.run();
}
Embedding
You don't need to use App, you may embed wtk by directly utilizing a DrawBackend. See the embedded.rs example.