pub struct ScrollIntoView {
pub behavior: ScrollBehavior,
pub align_x: ScrollAlign,
pub align_y: ScrollAlign,
}Expand description
Specifies the scroll behavior for DomBuilder::scroll_into_view_signal.
Fields§
§behavior: ScrollBehaviorBehavior while scrolling.
align_x: ScrollAlignHorizontal alignment.
align_y: ScrollAlignVertical alignment.
Implementations§
Source§impl ScrollIntoView
impl ScrollIntoView
Sourcepub fn smooth_center() -> Self
pub fn smooth_center() -> Self
Smoothly scrolls until the element is in the middle of the screen.
Sourcepub fn smooth_nearest() -> Self
pub fn smooth_nearest() -> Self
Smoothly scrolls the minimum amount until the element is in view.
Trait Implementations§
Source§impl Clone for ScrollIntoView
impl Clone for ScrollIntoView
Source§fn clone(&self) -> ScrollIntoView
fn clone(&self) -> ScrollIntoView
Returns a duplicate 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 moreSource§impl Debug for ScrollIntoView
impl Debug for ScrollIntoView
Source§impl Default for ScrollIntoView
impl Default for ScrollIntoView
Source§impl Hash for ScrollIntoView
impl Hash for ScrollIntoView
Source§impl PartialEq for ScrollIntoView
impl PartialEq for ScrollIntoView
impl StructuralPartialEq for ScrollIntoView
Auto Trait Implementations§
impl Freeze for ScrollIntoView
impl RefUnwindSafe for ScrollIntoView
impl Send for ScrollIntoView
impl Sync for ScrollIntoView
impl Unpin for ScrollIntoView
impl UnwindSafe for ScrollIntoView
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