7 unstable releases (3 breaking)
0.3.3 | Feb 3, 2022 |
---|---|
0.3.2 | Dec 6, 2021 |
0.3.0 | Nov 11, 2021 |
0.2.0 | Oct 29, 2021 |
0.0.0 | May 4, 2019 |
#385 in GUI
49 downloads per month
45KB
747 lines
paws
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.
lib.rs
:
paws is a very simple, bring-your-own-backend UI library built for quick prototyping and easy embedding
in existing projects. If you're looking for docs on how to start, see [Ui
].