Trait objc2_quartz_core::CAMetalDrawable

source ·
pub unsafe trait CAMetalDrawable: MTLDrawable {
    // Provided methods
    unsafe fn texture(&self) -> Retained<ProtocolObject<dyn MTLTexture>>
       where Self: Sized + Message { ... }
    unsafe fn layer(&self) -> Retained<CAMetalLayer>
       where Self: Sized + Message { ... }
}
Available on crate features CAMetalLayer and objc2-metal only.

Provided Methods§

source

unsafe fn texture(&self) -> Retained<ProtocolObject<dyn MTLTexture>>
where Self: Sized + Message,

source

unsafe fn layer(&self) -> Retained<CAMetalLayer>
where Self: Sized + Message,

Available on crate feature CALayer only.

Trait Implementations§

source§

impl ProtocolType for dyn CAMetalDrawable

source§

const NAME: &'static str = "CAMetalDrawable"

The name of the Objective-C protocol that this type represents.
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 CAMetalDrawable

Implementations on Foreign Types§

source§

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

Implementors§