Trait NSImageDelegate

Source
pub unsafe trait NSImageDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn imageDidNotDraw_inRect(
        &self,
        sender: &NSImage,
        rect: NSRect,
    ) -> Option<Retained<NSImage>>
       where Self: Sized + Message { ... }
    unsafe fn image_willLoadRepresentation(
        &self,
        image: &NSImage,
        rep: &NSImageRep,
    )
       where Self: Sized + Message { ... }
    unsafe fn image_didLoadRepresentationHeader(
        &self,
        image: &NSImage,
        rep: &NSImageRep,
    )
       where Self: Sized + Message { ... }
    unsafe fn image_didLoadPartOfRepresentation_withValidRows(
        &self,
        image: &NSImage,
        rep: &NSImageRep,
        rows: NSInteger,
    )
       where Self: Sized + Message { ... }
    unsafe fn image_didLoadRepresentation_withStatus(
        &self,
        image: &NSImage,
        rep: &NSImageRep,
        status: NSImageLoadStatus,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature NSImage only.
Expand description

Provided Methods§

Source

unsafe fn imageDidNotDraw_inRect( &self, sender: &NSImage, rect: NSRect, ) -> Option<Retained<NSImage>>
where Self: Sized + Message,

Source

unsafe fn image_willLoadRepresentation(&self, image: &NSImage, rep: &NSImageRep)
where Self: Sized + Message,

👎Deprecated: This method is no longer called on 10.4 or later.
Available on crate feature NSImageRep only.
Source

unsafe fn image_didLoadRepresentationHeader( &self, image: &NSImage, rep: &NSImageRep, )
where Self: Sized + Message,

👎Deprecated: This method is no longer called on 10.4 or later.
Available on crate feature NSImageRep only.
Source

unsafe fn image_didLoadPartOfRepresentation_withValidRows( &self, image: &NSImage, rep: &NSImageRep, rows: NSInteger, )
where Self: Sized + Message,

👎Deprecated: This method is no longer called on 10.4 or later.
Available on crate feature NSImageRep only.
Source

unsafe fn image_didLoadRepresentation_withStatus( &self, image: &NSImage, rep: &NSImageRep, status: NSImageLoadStatus, )
where Self: Sized + Message,

👎Deprecated: This method is no longer called on 10.4 or later.
Available on crate feature NSImageRep only.

Trait Implementations§

Source§

impl ProtocolType for dyn NSImageDelegate

Source§

const NAME: &'static str = "NSImageDelegate"

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 NSImageDelegate

Implementations on Foreign Types§

Source§

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

Implementors§