Trait rat_widget::scrolled::ScrollingWidget

source ·
pub trait ScrollingWidget<State> {
    // Required method
    fn need_scroll(&self, area: Rect, state: &mut State) -> (bool, bool);
}
Expand description

Trait for the widget struct of a scrollable widget.

Required Methods§

source

fn need_scroll(&self, area: Rect, state: &mut State) -> (bool, bool)

Widget wants a (horizontal, vertical) scrollbar. This gets combined with the ScrollbarPolicy.

Implementors§

source§

impl<'a> ScrollingWidget<RTextAreaState> for RTextArea<'a>

source§

impl<'a, Selection> ScrollingWidget<RTableState<Selection>> for RTable<'a, Selection>

source§

impl<'a, State, Selection: ListSelection> ScrollingWidget<State> for RList<'a, Selection>

source§

impl<State, T> ScrollingWidget<State> for View<T>
where T: Widget,

source§

impl<State, T> ScrollingWidget<State> for Viewport<T>
where T: StatefulWidget,