pub struct ScrollbarFadeState {
pub last_activity_time: Option<Instant>,
pub needs_vertical: bool,
pub needs_horizontal: bool,
}Expand description
Internal state for tracking per-scrollbar fade activity.
Stores the last scroll activity time so that tick() can
independently recalculate opacity values each frame without
needing access to the ScrollManager.
Fields§
§last_activity_time: Option<Instant>Timestamp of last scroll activity for this scrollbar
needs_vertical: boolWhether this scrollbar needs vertical fading
needs_horizontal: boolWhether this scrollbar needs horizontal fading
Trait Implementations§
Source§impl Clone for ScrollbarFadeState
impl Clone for ScrollbarFadeState
Source§fn clone(&self) -> ScrollbarFadeState
fn clone(&self) -> ScrollbarFadeState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScrollbarFadeState
impl RefUnwindSafe for ScrollbarFadeState
impl Send for ScrollbarFadeState
impl Sync for ScrollbarFadeState
impl Unpin for ScrollbarFadeState
impl UnsafeUnpin for ScrollbarFadeState
impl UnwindSafe for ScrollbarFadeState
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> 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