Skip to main content

Module style_shared

Module style_shared 

Source

Re-exports§

pub use crate::graph::quad_bounds;

Structs§

NodeStyle

Enums§

DrawPlacement
ResolvedBrush
A layer-resolved brush, split at the solid/gradient boundary.

Functions§

apply_layer_to_brush
apply_layer_to_color
The colour a primitive is actually painted in, once this layer has had its say.
combine_layers
compose_color_filters
primitives_for_placement
recording_for_placement_reusing
Records command into storage, a recording the caller kept from an earlier frame so its buffers keep the capacity they earned, and names the segments placement draws: everything for a behind or overlay command, the part before or after the last content marker for a with-content command. None when the command has no placement half, in which case storage is not acquired and nothing is recorded.
resolve_layer_brush
apply_layer_to_brush without the solid-brush clone: the borrowed brush’s color is copied (or layer-adjusted) inline, and only gradients are cloned. Produces exactly the values apply_layer_to_brush would — both branches below mirror its fast path and its Solid arm verbatim.
scale_corner_radii