CIBlurredRoundedRectangleGenerator

Trait CIBlurredRoundedRectangleGenerator 

Source
pub unsafe trait CIBlurredRoundedRectangleGenerator: CIFilterProtocol {
    // Provided methods
    unsafe fn extent(&self) -> CGRect
       where Self: Sized + Message { ... }
    unsafe fn setExtent(&self, extent: CGRect)
       where Self: Sized + Message { ... }
    unsafe fn radius(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setRadius(&self, radius: c_float)
       where Self: Sized + Message { ... }
    unsafe fn smoothness(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setSmoothness(&self, smoothness: c_float)
       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 Rounded Rectangle Generator filter.

Generates a blurred rounded rectangle image with the specified extent, corner radius, 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 radius(&self) -> c_float
where Self: Sized + Message,

The distance from the center of the effect.

Source

unsafe fn setRadius(&self, radius: c_float)
where Self: Sized + Message,

Setter for radius.

Source

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

A value to control the smoothness of the transition between the curved and linear edges of the shape.

Source

unsafe fn setSmoothness(&self, smoothness: c_float)
where Self: Sized + Message,

Setter for smoothness.

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 CIBlurredRoundedRectangleGenerator

Source§

const NAME: &'static str = "CIBlurredRoundedRectangleGenerator"

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 CIBlurredRoundedRectangleGenerator

Implementations on Foreign Types§

Source§

impl<T> CIBlurredRoundedRectangleGenerator for ProtocolObject<T>

Implementors§