Struct rat_widget::scrolled::ScrollAreaState
source · pub struct ScrollAreaState<'a> {
pub area: Rect,
pub h_scroll: Option<&'a mut ScrollState>,
pub v_scroll: Option<&'a mut ScrollState>,
}Expand description
Temporary state for ScrollArea.
This state is not meant to keep, it just packages the widgets state for use by ScrollArea.
Fields§
§area: Rect§h_scroll: Option<&'a mut ScrollState>§v_scroll: Option<&'a mut ScrollState>Trait Implementations§
source§impl<'a> Debug for ScrollAreaState<'a>
impl<'a> Debug for ScrollAreaState<'a>
source§impl<'a> HandleEvent<Event, MouseOnly, ScrollOutcome> for ScrollAreaState<'a>
impl<'a> HandleEvent<Event, MouseOnly, ScrollOutcome> for ScrollAreaState<'a>
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