frontend: the advoware GUI
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
17
frontend/examples/minimal.rs
Normal file
17
frontend/examples/minimal.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
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 - minimal example")
|
||||
.position((100.0, 100.0))
|
||||
.size(420.0, 730.0)
|
||||
.child(TextBlock::create().text("OrbTk").margin(4.0).build(ctx))
|
||||
.build(ctx)
|
||||
})
|
||||
.run();
|
||||
}
|
||||
Reference in New Issue
Block a user