objc2_metal_kit

Trait MTKViewDelegate

Source
pub unsafe trait MTKViewDelegate: NSObjectProtocol + MainThreadOnly { }
Available on crate feature MTKView only.
Expand description

Allows an object to render into the view and respond to resize events

See also Apple’s documentation

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. 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 MTKViewDelegate

Implementations on Foreign Types§

Source§

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

Implementors§