Skip to main content

Module core

Module core 

Source
Expand description

Core geometry and style types for agpu.

Provides Color, Rect, Position, Size, Margin, TextStyle, and FontWeight — the spatial and visual primitives used throughout the rendering pipeline.

Structs§

Color
RGBA color with f32 components in [0.0, 1.0].
Margin
Margins around a rectangle.
Position
A 2D point in logical pixel coordinates.
Rect
A 2D rectangle defined by position and size in logical pixels.
Size
A 2D size in logical pixels.
TextStyle
Text style properties.

Enums§

FontWeight
Font weight categories.