CIMeshGenerator

Trait CIMeshGenerator 

Source
pub unsafe trait CIMeshGenerator: CIFilterProtocol {
    // Provided methods
    unsafe fn width(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setWidth(&self, width: c_float)
       where Self: Sized + Message { ... }
    unsafe fn color(&self) -> Retained<CIColor>
       where Self: Sized + Message { ... }
    unsafe fn setColor(&self, color: &CIColor)
       where Self: Sized + Message { ... }
    unsafe fn mesh(&self) -> Retained<NSArray>
       where Self: Sized + Message { ... }
    unsafe fn setMesh(&self, mesh: &NSArray)
       where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the Mesh Generator filter.

Generates a mesh from an array of line segments.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn width(&self) -> c_float
where Self: Sized + Message,

The width in pixels of the effect.

Source

unsafe fn setWidth(&self, width: c_float)
where Self: Sized + Message,

Setter for width.

Source

unsafe fn color(&self) -> Retained<CIColor>
where Self: Sized + Message,

Available on crate feature CIColor only.

A color.

Source

unsafe fn setColor(&self, color: &CIColor)
where Self: Sized + Message,

Available on crate feature CIColor only.

Setter for color.

Source

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

An array of line segments stored as an array of CIVectors each containing a start point and end point.

Source

unsafe fn setMesh(&self, mesh: &NSArray)
where Self: Sized + Message,

Setter for mesh.

§Safety

mesh generic should be of the correct type.

Trait Implementations§

Source§

impl ProtocolType for dyn CIMeshGenerator

Source§

const NAME: &'static str = "CIMeshGenerator"

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 CIMeshGenerator

Implementations on Foreign Types§

Source§

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

Implementors§