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§
Sourceunsafe fn center(&self) -> CGPoint
Available on crate feature objc2-core-foundation only.
unsafe fn center(&self) -> CGPoint
objc2-core-foundation only.The center of the effect as x and y pixel coordinates.
Sourceunsafe fn setCenter(&self, center: CGPoint)
Available on crate feature objc2-core-foundation only.
unsafe fn setCenter(&self, center: CGPoint)
objc2-core-foundation only.Setter for center.
Sourceunsafe fn color(&self) -> Retained<CIColor>
Available on crate feature CIColor only.
unsafe fn color(&self) -> Retained<CIColor>
CIColor only.The color of the sun.
Sourceunsafe fn setColor(&self, color: &CIColor)
Available on crate feature CIColor only.
unsafe fn setColor(&self, color: &CIColor)
CIColor only.Setter for color.
Sourceunsafe fn setSunRadius(&self, sun_radius: c_float)
unsafe fn setSunRadius(&self, sun_radius: c_float)
Setter for sunRadius.
Sourceunsafe fn maxStriationRadius(&self) -> c_float
unsafe fn maxStriationRadius(&self) -> c_float
The radius of the sunbeams.
Sourceunsafe fn setMaxStriationRadius(&self, max_striation_radius: c_float)
unsafe fn setMaxStriationRadius(&self, max_striation_radius: c_float)
Setter for maxStriationRadius.
Sourceunsafe fn striationStrength(&self) -> c_float
unsafe fn striationStrength(&self) -> c_float
The intensity of the sunbeams. Higher values result in more intensity.
Sourceunsafe fn setStriationStrength(&self, striation_strength: c_float)
unsafe fn setStriationStrength(&self, striation_strength: c_float)
Setter for striationStrength.
Sourceunsafe fn striationContrast(&self) -> c_float
unsafe fn striationContrast(&self) -> c_float
The contrast of the sunbeams. Higher values result in more contrast.
Sourceunsafe fn setStriationContrast(&self, striation_contrast: c_float)
unsafe fn setStriationContrast(&self, striation_contrast: c_float)
Setter for striationContrast.