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§
Sourceunsafe fn writeImage_withSceneDocumentURL_originalImageURL(
&self,
image: &NSImage,
document_url: &NSURL,
original_image_url: Option<&NSURL>,
) -> Option<Retained<NSURL>>
Available on crate feature objc2-app-kit and macOS only.
unsafe fn writeImage_withSceneDocumentURL_originalImageURL( &self, image: &NSImage, document_url: &NSURL, original_image_url: Option<&NSURL>, ) -> Option<Retained<NSURL>>
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.