Trait objc2_app_kit::NSSharingServiceDelegate

source ·
pub unsafe trait NSSharingServiceDelegate: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn sharingService_willShareItems(
        &self,
        sharing_service: &NSSharingService,
        items: &NSArray
    )
       where Self: Sized + Message { ... }
    unsafe fn sharingService_didFailToShareItems_error(
        &self,
        sharing_service: &NSSharingService,
        items: &NSArray,
        error: &NSError
    )
       where Self: Sized + Message { ... }
    unsafe fn sharingService_didShareItems(
        &self,
        sharing_service: &NSSharingService,
        items: &NSArray
    )
       where Self: Sized + Message { ... }
    unsafe fn sharingService_sourceFrameOnScreenForShareItem(
        &self,
        sharing_service: &NSSharingService,
        item: &AnyObject
    ) -> NSRect
       where Self: Sized + Message { ... }
    unsafe fn sharingService_transitionImageForShareItem_contentRect(
        &self,
        sharing_service: &NSSharingService,
        item: &AnyObject,
        content_rect: NonNull<NSRect>
    ) -> Option<Id<NSImage>>
       where Self: Sized + Message { ... }
    unsafe fn sharingService_sourceWindowForShareItems_sharingContentScope(
        &self,
        sharing_service: &NSSharingService,
        items: &NSArray,
        sharing_content_scope: NonNull<NSSharingContentScope>
    ) -> Option<Id<NSWindow>>
       where Self: Sized + Message { ... }
    unsafe fn anchoringViewForSharingService_showRelativeToRect_preferredEdge(
        &self,
        sharing_service: &NSSharingService,
        positioning_rect: NonNull<NSRect>,
        preferred_edge: NonNull<NSRectEdge>
    ) -> Option<Id<NSView>>
       where Self: Sized + Message { ... }
}
Available on crate feature NSSharingService only.

Provided Methods§

source

unsafe fn sharingService_willShareItems( &self, sharing_service: &NSSharingService, items: &NSArray )
where Self: Sized + Message,

source

unsafe fn sharingService_didFailToShareItems_error( &self, sharing_service: &NSSharingService, items: &NSArray, error: &NSError )
where Self: Sized + Message,

source

unsafe fn sharingService_didShareItems( &self, sharing_service: &NSSharingService, items: &NSArray )
where Self: Sized + Message,

source

unsafe fn sharingService_sourceFrameOnScreenForShareItem( &self, sharing_service: &NSSharingService, item: &AnyObject ) -> NSRect
where Self: Sized + Message,

source

unsafe fn sharingService_transitionImageForShareItem_contentRect( &self, sharing_service: &NSSharingService, item: &AnyObject, content_rect: NonNull<NSRect> ) -> Option<Id<NSImage>>
where Self: Sized + Message,

Available on crate feature NSImage only.
source

unsafe fn sharingService_sourceWindowForShareItems_sharingContentScope( &self, sharing_service: &NSSharingService, items: &NSArray, sharing_content_scope: NonNull<NSSharingContentScope> ) -> Option<Id<NSWindow>>
where Self: Sized + Message,

Available on crate features NSResponder and NSWindow only.
source

unsafe fn anchoringViewForSharingService_showRelativeToRect_preferredEdge( &self, sharing_service: &NSSharingService, positioning_rect: NonNull<NSRect>, preferred_edge: NonNull<NSRectEdge> ) -> Option<Id<NSView>>
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.

Trait Implementations§

source§

impl ProtocolType for dyn NSSharingServiceDelegate

source§

const NAME: &'static str = "NSSharingServiceDelegate"

The name of the Objective-C protocol that this type represents.
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 NSSharingServiceDelegate

Implementations on Foreign Types§

source§

impl<T> NSSharingServiceDelegate for ProtocolObject<T>

Implementors§