CIModTransition

Trait CIModTransition 

Source
pub unsafe trait CIModTransition: CITransitionFilter {
    // Provided methods
    unsafe fn center(&self) -> CGPoint
       where Self: Sized + Message { ... }
    unsafe fn setCenter(&self, center: CGPoint)
       where Self: Sized + Message { ... }
    unsafe fn angle(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setAngle(&self, angle: c_float)
       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 compression(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setCompression(&self, compression: c_float)
       where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the Mod filter.

Transitions from one image to another by revealing the target image through irregularly shaped holes.

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

The angle in radians of the mod hole pattern.

Source

unsafe fn setAngle(&self, angle: c_float)
where Self: Sized + Message,

Setter for angle.

Source

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

The radius of the undistorted holes in the pattern.

Source

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

Setter for radius.

Source

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

The amount of stretching applied to the mod hole pattern. Holes in the center are not distorted as much as those at the edge of the image.

Source

unsafe fn setCompression(&self, compression: c_float)
where Self: Sized + Message,

Setter for compression.

Trait Implementations§

Source§

impl ProtocolType for dyn CIModTransition

Source§

const NAME: &'static str = "CIModTransition"

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 CIModTransition

Implementations on Foreign Types§

Source§

impl<T> CIModTransition for ProtocolObject<T>
where T: ?Sized + CIModTransition,

Implementors§