Trait NSBundleImageExtension

Source
pub unsafe trait NSBundleImageExtension:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn imageForResource(
        &self,
        name: &NSImageName,
    ) -> Option<Retained<NSImage>> { ... }
    unsafe fn pathForImageResource(
        &self,
        name: &NSImageName,
    ) -> Option<Retained<NSString>> { ... }
    unsafe fn URLForImageResource(
        &self,
        name: &NSImageName,
    ) -> Option<Retained<NSURL>> { ... }
}
Available on crate feature NSImage only.
Expand description

Category on NSBundle.

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NSBundleImageExtension for NSBundle

Implementors§