Skip to main content

extract_scrollbars

Function extract_scrollbars 

Source
pub fn extract_scrollbars(main: &mut World, render: &mut World)
Expand description

Extract fn emitting one ExtractedScrollbar per crate::input::Scroll container whose content overflows on an allowed axis and whose fade alpha is above zero. Geometry comes from the shared crate::input::vertical_scrollbar / crate::input::horizontal_scrollbar math so painted pixels and hit regions always agree. All visuals (colors, thickness, minimums) resolve through crate::input::ScrollbarStyle - CSS scrollbar-color / scrollbar-width per container, with the component’s Default as the no-stylesheet fallback.