Skip to main content

Module render

Module render 

Source

Structs§

Blend
True alpha-blending compositor. Requires a PixelRead target.
Dither
Ordered-dither compositor (default). No readback required.
LayerState
RenderBackendCaps
RenderCtx
StrokeStyle
TextMetrics
TextStyle
Transform2D

Enums§

AntiAliasMode
BlendMode
ColorFormat
EllipsisMode
RenderQuality
StrokeCap
StrokeJoin
TextAlign
TextOverflow
TextOverflowPolicy
TextWrap
VerticalAlign

Constants§

CHAR_HEIGHT
CHAR_WIDTH

Traits§

Compositor
Pixel-plotting policy for a RenderCtx. Selected by the ctx’s C type parameter so the same drawing calls composite differently depending on the target’s capabilities — with no runtime branch and no specialization.
PixelRead
Capability trait for draw targets that can read back a pixel they’ve already written. Optional: the default opacity/blend APIs on RenderCtx only require DrawTarget and approximate translucency with ordered dithering, so they keep working on write-only displays. Implementing PixelRead additionally unlocks the *_true_alpha methods, which composite against the destination’s actual current contents instead of dithering.