CIBlurredRectangleGenerator

Trait CIBlurredRectangleGenerator 

Source
pub unsafe trait CIBlurredRectangleGenerator: CIFilterProtocol {
    // Provided methods
    unsafe fn extent(&self) -> CGRect
       where Self: Sized + Message { ... }
    unsafe fn setExtent(&self, extent: CGRect)
       where Self: Sized + Message { ... }
    unsafe fn sigma(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setSigma(&self, sigma: 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 { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the Blurred Rectangle Generator filter.

Generates a blurred rectangle image with the specified extent, blur sigma, and color.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn extent(&self) -> CGRect
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

A rectangle that defines the extent of the effect.

Source

unsafe fn setExtent(&self, extent: CGRect)
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

Setter for extent.

Source

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

The sigma for a gaussian blur.

Source

unsafe fn setSigma(&self, sigma: c_float)
where Self: Sized + Message,

Setter for sigma.

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.

Trait Implementations§

Source§

impl ProtocolType for dyn CIBlurredRectangleGenerator

Source§

const NAME: &'static str = "CIBlurredRectangleGenerator"

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 CIBlurredRectangleGenerator

Implementations on Foreign Types§

Source§

impl<T> CIBlurredRectangleGenerator for ProtocolObject<T>

Implementors§