pub struct AnimationState {
pub list_scroll: SmoothScroll,
pub inspector_scroll: SmoothScroll,
pub search_cursor: Pulse,
pub selection_highlight: f64,
pub transition_progress: f64,
}Expand description
Collection of UI animation states
Fields§
§list_scroll: SmoothScroll§inspector_scroll: SmoothScroll§search_cursor: Pulse§selection_highlight: f64§transition_progress: f64Implementations§
Source§impl AnimationState
impl AnimationState
pub fn new() -> Self
Sourcepub fn on_selection_change(&mut self)
pub fn on_selection_change(&mut self)
Trigger selection animation
Sourcepub fn on_tab_change(&mut self)
pub fn on_tab_change(&mut self)
Trigger tab transition animation
Sourcepub fn is_animating(&self) -> bool
pub fn is_animating(&self) -> bool
Check if any animation is active
Trait Implementations§
Source§impl Debug for AnimationState
impl Debug for AnimationState
Source§impl Default for AnimationState
impl Default for AnimationState
Source§fn default() -> AnimationState
fn default() -> AnimationState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AnimationState
impl RefUnwindSafe for AnimationState
impl Send for AnimationState
impl Sync for AnimationState
impl Unpin for AnimationState
impl UnwindSafe for AnimationState
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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