Skip to main content

NSImageDelegate

Trait NSImageDelegate 

Source
pub unsafe trait NSImageDelegate: NSObjectProtocol {
    // Provided methods
    fn imageDidNotDraw_inRect(
        &self,
        sender: &NSImage,
        rect: NSRect,
    ) -> Option<Retained<NSImage>>
       where Self: Sized + Message { ... }
    fn image_willLoadRepresentation(&self, image: &NSImage, rep: &NSImageRep)
       where Self: Sized + Message { ... }
    fn image_didLoadRepresentationHeader(
        &self,
        image: &NSImage,
        rep: &NSImageRep,
    )
       where Self: Sized + Message { ... }
    fn image_didLoadPartOfRepresentation_withValidRows(
        &self,
        image: &NSImage,
        rep: &NSImageRep,
        rows: NSInteger,
    )
       where Self: Sized + Message { ... }
    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

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

Source

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

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

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

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<T> ImplementedBy<T> for dyn NSImageDelegate

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

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> NSImageDelegate for ProtocolObject<T>
where T: ?Sized + NSImageDelegate,

Implementors§