Skip to main content

Module renderer_model

Module renderer_model 

Source
Expand description

Render model and draw command generation module.

Structs§

AffineTransform
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.
DrawCommand
A drawing instruction for the GPU renderer.
FillRule
Fill rule for path filling.
PathCommand
A single path drawing command.
SystemUiKind
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 CSS border-radius clamping rule.
ellipse_path
Builds a closed ellipse path centered at (cx, cy) with radii rx/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).