Yoda/src/main.rs

26 lines
561 B
Rust
Raw Normal View History

2024-09-18 16:24:25 +03:00
use gtk4 as gtk;
use gtk::prelude::*;
use gtk::{glib, Application, ApplicationWindow};
fn main() -> glib::ExitCode
{
let app = Application::builder()
.application_id("io.github.yggverse.Yoda.app")
.build();
app.connect_activate(
|app|
{
let window = ApplicationWindow::builder()
.application(app)
.default_width(640)
.default_height(480)
.title("Yoda")
.build();
window.present();
}
);
app.run()
}