pub struct ScrollTo {
pub x_px: Option<f64>,
pub y_px: Option<f64>,
pub item: u32,
pub animate: bool,
}Expand description
A request to scroll a container to an offset, written by Batch::scroll_to.
An axis left None is not touched, so setting one axis never sends a stale value for
the other. The Renderer keeps each value inside the range the content allows, and
ignores the request while the user is dragging or flinging the container.
Fields§
§x_px: Option<f64>§y_px: Option<f64>§item: u32In a lazy list, the item the offset is measured from. 0 everywhere else.
animate: boolTrait Implementations§
impl Copy for ScrollTo
impl StructuralPartialEq for ScrollTo
Auto Trait Implementations§
impl Forget for ScrollTo
impl Freeze for ScrollTo
impl Move for ScrollTo
impl RefUnwindSafe for ScrollTo
impl Send for ScrollTo
impl Sync for ScrollTo
impl Unpin for ScrollTo
impl UnsafeUnpin for ScrollTo
impl UnwindSafe for ScrollTo
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