SCNSceneExportDelegate

Trait SCNSceneExportDelegate 

Source
pub unsafe trait SCNSceneExportDelegate: NSObjectProtocol {
    // Provided method
    unsafe fn writeImage_withSceneDocumentURL_originalImageURL(
        &self,
        image: &NSImage,
        document_url: &NSURL,
        original_image_url: Option<&NSURL>,
    ) -> Option<Retained<NSURL>>
       where Self: Sized + Message { ... }
}
Available on crate feature SCNScene only.
Expand description

Provided Methods§

Source

unsafe fn writeImage_withSceneDocumentURL_originalImageURL( &self, image: &NSImage, document_url: &NSURL, original_image_url: Option<&NSURL>, ) -> Option<Retained<NSURL>>
where Self: Sized + Message,

Available on crate feature objc2-app-kit and macOS only.

Invoked on the delegate to write the referenced image and return the destination url.

Parameter image: The image to write.

Parameter documentURL: The url where the scene is currently exported to.

Parameter originalImageURL: The original url for the image. May be nil if the image was not previously loaded from a url.

Returns: The delegate must returns the url of the image that was exported or nil if it didn’t export any image. If the returned value is nil, the image will be exported to a default destination in a default format.

Trait Implementations§

Source§

impl ProtocolType for dyn SCNSceneExportDelegate

Source§

const NAME: &'static str = "SCNSceneExportDelegate"

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 SCNSceneExportDelegate

Implementations on Foreign Types§

Source§

impl<T> SCNSceneExportDelegate for ProtocolObject<T>

Implementors§