UICollisionBehaviorDelegate

Trait UICollisionBehaviorDelegate 

Source
pub unsafe trait UICollisionBehaviorDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn collisionBehavior_beganContactForItem_withItem_atPoint(
        &self,
        behavior: &UICollisionBehavior,
        item1: &ProtocolObject<dyn UIDynamicItem>,
        item2: &ProtocolObject<dyn UIDynamicItem>,
        p: CGPoint,
    )
       where Self: Sized + Message { ... }
    unsafe 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

unsafe 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 UIDynamicBehavior and objc2-core-foundation only.
Source

unsafe 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 UIDynamicBehavior and objc2-core-foundation only.
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.

Trait Implementations§

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

impl<T> ImplementedBy<T> for dyn UICollisionBehaviorDelegate

Implementations on Foreign Types§

Source§

impl<T> UICollisionBehaviorDelegate for ProtocolObject<T>

Implementors§