https://github.com/rustq/taitank-safe
Rust binding of tencent/taitank provides safe binding to the layout library
https://github.com/rustq/taitank-safe
flex layout rust
Last synced: 4 months ago
JSON representation
Rust binding of tencent/taitank provides safe binding to the layout library
- Host: GitHub
- URL: https://github.com/rustq/taitank-safe
- Owner: rustq
- Created: 2024-11-02T13:46:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-16T06:39:17.000Z (over 1 year ago)
- Last Synced: 2025-02-16T07:24:15.755Z (over 1 year ago)
- Topics: flex, layout, rust
- Language: Rust
- Homepage:
- Size: 74.2 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Taitank Safe
[](https://opensource.org/licenses/MIT)
[](https://crates.io/crates/taitank-safe)
[](https://github.com/rustq/taitank-safe/actions)
Rust binding of [tencent/taitank](https://github.com/tencent/taitank) provides safe binding to the layout library.
## Usage
```toml
[dependencies]
taitank-safe = "0.1.0"
```
```rust
use taitank_safe::*;
let mut root = node_create();
set_width(&mut root, 100.0);
set_height(&mut root, 100.0);
set_flex_grow(&mut root, 1.0);
layout!(&mut root);
```
## Development
```shell
$ git clone git@github.com:rustq/taitank-safe.git
```
```shell
$ cd taitank-safe
```
```shell
$ cargo run --example demo
```
## License
[MIT](https://opensource.org/licenses/MIT)