Skip to main content

Module primitive_emit

Module primitive_emit 

Source

Structs§

ImageDrawParams
ShapeDrawParams
TextDrawParams
A DrawScope text run, lowered into the vocabulary the text pipeline already speaks.

Enums§

PrimitiveClipSpace

Traits§

DrawPrimitiveSink

Functions§

arc_shape_params
The DrawPrimitive::Arc arm of emit_draw_primitive; see rect_shape_params.
draw_shape_params_for_primitive
emit_draw_primitive
rect_shape_params
The DrawPrimitive::Rect arm of emit_draw_primitive as a pure builder over borrowed fields. The parallel shape-run collect calls these directly from worker threads — a &DrawPrimitive cannot cross (the text variant carries Rc), but the shape variants’ fields can.
resolve_clip
resolve_primitive_clip
round_rect_shape_params
The DrawPrimitive::RoundRect arm of emit_draw_primitive; see rect_shape_params.