Skip to main content

render_scrollbar

Function render_scrollbar 

Source
pub fn render_scrollbar(
    canvas: &mut SkiaCanvas,
    direction: ScrollDirection,
    viewport_x: f32,
    viewport_y: f32,
    viewport_w: f32,
    viewport_h: f32,
    offset: f32,
    content_size: f32,
    opacity: f32,
)
Expand description

Render a scrollbar thumb onto canvas for the given viewport and scroll state.

opacity in 0.0–1.0 controls the thumb alpha (used for the fade-out effect).