OrbTk

Build status MIT licensed crates.io docs.rs

OrbTk 0.3.0 is under heavy development and is not compatible with earlier releases.

The Orbital Widget Toolkit is a multi platform (G)UI toolkit for building scalable user interfaces with the programming language Rust. It's based on the Entity Component System Pattern and provides a functional-reactive like API.

The main goals of OrbTk are speed, ease of use, and being cross platform.

Calculator

Features:

Platforms

Usage

To include OrbTk in your project, just add the dependency line to your Cargo.toml file:

text orbtk = "0.2.27"

To use OrbTk 0.3, just add the dependency line to your Cargo.toml file:

text orbtk = { git = "https://gitlab.redox-os.org/redox-os/orbtk.git" }

Minimal Example

```rust use orbtk::prelude::*;

fn main() { 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").build(ctx)) .build(ctx) }) .run(); } ```

Run Examples

You can find examples in the examples/ directory.

You can start the widgets example by executing the following command:

text cargo run --example widgets --release

Run Examples with cargo-node

To run the examples on as browser, electron or cordova app you have to install

text cargo install -f cargo-node

Before you could use cargo node you have to install npm version 6.9.0. It is included in the Node.js version 10.16.3. You could download it from https://nodejs.org/dist/v10.16.3/.

Rust's cargo is presumed. All other dependencies of cargo node will be installed automatic.

Start examples

You can start the widgets example by executing the following command:

text cargo node run --target browser --example widgets

text cargo node run --target electron --example widgets

text cargo node run --target android --example widgets

Build and run documentation

You can build and run the latest documentation by executing the following command:

text cargo doc --no-deps --open

Planned features

Sub Crates

Inspirations

Showcases

Contribution

If you want to help bring OrbTk further or you have feedback check our issue board https://gitlab.redox-os.org/redox-os/orbtk/-/boards/120. You could also discuss with us about OrbTk on the Redox chat https://redox-os.org/community/ (join the orbital channel).

License

Licensed under MIT license (LICENSE).