pub struct ScrollController { /* private fields */ }Implementations§
Source§impl ScrollController
impl ScrollController
pub fn new(x: i32, y: i32, initial_requests: Vec<ScrollRequest>) -> Self
pub fn managed( notifier: State<()>, requests: State<Vec<ScrollRequest>>, on_scroll: State<Callback<ScrollEvent, bool>>, get_scroll: State<Callback<(), (i32, i32)>>, ) -> Self
pub fn use_apply(&mut self, width: f32, height: f32)
pub fn scroll_to_x(&mut self, to: i32) -> bool
pub fn scroll_to_y(&mut self, to: i32) -> bool
pub fn scroll_to( &mut self, scroll_position: ScrollPosition, scroll_direction: Direction, )
Trait Implementations§
Source§impl Clone for ScrollController
impl Clone for ScrollController
Source§fn clone(&self) -> ScrollController
fn clone(&self) -> ScrollController
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 From<ScrollController> for (i32, i32)
impl From<ScrollController> for (i32, i32)
Source§fn from(val: ScrollController) -> Self
fn from(val: ScrollController) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScrollController
impl PartialEq for ScrollController
impl Copy for ScrollController
impl StructuralPartialEq for ScrollController
Auto Trait Implementations§
impl Freeze for ScrollController
impl !RefUnwindSafe for ScrollController
impl !Send for ScrollController
impl !Sync for ScrollController
impl Unpin for ScrollController
impl !UnwindSafe for ScrollController
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ComponentProps for T
impl<T> ComponentProps for T
fn changed(&self, other: &(dyn ComponentProps + 'static)) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more