Expand description
Render model and draw command generation module.
Structs§
- Affine
Transform - An affine transformation matrix (2D), in row-major convention with an implicit translation.
- Image
- Decoded image pixels shared between the engine and platform renderer.
- Paint
- How a path is painted: the brush plus an opacity multiplier.
- Path
- A path made of
PathCommands. - Rect
- An axis-aligned rectangle.
Enums§
- Brush
- A fill source: a solid color or a gradient.
- Draw
Command - A drawing instruction for the GPU renderer.
- Fill
Rule - Fill rule for path filling.
- Path
Command - A single path drawing command.
- System
UiKind - Discriminator for
DrawCommand::SystemUi. Stub
Functions§
- clamp_
radii - Scale a set of corner radii
(rx, ry)(CSS order TL, TR, BR, BL) down proportionally so no opposing pair exceeds the box dimensions, following the CSSborder-radiusclamping rule. - ellipse_
path - Builds a closed ellipse path centered at
(cx, cy)with radiirx/ry. - generate_
draw_ commands - LayoutNode + InfoNode → DrawCommand
- polygon_
path - Builds a closed polygon path from the given vertex list.
- rect_
path - Builds a closed rectangle path with top-left corner at
(x, y). - rounded_
rect_ path - Builds a closed rounded rectangle path with top-left corner at
(x, y).