Skip to main content

Crate cranpose_ui_graphics

Crate cranpose_ui_graphics 

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

prelude

Structs§

Color
CornerRadii
Dp
Density-independent pixels
DrawScopeDefault
EdgeInsets
Padding values for each edge of a rectangle.
FontWeight
Font weight (100-900)
GraphicsLayer
ImageBitmap
Immutable RGBA image data used by UI primitives and render backends.
Point
Px
Raw pixels
Rect
RoundedCornerShape
Size
Sp
Scale-independent pixels (for text)
TextStyle
Text style (data only, no rendering)

Enums§

Brush
ColorFilter
Simple image color filter model.
DrawPrimitive
FontStyle
Font style (normal, italic, oblique)
ImageBitmapError
Errors returned while constructing an ImageBitmap.

Traits§

DrawScope