Skip to main content

advance_component_theme

Function advance_component_theme 

Source
pub fn advance_component_theme(
    target: Scheme,
    scale: f32,
    window: &mut Window,
    cx: &mut App,
) -> bool
Expand description

Advance Material paint and its enabled Component projection before Root rendering. Call from theme/scale events and next-frame callbacks, not from Render. Returns whether the animation needs another frame; the caller owns scheduling and should retain only one pending callback. This function never schedules an animation itself. Base-only callers remain supported.