Skip to main content

NSAnimationDelegate

Trait NSAnimationDelegate 

Source
pub unsafe trait NSAnimationDelegate: NSObjectProtocol {
    // Provided methods
    fn animationShouldStart(&self, animation: &NSAnimation) -> bool
       where Self: Sized + Message { ... }
    fn animationDidStop(&self, animation: &NSAnimation)
       where Self: Sized + Message { ... }
    fn animationDidEnd(&self, animation: &NSAnimation)
       where Self: Sized + Message { ... }
    fn animation_valueForProgress(
        &self,
        animation: &NSAnimation,
        progress: NSAnimationProgress,
    ) -> c_float
       where Self: Sized + Message { ... }
    fn animation_didReachProgressMark(
        &self,
        animation: &NSAnimation,
        progress: NSAnimationProgress,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature NSAnimation only.
Expand description

Provided Methods§

Source

fn animationShouldStart(&self, animation: &NSAnimation) -> bool
where Self: Sized + Message,

Source

fn animationDidStop(&self, animation: &NSAnimation)
where Self: Sized + Message,

Source

fn animationDidEnd(&self, animation: &NSAnimation)
where Self: Sized + Message,

Source

fn animation_valueForProgress( &self, animation: &NSAnimation, progress: NSAnimationProgress, ) -> c_float
where Self: Sized + Message,

Source

fn animation_didReachProgressMark( &self, animation: &NSAnimation, progress: NSAnimationProgress, )
where Self: Sized + Message,

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSAnimationDelegate

Source§

impl ProtocolType for dyn NSAnimationDelegate

Source§

const NAME: &'static str = "NSAnimationDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSAnimationDelegate for ProtocolObject<T>

Implementors§

Source§

impl NSAnimationDelegate for NSTitlebarAccessoryViewController

Available on crate feature NSTitlebarAccessoryViewController only.