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§
sourcefn need_scroll(&self, area: Rect, state: &mut State) -> (bool, bool)
fn need_scroll(&self, area: Rect, state: &mut State) -> (bool, bool)
Widget wants a (horizontal, vertical) scrollbar. This gets combined with the ScrollbarPolicy.