Skip to main content

WithScrollbar

Trait WithScrollbar 

Source
pub trait WithScrollbar: Sized {
    type Output;

    // Required method
    fn custom_scrollbars<T>(
        self,
        config: Scrollbars<T>,
        window: &mut Window,
        cx: &mut App,
    ) -> Self::Output
       where T: ScrollableHandle;

    // Provided method
    fn vertical_scrollbar_for<ScrollHandle: ScrollableHandle + Clone>(
        self,
        scroll_handle: &ScrollHandle,
        window: &mut Window,
        cx: &mut App,
    ) -> Self::Output { ... }
}

Required Associated Types§

Required Methods§

Source

fn custom_scrollbars<T>( self, config: Scrollbars<T>, window: &mut Window, cx: &mut App, ) -> Self::Output

Provided Methods§

Source

fn vertical_scrollbar_for<ScrollHandle: ScrollableHandle + Clone>( self, scroll_handle: &ScrollHandle, window: &mut Window, cx: &mut App, ) -> Self::Output

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl WithScrollbar for Stateful<Div>

Source§

type Output = Stateful<Div>

Source§

fn custom_scrollbars<T>( self, config: Scrollbars<T>, window: &mut Window, cx: &mut App, ) -> Self::Output

Implementors§