Trait SKWarpable

Source
pub unsafe trait SKWarpable: NSObjectProtocol {
    // Provided methods
    unsafe fn warpGeometry(&self) -> Option<Retained<SKWarpGeometry>>
       where Self: Sized + Message { ... }
    unsafe fn setWarpGeometry(&self, warp_geometry: Option<&SKWarpGeometry>)
       where Self: Sized + Message { ... }
    unsafe fn subdivisionLevels(&self) -> NSInteger
       where Self: Sized + Message { ... }
    unsafe fn setSubdivisionLevels(&self, subdivision_levels: NSInteger)
       where Self: Sized + Message { ... }
}
Available on crate feature SKWarpGeometry only.
Expand description

Provided Methods§

Source

unsafe fn warpGeometry(&self) -> Option<Retained<SKWarpGeometry>>
where Self: Sized + Message,

Source

unsafe fn setWarpGeometry(&self, warp_geometry: Option<&SKWarpGeometry>)
where Self: Sized + Message,

Setter for warpGeometry.

Source

unsafe fn subdivisionLevels(&self) -> NSInteger
where Self: Sized + Message,

Source

unsafe fn setSubdivisionLevels(&self, subdivision_levels: NSInteger)
where Self: Sized + Message,

Setter for subdivisionLevels.

Trait Implementations§

Source§

impl ProtocolType for dyn SKWarpable

Source§

const NAME: &'static str = "SKWarpable"

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

Implementations on Foreign Types§

Source§

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

Implementors§

Source§

impl SKWarpable for SKEffectNode

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

impl SKWarpable for SKScene

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

impl SKWarpable for SKSpriteNode

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