| Crates.io | paws |
| lib.rs | paws |
| version | 0.3.3 |
| created_at | 2019-05-04 09:19:51.317388+00 |
| updated_at | 2022-02-03 21:18:33.651659+00 |
| description | A very simple, bring-your-own-backend UI layout library built for quick prototyping. |
| homepage | |
| repository | https://github.com/liquidev/paws |
| max_upload_size | |
| id | 131944 |
| size | 46,034 |
paws is a very simple, bring-your-own-backend UI library built for quick prototyping, a small memory footprint, and easy embedding within existing projects.
This project is still a work in progress, expect breaking changes as the API is not final.
use paws::rgb;
type Ui = paws::Ui<MyRenderer>;
let mut ui = Ui::new(MyRenderer::new());
ui.root((800, 600), Layout::Freeform);
ui.push();
ui.pad(8);
ui.fill(rgb(0, 127, 255));
// draw more components here
ui.pop();
The whole idea behind paws is that the layout is built at the same time as it's drawn, by using a stack of rectangles with extra metadata – groups.
For more information on how to lay out elements, please read the documentation.