Trait UIViewAnimating

Source
pub unsafe trait UIViewAnimating: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn state(&self) -> UIViewAnimatingState
       where Self: Sized + Message { ... }
    unsafe fn isRunning(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn isReversed(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn setReversed(&self, reversed: bool)
       where Self: Sized + Message { ... }
    unsafe fn fractionComplete(&self) -> CGFloat
       where Self: Sized + Message { ... }
    unsafe fn setFractionComplete(&self, fraction_complete: CGFloat)
       where Self: Sized + Message { ... }
    unsafe fn startAnimation(&self)
       where Self: Sized + Message { ... }
    unsafe fn startAnimationAfterDelay(&self, delay: NSTimeInterval)
       where Self: Sized + Message { ... }
    unsafe fn pauseAnimation(&self)
       where Self: Sized + Message { ... }
    unsafe fn stopAnimation(&self, without_finishing: bool)
       where Self: Sized + Message { ... }
    unsafe fn finishAnimationAtPosition(
        &self,
        final_position: UIViewAnimatingPosition,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UIViewAnimating only.
Expand description

Provided Methods§

Source

unsafe fn state(&self) -> UIViewAnimatingState
where Self: Sized + Message,

Source

unsafe fn isRunning(&self) -> bool
where Self: Sized + Message,

Source

unsafe fn isReversed(&self) -> bool
where Self: Sized + Message,

Source

unsafe fn setReversed(&self, reversed: bool)
where Self: Sized + Message,

Setter for isReversed.

Source

unsafe fn fractionComplete(&self) -> CGFloat
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.
Source

unsafe fn setFractionComplete(&self, fraction_complete: CGFloat)
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

Setter for fractionComplete.

Source

unsafe fn startAnimation(&self)
where Self: Sized + Message,

Source

unsafe fn startAnimationAfterDelay(&self, delay: NSTimeInterval)
where Self: Sized + Message,

Source

unsafe fn pauseAnimation(&self)
where Self: Sized + Message,

Source

unsafe fn stopAnimation(&self, without_finishing: bool)
where Self: Sized + Message,

Source

unsafe fn finishAnimationAtPosition( &self, final_position: UIViewAnimatingPosition, )
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn UIViewAnimating

Source§

const NAME: &'static str = "UIViewAnimating"

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
Source§

impl<T> ImplementedBy<T> for dyn UIViewAnimating

Implementations on Foreign Types§

Source§

impl<T> UIViewAnimating for ProtocolObject<T>
where T: ?Sized + UIViewAnimating,

Implementors§

Source§

impl UIViewAnimating for UIViewPropertyAnimator

Available on crate feature UIViewPropertyAnimator only.