Element example

This commit is contained in:
2025-07-01 03:14:36 +02:00
parent 9a626fb1bc
commit da934d9625
5 changed files with 68 additions and 8 deletions
+3 -1
View File
@@ -1,10 +1,12 @@
use minifb::{Window, WindowOptions};
use osgui::App;
use osgui::{elements::Rect, App};
fn main() {
let window = Window::new("minifb example", 500, 500, WindowOptions::default()).unwrap();
let mut app = App::new(window);
app.element(Rect);
app.run();
}