pub struct ScrollRegion {
pub key: Key,
pub rect: Rect,
pub clip: Rect,
pub inert: bool,
pub handler: bool,
/* private fields */
}Expand description
A scroll container’s on-screen area, for wheel routing — or an
on_scroll node’s, which takes the wheel the same way and turns it
into an event instead of an offset.
Fields§
§key: Key§rect: Rect§clip: Rect§inert: boolOutside the frame’s modal scope: the bar still draws, the wheel and the thumb do nothing.
handler: boolThe node declared on_scroll: the wheel over it is an event on
it, no bars are drawn and no offset is kept. A region that is
both — a scroller that also declared the row — is the handler’s:
the app asked to hear the wheel, and hearing it and having the
content move under it would be two answers to one notch.
Trait Implementations§
Source§impl Clone for ScrollRegion
impl Clone for ScrollRegion
impl Copy for ScrollRegion
Auto Trait Implementations§
impl Freeze for ScrollRegion
impl RefUnwindSafe for ScrollRegion
impl Send for ScrollRegion
impl Sync for ScrollRegion
impl Unpin for ScrollRegion
impl UnsafeUnpin for ScrollRegion
impl UnwindSafe for ScrollRegion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more