Skip to main content

Module scene

Module scene 

Source
Expand description

Scene graph — Container, Sprite, Graphics, Text, Mesh, transforms, clip masks.

M0.8 introduces the Stage root and the Node/NodeId storage. Submodules host the concrete node types as they land.

Re-exports§

pub use callout::Callout;
pub use clip::MaskShape;
pub use container::Container;
pub use dim_outside::DimOutside;
pub use dim_outside::DimStrength;
pub use flex_text::FlexText;
pub use graphics::Fill;
pub use graphics::Graphics;
pub use graphics::Stroke;
pub use highlight::Highlight;
pub use mesh::Mesh;
pub use node::Node;
pub use node::NodeId;
pub use path::Path;
pub use path::PathBuilder;
pub use path::PathCommand;
pub use privacy_blur::BlurStrength;
pub use privacy_blur::PrivacyBlur;
pub use sprite::Sprite;
pub use text::Font;
pub use text::Text;
pub use transform::Transform;
pub use vector::Vector;
pub use vector::VectorShape;
pub use vector::VectorStroke;

Modules§

callout
Callout primitives (M-VEC.9 / AUT-61).
clip
Mask shapes used by Container::clip to clip a node’s rendered subtree to a region.
container
Container — scene-graph node holding children, transform, alpha, visible, blend mode.
dim_outside
Renderer-side data for the dim-outside composition primitive (M-MASK / AUT-29). Companion to PrivacyBlur and the lower-level Renderer::apply_spotlight.
flex_text
FlexText — late-pass textured-quad scene node.
graphics
Graphics — vector primitives (rect, rounded rect, ellipse, line, stroke).
highlight
Highlight overlay presets (M-VEC.8 / AUT-60).
mesh
Mesh — textured quad with 3D perspective rotation around the Y axis.
node
Tagged union of scene-graph node variants.
path
Path commands + adaptive Bezier flattening (M-VEC.10 / AUT-62).
privacy_blur
Renderer-side data for the privacy-blur composition primitive.
sprite
Sprite — textured quad with anchor and tint.
text
Text — bitmap-font glyph rendering.
transform
Transform — local 2D affine transform built from translate / scale / rotate / pivot / skew.
vector
Vector shape primitive model — Screen’s shared shape language (M-VEC.1 / AUT-53).

Structs§

Stage
Scene graph root.