pub struct ScrollTarget {
pub range: Rangef,
pub align: Option<Align>,
pub animation: ScrollAnimation,
}
Fields§
§range: Rangef
§align: Option<Align>
How should we align the rect within the visible area?
If align
is Align::TOP
it means “put the top of the rect at the top of the scroll area”, etc.
If align
is None
, it’ll scroll enough to bring the UI into view.
animation: ScrollAnimation
How should the scroll be animated?
Implementations§
Source§impl ScrollTarget
impl ScrollTarget
Trait Implementations§
Source§impl Clone for ScrollTarget
impl Clone for ScrollTarget
Source§fn clone(&self) -> ScrollTarget
fn clone(&self) -> ScrollTarget
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ScrollTarget
impl RefUnwindSafe for ScrollTarget
impl Send for ScrollTarget
impl Sync for ScrollTarget
impl Unpin for ScrollTarget
impl UnwindSafe for ScrollTarget
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