Skip to main content

UICollisionBehaviorDelegate

Trait UICollisionBehaviorDelegate 

Source
pub unsafe trait UICollisionBehaviorDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn collisionBehavior_beganContactForItem_withItem_atPoint(
        &self,
        behavior: &UICollisionBehavior,
        item1: &ProtocolObject<dyn UIDynamicItem>,
        item2: &ProtocolObject<dyn UIDynamicItem>,
        p: CGPoint,
    )
       where Self: Sized + Message { ... }
    fn collisionBehavior_endedContactForItem_withItem(
        &self,
        behavior: &UICollisionBehavior,
        item1: &ProtocolObject<dyn UIDynamicItem>,
        item2: &ProtocolObject<dyn UIDynamicItem>,
    )
       where Self: Sized + Message { ... }
    unsafe fn collisionBehavior_beganContactForItem_withBoundaryIdentifier_atPoint(
        &self,
        behavior: &UICollisionBehavior,
        item: &ProtocolObject<dyn UIDynamicItem>,
        identifier: Option<&ProtocolObject<dyn NSCopying>>,
        p: CGPoint,
    )
       where Self: Sized + Message { ... }
    unsafe fn collisionBehavior_endedContactForItem_withBoundaryIdentifier(
        &self,
        behavior: &UICollisionBehavior,
        item: &ProtocolObject<dyn UIDynamicItem>,
        identifier: Option<&ProtocolObject<dyn NSCopying>>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UICollisionBehavior only.
Expand description

Provided Methods§

Source

fn collisionBehavior_beganContactForItem_withItem_atPoint( &self, behavior: &UICollisionBehavior, item1: &ProtocolObject<dyn UIDynamicItem>, item2: &ProtocolObject<dyn UIDynamicItem>, p: CGPoint, )
where Self: Sized + Message,

Available on crate features objc2-core-foundation and UIDynamicBehavior only.
Source

fn collisionBehavior_endedContactForItem_withItem( &self, behavior: &UICollisionBehavior, item1: &ProtocolObject<dyn UIDynamicItem>, item2: &ProtocolObject<dyn UIDynamicItem>, )
where Self: Sized + Message,

Available on crate feature UIDynamicBehavior only.
Source

unsafe fn collisionBehavior_beganContactForItem_withBoundaryIdentifier_atPoint( &self, behavior: &UICollisionBehavior, item: &ProtocolObject<dyn UIDynamicItem>, identifier: Option<&ProtocolObject<dyn NSCopying>>, p: CGPoint, )
where Self: Sized + Message,

Available on crate features objc2-core-foundation and UIDynamicBehavior only.
§Safety

identifier should be of the correct type.

Source

unsafe fn collisionBehavior_endedContactForItem_withBoundaryIdentifier( &self, behavior: &UICollisionBehavior, item: &ProtocolObject<dyn UIDynamicItem>, identifier: Option<&ProtocolObject<dyn NSCopying>>, )
where Self: Sized + Message,

Available on crate feature UIDynamicBehavior only.
§Safety

identifier should be of the correct type.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UICollisionBehaviorDelegate

Source§

impl ProtocolType for dyn UICollisionBehaviorDelegate

Source§

const NAME: &'static str = "UICollisionBehaviorDelegate"

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> UICollisionBehaviorDelegate for ProtocolObject<T>

Implementors§