Crate paws

Crate paws 

Source
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§

pub use AlignH::*;
pub use AlignV::*;

Macros§

build
Convenience macro for pushing and popping 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.
NoRendererFont
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 to Vector::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).

Type Aliases§

Alignment
Alignment type. This is used in ui.align(alignment) and text rendering.
Point
Alias for vectors, used to better state intent in certain places.