frontend: the advoware GUI

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2020-06-12 16:39:45 +02:00
parent 3837183199
commit 51b73d0978
68 changed files with 3499 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
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(610.0, 610.0)
.resizeable(true)
.child(
ImageWidget::create()
.image("resources/images/advotracker.jpg")
.margin(10.0)
.vertical_alignment("Center")
.horizontal_alignment("Center")
.size(600.0, 600.0)
.clip(true)
.build(ctx),
)
.build(ctx)
})
.run();
}