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§
Sourceunsafe fn runAction(&self, action: &SCNAction)
unsafe fn runAction(&self, action: &SCNAction)
Adds an action to the list of actions executed by the node.
Sourceunsafe fn runAction_completionHandler(
&self,
action: &SCNAction,
block: Option<&DynBlock<dyn Fn()>>,
)
Available on crate feature block2 only.
unsafe fn runAction_completionHandler( &self, action: &SCNAction, block: Option<&DynBlock<dyn Fn()>>, )
block2 only.Adds an action to the list of actions executed by the node. Your block is called when the action completes.
Sourceunsafe fn runAction_forKey(&self, action: &SCNAction, key: Option<&NSString>)
unsafe fn runAction_forKey(&self, action: &SCNAction, key: Option<&NSString>)
Adds an identifiable action to the list of actions executed by the node.
Sourceunsafe fn runAction_forKey_completionHandler(
&self,
action: &SCNAction,
key: Option<&NSString>,
block: Option<&DynBlock<dyn Fn()>>,
)
Available on crate feature block2 only.
unsafe fn runAction_forKey_completionHandler( &self, action: &SCNAction, key: Option<&NSString>, block: Option<&DynBlock<dyn Fn()>>, )
block2 only.Adds an identifiable action to the list of actions executed by the node. Your block is called when the action completes.
Sourceunsafe fn hasActions(&self) -> bool
unsafe fn hasActions(&self) -> bool
Returns a Boolean value that indicates whether the node is executing actions.
Sourceunsafe fn actionForKey(&self, key: &NSString) -> Option<Retained<SCNAction>>
unsafe fn actionForKey(&self, key: &NSString) -> Option<Retained<SCNAction>>
Returns an action associated with a specific key.
Sourceunsafe fn removeActionForKey(&self, key: &NSString)
unsafe fn removeActionForKey(&self, key: &NSString)
Removes an action associated with a specific key.
Sourceunsafe fn removeAllActions(&self)
unsafe fn removeAllActions(&self)
Ends and removes all actions from the node.
Trait Implementations§
Source§impl ProtocolType for dyn SCNActionable
impl ProtocolType for dyn SCNActionable
impl<T> ImplementedBy<T> for dyn SCNActionable
Implementations on Foreign Types§
impl<T> SCNActionable for ProtocolObject<T>where
T: ?Sized + SCNActionable,
Implementors§
impl SCNActionable for SCNNode
Available on crate feature
SCNNode only.impl SCNActionable for SCNReferenceNode
Available on crate feature
SCNReferenceNode only.