Skip to main content

with_focus

Function with_focus 

Source
pub fn with_focus(scene: Expr, focused_id: &str) -> Expr
Expand description

Annotates scene with focused_id as open focus metadata.

Focus is a metadata field on the scene node, never a new scene kind: the id is stored as a bare symbol under FOCUS_KEY, so a surface that does not understand focus simply ignores it and the scene still validates. An existing focus annotation is replaced.