Expand description
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
.
Re-exports§
Macros§
- build
- Convenience macro for
push
ing andpop
ping groups automatically.
Structs§
- Color
- An 8-bit RGBA color.
- NoRenderer
- A dummy renderer. This can be used for executing graphics commands without a graphical backend available.
- NoRenderer
Font - A dummy font used by the NoRenderer backend.
- Padding
- Padding amounts.
- Rect
- An axis-aligned rectangle.
- Ui
- UI state. This is what’s used for laying out groups and drawing to the screen.
- Vector
- A two-dimensional vector.
Enums§
- AlignH
- Horizontal alignment position.
- AlignV
- Vertical alignment position.
- Layout
- Group layout type. This defines how subgroups are arranged inside of a group.
- LineCap
- The type of line cap to use when rendering.
Constants§
- CENTER
- Convenience const for
(Center, Middle)
alignment.
Traits§
- Renderer
- The renderer trait, used for all things drawing-related.
Functions§
- point
- Shorthand for
Point::new(x, y)
, which is equivalent toVector::new(x, y)
. - rgb
- Creates a new color from RGB channels.
- rgba
- Creates a new color from RGBA channels. Shorthand for
Color::new(r, g, b, a)
. - vector
- Shorthand for
Vector::new(x, y)
.