Element example
This commit is contained in:
+3
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user