pub struct SceneFrameContext {
pub frame: u32,
pub global_frame: u32,
pub composition: NativeCompositionContext,
}Expand description
Timeline state passed through a native scene-emitter tree.
Fields§
§frame: u32Frame local to the current sequence or freeze boundary.
global_frame: u32Unmodified composition frame.
composition: NativeCompositionContextImplementations§
Source§impl SceneFrameContext
impl SceneFrameContext
pub fn new(frame: u32, composition: NativeCompositionContext) -> Self
pub fn time_secs(self) -> f64
pub fn global_time_secs(self) -> f64
Trait Implementations§
Source§impl Clone for SceneFrameContext
impl Clone for SceneFrameContext
Source§fn clone(&self) -> SceneFrameContext
fn clone(&self) -> SceneFrameContext
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 moreimpl Copy for SceneFrameContext
Source§impl Debug for SceneFrameContext
impl Debug for SceneFrameContext
Source§impl PartialEq for SceneFrameContext
impl PartialEq for SceneFrameContext
impl StructuralPartialEq for SceneFrameContext
Auto Trait Implementations§
impl Freeze for SceneFrameContext
impl RefUnwindSafe for SceneFrameContext
impl Send for SceneFrameContext
impl Sync for SceneFrameContext
impl Unpin for SceneFrameContext
impl UnsafeUnpin for SceneFrameContext
impl UnwindSafe for SceneFrameContext
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