pub struct PlayerViewState {
pub last_active_time: f64,
pub is_scrubbing: bool,
pub alpha: f32,
}Expand description
Explicit interaction and animation state for crate::controls::MacPlayerView.
Replaces scattered egui context queries with a consolidated, testable state container.
Fields§
§last_active_time: f64Timestamp (in seconds) of the last user interaction or cursor movement within the player view.
is_scrubbing: boolWhether the user is actively dragging the timeline scrubber playhead knob.
alpha: f32Current animated opacity alpha of the floating HUD controls ($0.0 \to 1.0$).
Trait Implementations§
Source§impl Clone for PlayerViewState
impl Clone for PlayerViewState
impl Copy for PlayerViewState
Source§impl Debug for PlayerViewState
impl Debug for PlayerViewState
Source§impl Default for PlayerViewState
impl Default for PlayerViewState
Source§impl PartialEq for PlayerViewState
impl PartialEq for PlayerViewState
impl StructuralPartialEq for PlayerViewState
Auto Trait Implementations§
impl Forget for PlayerViewState
impl Freeze for PlayerViewState
impl RefUnwindSafe for PlayerViewState
impl Send for PlayerViewState
impl Sync for PlayerViewState
impl Unpin for PlayerViewState
impl UnsafeUnpin for PlayerViewState
impl UnwindSafe for PlayerViewState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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