Trait SKSceneDelegate

Source
pub unsafe trait SKSceneDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn update_forScene(
        &self,
        current_time: NSTimeInterval,
        scene: &SKScene,
    )
       where Self: Sized + Message { ... }
    unsafe fn didEvaluateActionsForScene(&self, scene: &SKScene)
       where Self: Sized + Message { ... }
    unsafe fn didSimulatePhysicsForScene(&self, scene: &SKScene)
       where Self: Sized + Message { ... }
    unsafe fn didApplyConstraintsForScene(&self, scene: &SKScene)
       where Self: Sized + Message { ... }
    unsafe fn didFinishUpdateForScene(&self, scene: &SKScene)
       where Self: Sized + Message { ... }
}
Available on crate feature SKScene only.
Expand description

Provided Methods§

Source

unsafe fn update_forScene(&self, current_time: NSTimeInterval, scene: &SKScene)
where Self: Sized + Message,

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

unsafe fn didEvaluateActionsForScene(&self, scene: &SKScene)
where Self: Sized + Message,

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

unsafe fn didSimulatePhysicsForScene(&self, scene: &SKScene)
where Self: Sized + Message,

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

unsafe fn didApplyConstraintsForScene(&self, scene: &SKScene)
where Self: Sized + Message,

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

unsafe fn didFinishUpdateForScene(&self, scene: &SKScene)
where Self: Sized + Message,

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

Trait Implementations§

Source§

impl ProtocolType for dyn SKSceneDelegate

Source§

const NAME: &'static str = "SKSceneDelegate"

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 SKSceneDelegate

Implementations on Foreign Types§

Source§

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

Implementors§