feat: add orbtk
This commit is contained in:
1775
__gui/orbtk/Cargo.lock
generated
Normal file
1775
__gui/orbtk/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
11
__gui/orbtk/Cargo.toml
Normal file
11
__gui/orbtk/Cargo.toml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
[package]
|
||||||
|
name = "orbtk"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
orbtk = "0.3.1-alpha3"
|
||||||
|
|
||||||
|
|
||||||
15
__gui/orbtk/src/main.rs
Normal file
15
__gui/orbtk/src/main.rs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
use orbtk::prelude::*;
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
Application::new()
|
||||||
|
.window(|ctx| {
|
||||||
|
Window::new()
|
||||||
|
.title("OrbTk - minimal example")
|
||||||
|
.position((100.0, 100.0))
|
||||||
|
.size(400.0, 600.0)
|
||||||
|
.child(TextBlock::new().text("OrbTk").build(ctx))
|
||||||
|
.build(ctx)
|
||||||
|
})
|
||||||
|
.run();
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user