Skip to main content

Module view

Module view 

Source

Structs§

BoxWithConstraintsScope
Scope passed to BoxWithConstraints content. All values are in Dp.
GradientStop
One gradient stop. offset is parametric along the gradient axis (0 at the start, 1 at the end). A stored offset is unconstrained; packing clamps it to 0..=1 and forces it non-decreasing for the GPU, so a caller may set it freely through GradientStops::as_mut_slice.
GradientStops
Inline stop table for PaintDesc::LinearStops / PaintDesc::RadialStops.
ImagePaintStyle
How an image is sampled and placed inside its Rect, bundled for ergonomic Default. tint stays on SceneNode::Image because untinted is an explicit choice, not a neutral one.
ImageSourceRect
OverlayEntry
PaintCallbackInfo
Scene
Renderable scene
SubcomposeScope
The constraints that will be passed to a subcomposed child. Values are in Dp, matching the units used by Modifier.
TextPaintStyle
Tunable text properties bundled for ergonomic Default, so a SceneNode::Text stays { rect, text, color, size, style } and simple nodes don’t spell out every knob. color and size stay on the variant because a default for either would silently draw invisible text.
VectorMeshData
Shared vertex/index buffers for a tessellated vector mesh.
VectorVertex
Pre-tessellated vertex: local position, premultiplied-linear color, and a free-form uv channel (unused for solid fills, reserved for texture/gradient sampling).
View

Enums§

BlendMode
Blend mode for a VectorMesh, following the CSS mix-blend-mode vocabulary used by SVG/Lottie-style artwork. All variants are wired into the renderer: separable modes use fixed-function blending, the rest (marked below) isolate the mesh into a graphics layer and composite it with a custom shader.
ImageAlignment
Placement of scaled content inside the view bounds. Mirrors Godot’s AspectRatioContainer::AlignmentMode and covers every fixed Alignment in Compose (Begin/End are physical left/right and top/bottom, not direction-aware).
ImageFilter
ImageFit
PaintDesc
How a VectorMesh is painted. Mirrors the Brush variants; gradient endpoints live in the mesh’s local space.
SceneNode
Paint-space scene graph. Rect/Vec2 compounds carry physical pixels (like Compose Offset/Size/Rect); scalar lengths use Px so the dp→px boundary is explicit instead of unitless f32.
StrokeCap
Controls how the endpoints of a stroked arc are drawn.
StrokeJoin
Controls how line segments are joined in a stroked path.
TextOverflow
ViewKind

Constants§

CANVAS_LAYER_ID_BASE
Graphics-layer ids live in non-overlapping bands because a single Scene routinely mixes layers from several producers. 1.. counts up from the producer side (repose-ui), the wgpu translator owns 0xE000_0000.. for separable-blur scratch textures and 0xF000_0000.. for perspective flattening, and canvas hosts own CANVAS_LAYER_ID_BASE..0xE000_0000.
MAX_GRADIENT_STOPS
Ceiling on the stops a multi-stop paint may carry. The renderer packs the table into the per-mesh uniform, so this is a hard structural limit rather than a soft recommendation; hosts should split longer ramps themselves.

Type Aliases§

ImageHandle
PaintCallbackPayload
ViewId