SCNActionable

Trait SCNActionable 

Source
pub unsafe trait SCNActionable: NSObjectProtocol {
    // Provided methods
    unsafe fn runAction(&self, action: &SCNAction)
       where Self: Sized + Message { ... }
    unsafe fn runAction_completionHandler(
        &self,
        action: &SCNAction,
        block: Option<&DynBlock<dyn Fn()>>,
    )
       where Self: Sized + Message { ... }
    unsafe fn runAction_forKey(
        &self,
        action: &SCNAction,
        key: Option<&NSString>,
    )
       where Self: Sized + Message { ... }
    unsafe fn runAction_forKey_completionHandler(
        &self,
        action: &SCNAction,
        key: Option<&NSString>,
        block: Option<&DynBlock<dyn Fn()>>,
    )
       where Self: Sized + Message { ... }
    unsafe fn hasActions(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn actionForKey(&self, key: &NSString) -> Option<Retained<SCNAction>>
       where Self: Sized + Message { ... }
    unsafe fn removeActionForKey(&self, key: &NSString)
       where Self: Sized + Message { ... }
    unsafe fn removeAllActions(&self)
       where Self: Sized + Message { ... }
    unsafe fn actionKeys(&self) -> Retained<NSArray<NSString>>
       where Self: Sized + Message { ... }
}
Available on crate feature SCNAction only.
Expand description

Provided Methods§

Source

unsafe fn runAction(&self, action: &SCNAction)
where Self: Sized + Message,

Adds an action to the list of actions executed by the node.

Source

unsafe fn runAction_completionHandler( &self, action: &SCNAction, block: Option<&DynBlock<dyn Fn()>>, )
where Self: Sized + Message,

Available on crate feature block2 only.

Adds an action to the list of actions executed by the node. Your block is called when the action completes.

Source

unsafe fn runAction_forKey(&self, action: &SCNAction, key: Option<&NSString>)
where Self: Sized + Message,

Adds an identifiable action to the list of actions executed by the node.

Source

unsafe fn runAction_forKey_completionHandler( &self, action: &SCNAction, key: Option<&NSString>, block: Option<&DynBlock<dyn Fn()>>, )
where Self: Sized + Message,

Available on crate feature block2 only.

Adds an identifiable action to the list of actions executed by the node. Your block is called when the action completes.

Source

unsafe fn hasActions(&self) -> bool
where Self: Sized + Message,

Returns a Boolean value that indicates whether the node is executing actions.

Source

unsafe fn actionForKey(&self, key: &NSString) -> Option<Retained<SCNAction>>
where Self: Sized + Message,

Returns an action associated with a specific key.

Source

unsafe fn removeActionForKey(&self, key: &NSString)
where Self: Sized + Message,

Removes an action associated with a specific key.

Source

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

Ends and removes all actions from the node.

Source

unsafe fn actionKeys(&self) -> Retained<NSArray<NSString>>
where Self: Sized + Message,

Returns an array containing the keys of all actions currently attached to the receiver.

Trait Implementations§

Source§

impl ProtocolType for dyn SCNActionable

Source§

const NAME: &'static str = "SCNActionable"

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

Implementations on Foreign Types§

Source§

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

Implementors§

Source§

impl SCNActionable for SCNNode

Available on crate feature SCNNode only.
Source§

impl SCNActionable for SCNReferenceNode

Available on crate feature SCNReferenceNode only.