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
Resolves a borrowed shape with the layer transform, paint, and clipping applied.
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
The clip a node paints within once its own clip meets the clips above it: None only when nothing clips at all. Two clips that do not overlap resolve to Rect::EMPTY, never to None – a list that has scrolled a control past its edge has clipped the control away, not set it free.
resolve_primitive_clip
round_rect_shape_params
The DrawPrimitive::RoundRect arm of emit_draw_primitive; see rect_shape_params.