Trait objc2_metal_kit::MTKViewDelegate

source ·
pub unsafe trait MTKViewDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn mtkView_drawableSizeWillChange(
        &self,
        view: &MTKView,
        size: CGSize
    )
       where Self: Sized + Message { ... }
    unsafe fn drawInMTKView(&self, view: &MTKView)
       where Self: Sized + Message { ... }
}
Available on crate feature MTKView only.

Provided Methods§

source

unsafe fn mtkView_drawableSizeWillChange(&self, view: &MTKView, size: CGSize)
where Self: Sized + Message,

Available on crate feature objc2-app-kit only.
source

unsafe fn drawInMTKView(&self, view: &MTKView)
where Self: Sized + Message,

Available on crate feature objc2-app-kit only.

Trait Implementations§

source§

impl ProtocolType for dyn MTKViewDelegate

source§

const NAME: &'static str = "MTKViewDelegate"

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 MTKViewDelegate

Implementations on Foreign Types§

source§

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

Implementors§