CISunbeamsGenerator

Trait CISunbeamsGenerator 

Source
pub unsafe trait CISunbeamsGenerator: CIFilterProtocol {
Show 14 methods // Provided methods unsafe fn center(&self) -> CGPoint where Self: Sized + Message { ... } unsafe fn setCenter(&self, center: CGPoint) 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 sunRadius(&self) -> c_float where Self: Sized + Message { ... } unsafe fn setSunRadius(&self, sun_radius: c_float) where Self: Sized + Message { ... } unsafe fn maxStriationRadius(&self) -> c_float where Self: Sized + Message { ... } unsafe fn setMaxStriationRadius(&self, max_striation_radius: c_float) where Self: Sized + Message { ... } unsafe fn striationStrength(&self) -> c_float where Self: Sized + Message { ... } unsafe fn setStriationStrength(&self, striation_strength: c_float) where Self: Sized + Message { ... } unsafe fn striationContrast(&self) -> c_float where Self: Sized + Message { ... } unsafe fn setStriationContrast(&self, striation_contrast: c_float) where Self: Sized + Message { ... } unsafe fn time(&self) -> c_float where Self: Sized + Message { ... } unsafe fn setTime(&self, time: c_float) where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the Sunbeams filter.

Generates a sun effect. You typically use the output of the sunbeams filter as input to a composite filter.

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 color(&self) -> Retained<CIColor>
where Self: Sized + Message,

Available on crate feature CIColor only.

The color of the sun.

Source

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

Available on crate feature CIColor only.

Setter for color.

Source

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

The radius of the sun.

Source

unsafe fn setSunRadius(&self, sun_radius: c_float)
where Self: Sized + Message,

Setter for sunRadius.

Source

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

The radius of the sunbeams.

Source

unsafe fn setMaxStriationRadius(&self, max_striation_radius: c_float)
where Self: Sized + Message,

Setter for maxStriationRadius.

Source

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

The intensity of the sunbeams. Higher values result in more intensity.

Source

unsafe fn setStriationStrength(&self, striation_strength: c_float)
where Self: Sized + Message,

Setter for striationStrength.

Source

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

The contrast of the sunbeams. Higher values result in more contrast.

Source

unsafe fn setStriationContrast(&self, striation_contrast: c_float)
where Self: Sized + Message,

Setter for striationContrast.

Source

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

The duration of the effect.

Source

unsafe fn setTime(&self, time: c_float)
where Self: Sized + Message,

Setter for time.

Trait Implementations§

Source§

impl ProtocolType for dyn CISunbeamsGenerator

Source§

const NAME: &'static str = "CISunbeamsGenerator"

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 CISunbeamsGenerator

Implementations on Foreign Types§

Source§

impl<T> CISunbeamsGenerator for ProtocolObject<T>

Implementors§