pub struct SsTrackInfo {Show 15 fields
pub main_source: Option<u32>,
pub alpha: f32,
pub blend: TrackBlend,
pub sync: TrackSync,
pub frame: Option<f32>,
pub fade_progress: Option<f32>,
pub speed: f32,
pub frame_rate: i32,
pub frame_skip_enabled: bool,
pub direction: PlaybackDirection,
pub style: PlaybackStyle,
pub loop_count: Option<i32>,
pub finished: bool,
pub just_looped: bool,
pub outgoing_event_threshold: f32,
}Expand description
One track of SsTrackState.
Fields§
§main_source: Option<u32>The source carrying the track’s animation; None on an empty track.
alpha: f32The track’s alpha.
blend: TrackBlendHow the track composes onto the tracks below it.
sync: TrackSyncWhere the animations laid on the track start.
frame: Option<f32>The track’s playhead; None on an empty track.
fade_progress: Option<f32>How far a fade on the track has got, 0..=1; None when not fading.
speed: f32The track’s speed, frame rate (the override or the authored rate),
frame skip and heading — what TrackCommand::SetSpeed and the
commands after it set.
frame_rate: i32The track’s frame rate: the override, or the authored rate.
frame_skip_enabled: boolWhether the track skips frames to keep time.
direction: PlaybackDirectionWhich way the track’s playhead walks.
style: PlaybackStyleHow the track behaves at the end of its section.
loop_count: Option<i32>-1 for a track that loops forever; None on an empty track.
finished: boolThe track’s animation has played its loop count out and holds its last frame.
just_looped: boolThe last advance wrapped the track’s animation back to its start.
outgoing_event_threshold: f32The threshold the outgoing side of a crossfade on the track fires its events at.
Trait Implementations§
Source§impl Clone for SsTrackInfo
impl Clone for SsTrackInfo
Source§impl Debug for SsTrackInfo
impl Debug for SsTrackInfo
Source§impl PartialEq for SsTrackInfo
impl PartialEq for SsTrackInfo
impl StructuralPartialEq for SsTrackInfo
Auto Trait Implementations§
impl Freeze for SsTrackInfo
impl RefUnwindSafe for SsTrackInfo
impl Send for SsTrackInfo
impl Sync for SsTrackInfo
impl Unpin for SsTrackInfo
impl UnsafeUnpin for SsTrackInfo
impl UnwindSafe for SsTrackInfo
Blanket Implementations§
§impl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
§fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
T [ShaderType] for self. When used in [AsBindGroup]
derives, it is safe to assume that all images in self exist.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
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,
impl<T> ConditionalSend for Twhere
T: Send,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Settings for T
§impl<T> Template for T
impl<T> Template for T
§fn build_template(
&self,
_context: &mut TemplateContext<'_, '_>,
) -> Result<<T as Template>::Output, BevyError>
fn build_template( &self, _context: &mut TemplateContext<'_, '_>, ) -> Result<<T as Template>::Output, BevyError>
entity context to produce a [Template::Output].§fn clone_template(&self) -> T
fn clone_template(&self) -> T
Clone.§impl<T> TypeData for T
impl<T> TypeData for T
§fn clone_type_data(&self) -> Box<dyn TypeData>
fn clone_type_data(&self) -> Box<dyn TypeData>
self.