Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 534 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 534 Bytes

tmui

Cross platfom gui kit based on Skia.

Example

use tmui::prelude::*;
use tmui::{application::Application, application_window::ApplicationWindow, label::Label};

fn main() {
    let app = Application::builder()
        .width(1280)
        .height(800)
        .title("win32 window")
        .build();

    app.connect_activate(build_ui);

    app.run();
}

fn build_ui(window: &mut ApplicationWindow) {
    let label = Label::new(Some("Hello World!"));
    window.child(label);
}