Expand description
Pure math/data for drawing & units in Cranpose
This crate contains geometry primitives, color definitions, brushes, and unit types that are used throughout the Cranpose framework.
Modules§
Structs§
- Color
- Corner
Radii - Dp
- Density-independent pixels
- Draw
Scope Default - Edge
Insets - Padding values for each edge of a rectangle.
- Font
Weight - Font weight (100-900)
- Graphics
Layer - Point
- Px
- Raw pixels
- Rect
- Rounded
Corner Shape - Size
- Sp
- Scale-independent pixels (for text)
- Text
Style - Text style (data only, no rendering)
Enums§
- Brush
- Draw
Primitive - Font
Style - Font style (normal, italic, oblique)