https://github.com/dflemstr/emui
An embedded user interface toolkit for Rust
https://github.com/dflemstr/emui
Last synced: 9 months ago
JSON representation
An embedded user interface toolkit for Rust
- Host: GitHub
- URL: https://github.com/dflemstr/emui
- Owner: dflemstr
- Created: 2019-12-16T15:48:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-16T15:53:10.000Z (over 6 years ago)
- Last Synced: 2025-03-21T15:32:33.206Z (over 1 year ago)
- Language: Rust
- Size: 13.1 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `emui`
A lightweight embedded user interface toolkit.
## Features
* Built on top of `embedded-graphics`.
* Uses a flexbox layout engine (`stretch`) so advanced layouts are possible, e.g. that are responsive to screen
resolution.
* Very low memory footprint.
* No dynamic dispatch; all code is inlinable and resulting code size is tiny.
* No allocator needed.
* Supports basic themeing.
## Examples
All of the following examples run the same business logic but with different displays/themes. The code is in the
[kitchen_sink](./examples/kitchen_sink.rs) file.
You can run them yourself with one of:
```shell
# monochrome example
$ cargo run --example kitchen_sink --release monochrome
# RGB example
$ cargo run --example kitchen_sink --release rgb
```
### Monochrome

### RGB

### Responsive layout
This is still running exactly the same code as above, just with a different display size.
