Skip to main content

sample_shared_layout

Function sample_shared_layout 

Source
pub fn sample_shared_layout(
    scope: impl Into<SharedString>,
    layout_id: impl Into<SharedString>,
    target: LayoutSnapshot,
    spec: Option<SpringSpec>,
    window: &mut Window,
    cx: &mut App,
) -> LayoutFlipSample
Expand description

Convenience helper for GPUI prepaint/paint phases: updates the global LayoutRegistry and schedules another animation frame while the FLIP spring is moving.