wtk 0.7.0

Simple widget toolkit
Documentation

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.

log crate compatibility

Enable the log feature in wtk to make wtk log using log. You can then display those logs with something like env_logger. See the logger.rs example.