18 lines
467 B
Plaintext
18 lines
467 B
Plaintext
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();
|
|
}
|