Trait zng::scroll::WidgetInfoExt
source · pub trait WidgetInfoExt {
// Required methods
fn is_scroll(&self) -> bool;
fn scroll_info(&self) -> Option<ScrollInfo>;
fn viewport(&self) -> Option<Rect<Px, Px>>;
}
Expand description
Scroll extensions for WidgetInfo
.
Required Methods§
sourcefn scroll_info(&self) -> Option<ScrollInfo>
fn scroll_info(&self) -> Option<ScrollInfo>
Returns a reference to the viewport bounds if the widget is a Scroll!
.