CICheckerboardGenerator

Trait CICheckerboardGenerator 

Source
pub unsafe trait CICheckerboardGenerator: CIFilterProtocol {
    // Provided methods
    unsafe fn center(&self) -> CGPoint
       where Self: Sized + Message { ... }
    unsafe fn setCenter(&self, center: CGPoint)
       where Self: Sized + Message { ... }
    unsafe fn color0(&self) -> Retained<CIColor>
       where Self: Sized + Message { ... }
    unsafe fn setColor0(&self, color0: &CIColor)
       where Self: Sized + Message { ... }
    unsafe fn color1(&self) -> Retained<CIColor>
       where Self: Sized + Message { ... }
    unsafe fn setColor1(&self, color1: &CIColor)
       where Self: Sized + Message { ... }
    unsafe fn width(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setWidth(&self, width: c_float)
       where Self: Sized + Message { ... }
    unsafe fn sharpness(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setSharpness(&self, sharpness: c_float)
       where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the Checkerboard filter.

Generates a pattern of squares of alternating colors. You can specify the size, colors, and the sharpness of the pattern.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn center(&self) -> CGPoint
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

The center of the effect as x and y pixel coordinates.

Source

unsafe fn setCenter(&self, center: CGPoint)
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

Setter for center.

Source

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

Available on crate feature CIColor only.

A color to use for the first set of squares.

Source

unsafe fn setColor0(&self, color0: &CIColor)
where Self: Sized + Message,

Available on crate feature CIColor only.

Setter for color0.

Source

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

Available on crate feature CIColor only.

A color to use for the second set of squares.

Source

unsafe fn setColor1(&self, color1: &CIColor)
where Self: Sized + Message,

Available on crate feature CIColor only.

Setter for color1.

Source

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

The width of the squares in the pattern.

Source

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

Setter for width.

Source

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

The sharpness of the edges in pattern. The smaller the value, the more blurry the pattern. Values range from 0.0 to 1.0.

Source

unsafe fn setSharpness(&self, sharpness: c_float)
where Self: Sized + Message,

Setter for sharpness.

Trait Implementations§

Source§

impl ProtocolType for dyn CICheckerboardGenerator

Source§

const NAME: &'static str = "CICheckerboardGenerator"

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 CICheckerboardGenerator

Implementations on Foreign Types§

Source§

impl<T> CICheckerboardGenerator for ProtocolObject<T>

Implementors§