pub struct ChangeIndicatorState {
pub phase: f32,
pub speed: f32,
pub enabled: bool,
}Expand description
State for animating change indicators.
Fields§
§phase: f32Animation phase (0.0 to 1.0, loops).
speed: f32Animation speed multiplier.
enabled: boolWhether animation is enabled.
Implementations§
Source§impl ChangeIndicatorState
impl ChangeIndicatorState
Sourcepub fn pulse_scale(&self) -> f32
pub fn pulse_scale(&self) -> f32
Get the current pulse scale (1.0 to 1.3).
Sourcepub fn ring_alpha(&self) -> f32
pub fn ring_alpha(&self) -> f32
Get the current alpha for outer ring (fades in/out).
Trait Implementations§
Source§impl Clone for ChangeIndicatorState
impl Clone for ChangeIndicatorState
Source§fn clone(&self) -> ChangeIndicatorState
fn clone(&self) -> ChangeIndicatorState
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 Debug for ChangeIndicatorState
impl Debug for ChangeIndicatorState
Auto Trait Implementations§
impl Freeze for ChangeIndicatorState
impl RefUnwindSafe for ChangeIndicatorState
impl Send for ChangeIndicatorState
impl Sync for ChangeIndicatorState
impl Unpin for ChangeIndicatorState
impl UnwindSafe for ChangeIndicatorState
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