Trait CAAnimationSceneKitAdditions

Source
pub unsafe trait CAAnimationSceneKitAdditions:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn animationWithSCNAnimation(
        animation: &SCNAnimation,
    ) -> Retained<CAAnimation> { ... }
    unsafe fn usesSceneTimeBase(&self) -> bool { ... }
    unsafe fn setUsesSceneTimeBase(&self, uses_scene_time_base: bool) { ... }
    unsafe fn fadeInDuration(&self) -> CGFloat { ... }
    unsafe fn setFadeInDuration(&self, fade_in_duration: CGFloat) { ... }
    unsafe fn fadeOutDuration(&self) -> CGFloat { ... }
    unsafe fn setFadeOutDuration(&self, fade_out_duration: CGFloat) { ... }
    unsafe fn animationEvents(
        &self,
    ) -> Option<Retained<NSArray<SCNAnimationEvent>>> { ... }
    unsafe fn setAnimationEvents(
        &self,
        animation_events: Option<&NSArray<SCNAnimationEvent>>,
    ) { ... }
}
Available on crate feature SCNCAAnimationExtensions only.
Expand description

Category “SceneKitAdditions” on CAAnimation. Extends the CAAnimation class for SceneKit explicit animations.

Provided Methods§

Source

unsafe fn animationWithSCNAnimation( animation: &SCNAnimation, ) -> Retained<CAAnimation>

Available on crate feature SCNAnimation and crate feature objc2-quartz-core and non-watchOS only.

Bridge with SCNAnimation

Initializes a CoreAnimation animation from a SCNAnimation

Source

unsafe fn usesSceneTimeBase(&self) -> bool

Determines whether the receiver is evaluated using the scene time or the system time. Defaults to NO.

A scene-time based animation is evaluated using the “sceneTime” value of the renderer that renders the scene.

Source

unsafe fn setUsesSceneTimeBase(&self, uses_scene_time_base: bool)

Setter for usesSceneTimeBase.

Source

unsafe fn fadeInDuration(&self) -> CGFloat

Available on crate feature objc2-core-foundation only.

Determines the receiver’s fade-in duration.

When the fadeInDuration is greater than zero, the effect of the animation progressively increase from 0% to 100% during the specified duration.

Source

unsafe fn setFadeInDuration(&self, fade_in_duration: CGFloat)

Available on crate feature objc2-core-foundation only.

Setter for fadeInDuration.

Source

unsafe fn fadeOutDuration(&self) -> CGFloat

Available on crate feature objc2-core-foundation only.

Determines the receiver’s fade-out duration.

When the fadeOutDuration is greater than zero, the effect of the animation progressively decrease from 100% to 0% at the end of the animation duration.

Source

unsafe fn setFadeOutDuration(&self, fade_out_duration: CGFloat)

Available on crate feature objc2-core-foundation only.

Setter for fadeOutDuration.

Source

unsafe fn animationEvents(&self) -> Option<Retained<NSArray<SCNAnimationEvent>>>

Available on crate feature SCNAnimation only.

Specifies the animation events attached to the receiver.

Source

unsafe fn setAnimationEvents( &self, animation_events: Option<&NSArray<SCNAnimationEvent>>, )

Available on crate feature SCNAnimation only.

Setter for animationEvents.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl CAAnimationSceneKitAdditions for CAAnimation

Available on crate feature objc2-quartz-core and non-watchOS only.

Implementors§