SKViewDelegate

Trait SKViewDelegate 

Source
pub unsafe trait SKViewDelegate: NSObjectProtocol {
    // Provided method
    unsafe fn view_shouldRenderAtTime(
        &self,
        view: &SKView,
        time: NSTimeInterval,
    ) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature SKView only.
Expand description

Provided Methods§

Source

unsafe fn view_shouldRenderAtTime( &self, view: &SKView, time: NSTimeInterval, ) -> bool
where Self: Sized + Message,

Available on crate feature objc2-app-kit and macOS only.

Allows the client to dynamically control the render rate.

return YES to initiate an update and render for the target time. return NO to skip update and render for this target time.

Trait Implementations§

Source§

impl ProtocolType for dyn SKViewDelegate

Source§

const NAME: &'static str = "SKViewDelegate"

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 SKViewDelegate

Implementations on Foreign Types§

Source§

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

Implementors§