Skip to main content

scroll_widget

Function scroll_widget 

pub fn scroll_widget(
    root: &mut dyn Widget,
    scroll: &DrawnScroll,
    offset: f64,
) -> bool
Expand description

Scroll the region scroll names to offset, in the widget’s own pixels, when the widget that drew it is still in root’s tree. Finds it by address and type, never through the address kept. Returns whether it was found.