feat: add orbtk

This commit is contained in:
2021-08-15 17:45:29 +08:00
parent 4a873ab1f6
commit 8339336888
3 changed files with 1801 additions and 0 deletions

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
View 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
View 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();
}