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>>,
) { ... }
}SCNCAAnimationExtensions only.Expand description
Category “SceneKitAdditions” on CAAnimation.
Extends the CAAnimation class for SceneKit explicit animations.
Provided Methods§
Sourceunsafe fn animationWithSCNAnimation(
animation: &SCNAnimation,
) -> Retained<CAAnimation>
Available on crate feature SCNAnimation and crate feature objc2-quartz-core and non-watchOS only.
unsafe fn animationWithSCNAnimation( animation: &SCNAnimation, ) -> Retained<CAAnimation>
SCNAnimation and crate feature objc2-quartz-core and non-watchOS only.Bridge with SCNAnimation
Initializes a CoreAnimation animation from a SCNAnimation
Sourceunsafe fn usesSceneTimeBase(&self) -> bool
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.
Sourceunsafe fn setUsesSceneTimeBase(&self, uses_scene_time_base: bool)
unsafe fn setUsesSceneTimeBase(&self, uses_scene_time_base: bool)
Setter for usesSceneTimeBase.
Sourceunsafe fn fadeInDuration(&self) -> CGFloat
Available on crate feature objc2-core-foundation only.
unsafe fn fadeInDuration(&self) -> CGFloat
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.
Sourceunsafe fn setFadeInDuration(&self, fade_in_duration: CGFloat)
Available on crate feature objc2-core-foundation only.
unsafe fn setFadeInDuration(&self, fade_in_duration: CGFloat)
objc2-core-foundation only.Setter for fadeInDuration.
Sourceunsafe fn fadeOutDuration(&self) -> CGFloat
Available on crate feature objc2-core-foundation only.
unsafe fn fadeOutDuration(&self) -> CGFloat
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.
Sourceunsafe fn setFadeOutDuration(&self, fade_out_duration: CGFloat)
Available on crate feature objc2-core-foundation only.
unsafe fn setFadeOutDuration(&self, fade_out_duration: CGFloat)
objc2-core-foundation only.Setter for fadeOutDuration.
Sourceunsafe fn animationEvents(&self) -> Option<Retained<NSArray<SCNAnimationEvent>>>
Available on crate feature SCNAnimation only.
unsafe fn animationEvents(&self) -> Option<Retained<NSArray<SCNAnimationEvent>>>
SCNAnimation only.Specifies the animation events attached to the receiver.
Sourceunsafe fn setAnimationEvents(
&self,
animation_events: Option<&NSArray<SCNAnimationEvent>>,
)
Available on crate feature SCNAnimation only.
unsafe fn setAnimationEvents( &self, animation_events: Option<&NSArray<SCNAnimationEvent>>, )
SCNAnimation only.Setter for animationEvents.
This is copied when set.
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§
impl CAAnimationSceneKitAdditions for CAAnimation
objc2-quartz-core and non-watchOS only.