Files
advotracker/frontend/examples/image.rs
2020-06-12 16:39:45 +02:00

22 lines
559 B
Rust

use orbtk::prelude::*;
fn main() {
// use this only if you want to run it as web application.
orbtk::initialize();
Application::new()
.window(|ctx| {
Window::create()
.title("OrbTk - image example")
.position((100.0, 100.0))
.size(800.0, 420.0)
.child(
ImageWidget::create()
.image("res/orbtk-space.png")
.build(ctx),
)
.build(ctx)
})
.run();
}