Trait objc2_metal::MTLDrawable

source ·
pub unsafe trait MTLDrawable: NSObjectProtocol + IsRetainable {
    // Provided methods
    fn present(&self)
       where Self: Sized + Message { ... }
    unsafe fn presentAtTime(&self, presentation_time: c_double)
       where Self: Sized + Message { ... }
    unsafe fn presentAfterMinimumDuration(&self, duration: c_double)
       where Self: Sized + Message { ... }
    unsafe fn addPresentedHandler(&self, block: MTLDrawablePresentedHandler)
       where Self: Sized + Message { ... }
    unsafe fn presentedTime(&self) -> c_double
       where Self: Sized + Message { ... }
    fn drawableID(&self) -> NSUInteger
       where Self: Sized + Message { ... }
}
Available on crate feature MTLDrawable only.

Provided Methods§

source

fn present(&self)
where Self: Sized + Message,

source

unsafe fn presentAtTime(&self, presentation_time: c_double)
where Self: Sized + Message,

source

unsafe fn presentAfterMinimumDuration(&self, duration: c_double)
where Self: Sized + Message,

source

unsafe fn addPresentedHandler(&self, block: MTLDrawablePresentedHandler)
where Self: Sized + Message,

Available on crate feature block2 only.
source

unsafe fn presentedTime(&self) -> c_double
where Self: Sized + Message,

source

fn drawableID(&self) -> NSUInteger
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn MTLDrawable

source§

const NAME: &'static str = "MTLDrawable"

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 MTLDrawable
where T: ?Sized + Message + MTLDrawable,

Implementations on Foreign Types§

source§

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

Implementors§