Trait zng_wgt_scroll::WidgetInfoExt
source · pub trait WidgetInfoExt {
// Required methods
fn is_scroll(&self) -> bool;
fn scroll_info(&self) -> Option<ScrollInfo>;
fn viewport(&self) -> Option<PxRect>;
}
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!
.