pub struct ScrollAreaState<'a> { /* private fields */ }Expand description
Temporary state for ScrollArea.
This state is not meant to keep, it just repackages the widget state for use by ScrollArea.
Implementations§
Source§impl<'a> ScrollAreaState<'a>
impl<'a> ScrollAreaState<'a>
pub fn new() -> Self
pub fn area(self, area: Rect) -> Self
pub fn v_scroll(self, v_scroll: &'a mut ScrollState) -> Self
pub fn v_scroll_opt(self, v_scroll: Option<&'a mut ScrollState>) -> Self
pub fn h_scroll(self, h_scroll: &'a mut ScrollState) -> Self
pub fn h_scroll_opt(self, h_scroll: Option<&'a mut ScrollState>) -> Self
Trait Implementations§
Source§impl<'a> Debug for ScrollAreaState<'a>
impl<'a> Debug for ScrollAreaState<'a>
Source§impl<'a> Default for ScrollAreaState<'a>
impl<'a> Default for ScrollAreaState<'a>
Source§fn default() -> ScrollAreaState<'a>
fn default() -> ScrollAreaState<'a>
Returns the “default value” for a type. Read more
Source§impl HandleEvent<Event, MouseOnly, ScrollOutcome> for ScrollAreaState<'_>
Handle scrolling for the whole area spanned by the two scroll-states.
impl HandleEvent<Event, MouseOnly, ScrollOutcome> for ScrollAreaState<'_>
Handle scrolling for the whole area spanned by the two scroll-states.
Auto Trait Implementations§
impl<'a> Freeze for ScrollAreaState<'a>
impl<'a> !RefUnwindSafe for ScrollAreaState<'a>
impl<'a> Send for ScrollAreaState<'a>
impl<'a> !Sync for ScrollAreaState<'a>
impl<'a> Unpin for ScrollAreaState<'a>
impl<'a> !UnwindSafe for ScrollAreaState<'a>
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> 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