CIFlashTransition

Trait CIFlashTransition 

Source
pub unsafe trait CIFlashTransition: CITransitionFilter {
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 extent(&self) -> CGRect where Self: Sized + Message { ... } unsafe fn setExtent(&self, extent: CGRect) 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 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 fadeThreshold(&self) -> c_float where Self: Sized + Message { ... } unsafe fn setFadeThreshold(&self, fade_threshold: c_float) where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the Flash filter.

Transitions from one image to another by creating a flash. The flash originates from a point you specify. Small at first, it rapidly expands until the image frame is completely filled with the flash color. As the color fades, the target image begins to appear.

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 extent(&self) -> CGRect
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

The extent of the flash.

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

Available on crate feature CIColor only.

The color of the light rays emanating from the flash.

Source

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

Available on crate feature CIColor only.

Setter for color.

Source

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

The radius of the light rays emanating from the flash.

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 strength of the light rays emanating from the flash.

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 light rays emanating from the flash.

Source

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

Setter for striationContrast.

Source

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

The amount of fade between the flash and the target image. The higher the value, the more flash time and the less fade time.

Source

unsafe fn setFadeThreshold(&self, fade_threshold: c_float)
where Self: Sized + Message,

Setter for fadeThreshold.

Trait Implementations§

Source§

impl ProtocolType for dyn CIFlashTransition

Source§

const NAME: &'static str = "CIFlashTransition"

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 CIFlashTransition

Implementations on Foreign Types§

Source§

impl<T> CIFlashTransition for ProtocolObject<T>

Implementors§